How to improve preloading faster

32 views
Skip to first unread message

Awadh Kishore

unread,
Jun 26, 2017, 9:22:02 AM6/26/17
to CreateJS Discussion
Hi,

I need to improve the preloading performance within 10 sec. Now it takes about 30secs or more. How?


Game Link:

Thanks!
Awadh

Colin Holgate

unread,
Jun 26, 2017, 12:02:06 PM6/26/17
to CreateJS Discussion
For some reason CreateJS has a default max connections of 1, and modern browsers can handle up to 11. The lesser browsers can handle 6. 

So, in your Main.js you could add a line to set the max connections to 6. Here is your existing line (242 of Main.js), with the extra line added:

preload = new createjs.LoadQueue(false,assetspathimg);
preload.setMaxConnections(6);    

That one change could make the page load 6 times faster.
Reply all
Reply to author
Forward
0 new messages