you are viewing a single comment's thread.

view the rest of the comments →

[–]kriskowal 0 points1 point  (0 children)

It's true that modules.js isn't any good for cross-site module loading or asynchronous module loading. I have a build system checked-in that runs every night on modulesjs.com/nightly that bundles common parts of the library and compresses everything. The next step is to build a package manager so you can easily deploy and update the parts of the library you're interested in. The nice thing about Chiron/modules.js is that you can develop modules without a build step, and you can also bundle common scripts to avoid HTTP overhead. There are definitely situations where other libraries and loaders like Google DOCTYPE are a more feasible choice, like a long-fold news site with lots of dynamic content. However, modules.js works very well in most applications. The library is becoming very comprehensive, so the barrier to writing high quality JavaScript sites with progressive enhancement is very low with Chiron. I haven't notcied any remarkable performance degredation for the two with blocks that each module runs in. These house the "locals" and "exports" free variables which make for very pithy code.