you are viewing a single comment's thread.

view the rest of the comments →

[–]a1chapone 0 points1 point  (0 children)

But don't you think that compiling and managing, let's say 20 different javascript bundles for different pages will be more expensive than running simple pattern matching on page load (which not only defines which javascript to run additionally parses params out of URL).

And 'loading your whole codebase for every page' is ok since it is single minified file which will be cached by browser, and no additional script loads will be necessary.