What Adam says...
Loading 190kb of additional JavaScript to be able to call App.init(), just
doesn't make sense.
I gave an example of loading JS on-demand when needed, but I never really
do this. Lazy loading, i.e. loading the rest of the JS that is non-critical
to the startup of your application would most likely be the way to go, and
how I generally go about it. This loads the JS but does not execute
anything, it just makes it so that any future calls to:
require("someModule", function(someModule){
});
would invoke the callback immediately, as that module has already been
loaded.
On Thu, Feb 9, 2012 at 3:21 PM, Mariusz Nowak <[email protected]> wrote:
> @Phoscur, give modules-webmake<https://github.com/medikoo/modules-webmake>a
> try, with plain written requires it will just work (no matter if it's
> same or external package module), it also has the smallest footprint from
> all similar tools I know.
>
> At this moment it won't jslint or minify your files but this can be easily
> configured to be done aside.
> It also won't watch file for changes yet (this is in the works) but it's
> fast enough to work as binded directly to server. Currently I work with
> application that's build of over 200 modules from about dozen of different
> packages and build time for that is about 1 second. I find that acceptable
> for development, but surely I look forward to efficient file caching, then
> build time won't be noticeable at all.
>
> From what you're saying you're exactly after what I was about year ago, I
> was then very surprised that no solid tool exists. Let me know your
> thoughts.
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en