load resource files in the background

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By inesp

I wanted to share the resource files so it wouldn’t be too big and load the files in the background, but it works on a website without local files, but the link in the previous answer doesn’t open

:bust_in_silhouette: Reply From: EGodAmonRa

Your Question isn’t very clear but here something to consider.

Multi-Threading

Sudo code

var thread : Thread
thread = Thread.new()
thread.start(self, "LoadFiles", [thread, filesName]) #Can be an array of names
    
func Load(thread, filesName):
     **Load Files**
     thread.wait_to_finish()

You can read more about threads on the Godot documentation.