RequireJS and AC
In the previous chapter, I shared some information about RequireJS. In our platform, this JavaScript library simply serves as the async module loader. It is this feature that tells your browser what JavaScript files should be loaded on each page, and it does so in the background after the page is loaded and rendered. In theory, it is great as only one file is needed to initialize the entire JavaScript on the page.
In practice, the result is that the site is loading hundreds of files, and it takes a moment before the site becomes interactive for the user. This is also a huge problem for SEO as the lower your website score is, the more frustrated the marketing will be as they do believe that a perfect 100 scope is the source of all sales.
While I could dwell and write another book about this topic, let’s not focus on this for now. There is a dedicated chapter in this book about frontend optimization techniques that might help you make better sites on LUMA...