Big JavaScript application cause huge startup latency. A 1Mb of JavaScript initializes about ~600-3000ms! without touching any part of DOM. LMD is inspired by AMD and provides similar module interface. It evals module only when they are required.
- Modules are similar to AMD: there is a require, but no define (all defined on startup) nor exports (module function returns object)
- All modules are loaded at startup
- Each function-module is initialized (evaled) on demand
Original LMD: https://github.com/azproduction/lmd
I hardly see any real world application for that. Wouldn't it be much better for the page performance to load the required modules afterwards in an asynchronous fashion?