I’m configuring minifying on my site, but I’m getting trubles trying to find the right order to load all JS and CSS (because of dependences).
Could you please provide me with a simple list ordered by load priority of all JS, and another list for CSS?
It’s really difficult for me to guess the right order to get everything working (some files require that other files being loaded first to work properly, for JS it is because a file could require a function that is in a different file)
I just need file names for each file.
Thank you.
Hi
Open up the themes functions.php file and look for:
/*
* Register frontend javascripts:
*/
if(!function_exists('avia_register_frontend_scripts'))
This function loads in all the css and javascript that the theme uses in the order that is needed.
Regards,
Devin
Awesome, thanks !!