Re: Where does the core inject all this javascript?

Posted by fiammybe on 1580314210

I found the locations in the header file where all the different files were loaded, and I included a switch statement so that I can switch the way includes are done by simply defining a boolean in the theme. When the boolean is true, I include a file 'combined.js' and 'combined.css', which are combined and minified versions of the different javascript and CSS files that are included at the moment. Whent he boolean is false, the old behaviour is still there.

This reduces considerably the loading time (first time at least) of a page. I still have some small issues with the minifying, but I think I have identified the problem.


This Post was from: https://www.impresscms.org/iforum/viewtopic.php?topic_id=5886&post_id=50670