I find myself in a bit of a dilemma when it comes to using just one JS file and one CSS file for a website. Let me elaborate:
As someone who mainly works with CMS platforms like Joomla, I often run into issues during page speed tests where experts recommend having only one stylesheet and script file per page. To address this, I started utilizing CSS less and minification techniques for JavaScript files.
However, as my website grew, I realized that not every page required the same set of scripts. For example, some pages don't need JSON data while others heavily rely on it. This made me question if including unnecessary code might actually slow down the site. What is the best approach to handle this? Should each page have its own version of scripts with unused portions removed? And how does one manage this effectively within a CMS?
I feel quite lost in this process. Is there no simple guide like "Efficient Website Development for Beginners" to clear up these doubts?
Any advice or insights would be greatly appreciated!