We've created a 'packages' branch of steal that now supports 'packages'. This allows you to easily add progressive loading to your app!
We work on a lot of big apps that use the hash to navigate between parts of the app. Downloading all the files for a big application can take a long time ... too long of a time .... especially when the first time the user would come to the app, they would be presented with a login page.
Instead, we wanted to be able to load a tiny bit of the app, which would have enough information to load just the part of the app the user needs. And, we wanted this to be pretty brainless.
To use it, all you have to do is call steal.packages() with the scripts you want to load later. You can read more about it here:
Do you already have an idea on how much of a difference that would make? Just curious on where the threshold for the overhead of making another request as opposed to packaging it into production right away would be.
Not yet. But our productionjs was about 500k, so on a slow connection, it was taking about 5 seconds. I'm betting we can split this up in 5 parts, each about 100k big and an initial part about 20k. I'm hoping we can load and run the initial part and in parallel load and cache every other part and then 'run' the part we need.
So I've realized I need to check the forums for posts that you've created to catch the latest news in JMVC! Why not update the blog more often? or maybe tweet the link to these posts...so much good stuff here! (thanks!)
Makes sense, I just feel like I find all sorts of interesting things here that I don't catch on the blog, but I'm not also following on twitter so that should help.
I wish there were more real-life/large jmvc apps whose source was available to look at, unfortunately for me all of my work (day job) is private and not shareable, however, I'm hoping to build my own open source app which will use jmvc on the front-end. I just have to make more time :)