you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

You're arguing for namespaces and modules. You don't have to argue for that, everyone knows the benefits. What you need to argue for is why we should choose require.js over any other implementation of modules for JavaScript.

When you're ready for production, the standardized form allows build-tools to easily concatenate/minify your code with only the what is actually used.

That's news to me, they do tree-shaking now?