kittsville / Pyroon

An interactive visualisation library of Reddit's switch-a-roos
http://pyroon.sci1.uk/
MIT License
0 stars 0 forks source link

Optimise loading of assets #13

Open kittsville opened 7 years ago

kittsville commented 7 years ago

Currently several of the JavaScript assets make direct reference in top level code to dependencies in other files. For example Cytoscape requires jQuery already be loaded. This creates an annoying dependency chain that greatly slows page loads. The JS assets need wrapping in container functions so they can be loaded asynchronously then activated in order of dependency.

kittsville commented 7 years ago

Given how slow the front-end is I think this takes priority over any other front-end issues.

kittsville commented 7 years ago

Turns out modern browsers load the scripts async anyway and then just execute them synchronously. Main thing slowing down page loads is that:

Wr.t. solutions: