Getting stuff out of the main script-loader.php
-
Hi,
I’m trying to optimize my site, and as such want to put some stuff into a core file, and other stuff get rid of. For example, the jquery-migrate one I want to get rid of.
In wp-includes/script-loader.php, we have stuff like:
// jQuery $scripts->add( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ), '1.11.3' ); $scripts->add( 'jquery-core', '/wp-includes/js/jquery/jquery.js', array(), '1.11.3' ); $scripts->add( 'jquery-migrate', "/wp-includes/js/jquery/jquery-migrate$suffix.js", array(), '1.2.1' );
I want to get rid of those, and change it for the 2.2.2 version (without migrate). I this may cause issues with some plugins, but I’m willing to take that chance.
Then, we have stuff like:
$styles->add( 'thickbox', '/wp-includes/js/thickbox/thickbox.css', array( 'dashicons' ) );
I want to take that CSS out (as I know its not going to change), and plop that into my main CSS file. However, I don’t seem to be able to do this in the themes functions.php script – any suggestions as to how it can be done?
Thanks!
Andy
- The topic ‘Getting stuff out of the main script-loader.php’ is closed to new replies.