Optimize loading of multiple (many) files with Processingjs
in
Processing with Other Languages
•
4 months ago
While with Processing data files were packed into the .jar, and while in a Web application, only this single file had to be transmitted to the browser, in Processingjs the situation is different: The Web server has to deliver each of the data files individually to the browser. Depending on the type of application, this might result in several hundred individual queries the Web server has to deliver.
In fast networks and with only a few hops between client and server, this is not a problem, but might easily become one for slower networks.
Are there any ideas how to overcome such a situation? E.g. compressing the folder with the data files and do a JavaScript uncompress on the browser side, or similar?
1