You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using AMD modules and curl.js for a while, one great argument for this setup is that I can load a module depending on user-interaction( mobile devices especially). This has been the main reason why I have not transited to the use of webmake.
Is there some way to simulate lazy-loading cleaning using webmake?
Thanks
The text was updated successfully, but these errors were encountered:
@kokujin Currently Webmake doesn't provide Lazy-loading, but I think it's unlikely you really need that. It makes a difference only in really large codebases, where you want to optionally download 50-100kB, and that's already a lot. Usually quite complex app in total, when minified and gzipped doesn't have much more than 100kB.
See e.g. website I worked on lately http://elomas.gob.ar/ it's complex registration website. It's bundle of over 700 modules (!), in minified form it's 1MB file, but when gzipped it goes down to 200kB, and it initializes and loads pretty fast. Additionally due to good caching setup, every further load is near instant as application file is already cached.
So lack of lazy loading is not that big issue, and I wouldn't address it, unless it's really a visible problem. See also benchmark comparing speed of AMD style loading with generation of the CJS bundle on the fly: https://github.com/medikoo/cjs-vs-amd-benchmark#results
Still, I consider this a valid issue, and one of the most important thing that's missing in Webmake, there's already open issue for that: #7 so I'm closing it as a duplicate.
I have been using AMD modules and curl.js for a while, one great argument for this setup is that I can load a module depending on user-interaction( mobile devices especially). This has been the main reason why I have not transited to the use of webmake.
Is there some way to simulate lazy-loading cleaning using webmake?
Thanks
The text was updated successfully, but these errors were encountered: