Hacker News new | ask | show | jobs
by zoips 5423 days ago
I think that misses the point of useful loaders like RequireJS or Dojo's loader. The point of those to enable developers to actually design a modular system with well thought out and declared dependencies. Without them you end up designing a system that is wholly dependent on global namespace pollution and undeclared dependencies. The fact that you get async load is almost entirely irrelevant and focusing on it screams of premature optimization (aka fail).
2 comments

Those don't need to even be script loaders. Stitch and Browserify do the module stuff just by concatenating them into a script.

They can just be module loaders or module systems.

I guess saying "main point" was an unnecessary value statement. Different applications will find different aspects of loaders useful.

I should have said that discussion missed the point(s) of script loaders...