For example, stuff like jsbeautifier and our sessionIO support is not needed on initial load.
Ideally, we can therefore package our JS into two files; stub.js, which contains stuff we need on page load (CM, jQuery, etc), and then once we've done the initial load, we can then load full.js, which adds jsbeautifer and sessionIO.
This will reduce the page load time pretty dramatically, as jsbeautifer and sessionIO (and others) are pretty heavyweight.
For example, stuff like jsbeautifier and our sessionIO support is not needed on initial load.
Ideally, we can therefore package our JS into two files;
stub.js
, which contains stuff we need on page load (CM, jQuery, etc), and then once we've done the initial load, we can then loadfull.js
, which adds jsbeautifer and sessionIO.This will reduce the page load time pretty dramatically, as jsbeautifer and sessionIO (and others) are pretty heavyweight.