I’m currently trying to optimize the actual js files that are loaded on our page. I’ve realized that both the x.js and the cs-classic.xxx.js file are loaded with every page. That led me to the following questions:
- What are the purpose of each of them? I’m aiming to minimize the payload as much as I can.
- Is that something that will be minimized with the new blank stack?
Furthermore: I’ve seen that the JS file often contains a lot of unused Javascript as a lot of the elements are not used. Is there any way to further enhance that to load specific JS only when those elements are used on a page?
This is a far-fetched feature, but I guess if the JS file is build on a per-post basis, this could be incredibly beneficial for web vitals and simplicity, as well as for compatibility with other caching plugins.
Thank you already very much!