cramforce/splittable

Progressive loading

Closed this issue · 3 comments

It's not clear from the code or article if the supports progressive loading via require.ensure or System.import or something else. Would be good to add that to the readme, I think. Cool project!

Maybe, to answer my own question, is that you would have a new entry for the lazy-loaded code and dynamically inject a <script> to load it.

Right. Simple to wrap in a JS loader similar to require.ensure. But not
quite the same. The caller cannot get access to module object without
additional code. Might be worth adding that boilerplate by default.

On Nov 17, 2016 9:06 AM, "Matthew Phillips" notifications@github.com
wrote:

Maybe, to answer my own question, is that you would have a new entry for
the lazy-loaded code and dynamically inject a <script> to load it.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#5 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAFeT0UXzfVFcCdzjTIG2UthmdLQlibwks5q_IlzgaJpZM4K1js5
.

System.import is implemented.