-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background load bundles. #19
Comments
Interesting idea, I haven't seen this done before. Something like: steal.done().then(function(){
var bundles = System.bundles;
Promise.all(
Object.keys(bundles).map(function(bundleName){ return System.import(bundleName); })
);
}); |
I've done this in other projects. Works pretty well. Especially if you have a "prioritized" knowledge of the other modules. Btw, I'm not sure this would use |
We could fetch them which would put them in the browser cache for when they are imported. I don't know of another way to load without executing. |
We could put this in Steal, perhaps as: {
"system": {
"backgroundLoadBundles": true
}
} Long option name but I can't think of any better. |
Or alternatively just as another project that you can just require ala steal-qunit, steal-benchmark, etc. That might be better. |
Ideally this would be aware of done-autorender so that it waits until the first render() has finished before loading them. |
Similar idea implemented for Angular: https://github.com/AngularClass/angular2-idle-preload |
It would be nice to show background loading of bundles. This would load other bundles sometime after the first page draw so they are ready.
The text was updated successfully, but these errors were encountered: