stunn / jssketch

1 stars 0 forks source link

Consider support for initial "stub" file, followed by successive heavyweight stuff. #29

Open mattlunn opened 11 years ago

mattlunn commented 11 years ago

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.