Require.js
How the Require.js system works
-
It is a system that allows Javascript on the frontend to be load async
- The amount of JS that blocks render is fairly small
- And the remaining JS that's needed can be loaded at a low priority
-
It's also a way to manage dependencies on JS modules
- Concating every single bit of JS into one big file resolves race conditions, but means that frontend users download a TON of JS.