Comments (1)
@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.
from modules-webmake.
Related Issues (20)
- Text and HTML extensions? HOT 4
- Bower package? HOT 5
- Support input from stdin HOT 2
- Parse error for scripts with a shebang HOT 3
- cant find module although module is their HOT 1
- Local modules and stdin causes webmake to hang HOT 2
- Requires local installation HOT 1
- Ability to validate or transform each included file HOT 3
- Errors in extensions are not returned to webmake HOT 3
- Extension for EJS HOT 2
- Can't set global export name programmatically ('name' option) HOT 2
- Extensions don't work for js files HOT 7
- Wrong transformation for empty module for special case HOT 1
- Cannot bundle module 'promise' HOT 3
- Nonexistence of node_modules makes wrong paths HOT 3
- It is possible to perform tree shaking for bundled module? HOT 1
- deprecated library during installing HOT 2
- Comparison ... may cause unexpected type coercion HOT 4
- How to use the fs node module with this? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modules-webmake.