Unfortunately due to other commitments, we are no longer able to provide support for these themes.

All our themes are now free and can be downloaded by anyone to use/modify however they wish.

We want to thank all our users for their support over the years. All the best in 2020 and beyond.

Remove jQuery Migrate makes the drop down menu stops working

per_kristiansenper_kristiansen Lifetime Member
The site is produced offline with https://www.mamp.info


REF:
http://diythemes.com/thesis/3-performance-tips/


Remove jQuery Migrate
==================

jQuery migrate is used to load any deprecated APIs and functions that were removed in jQuery 1.9, so if you do not use any of those deprecated functions (read here for information on what changed in 1.9), you can remove jQuery migrate and save a time-consuming request to your server.

Unless you use a lot of Plugins, it is quite unlikely that any of your scripts will require jQuery migrate to function properly.

Again, just add the following code to your custom.php file to remove jQuery migrate:

/*
Remove jquery migrate for enhanced performance
*/
function remove_jquery_migrate($scripts) {
if (is_admin()) return;
$scripts->remove('jquery');
$scripts->add('jquery', false, array('jquery-core'), '1.10.2');
}
add_action('wp_default_scripts', 'remove_jquery_migrate');



The 2 other performance tips works. When adding the tips for "Remove jQuery Migrate" then the drop down function in the menus stops working.

Comments

  • Options
    Mark_HodderMark_Hodder Administrator, Lifetime Member
    Derby requires this so it cannot be removed. We'll make a note to see if this can be changed in a future update to Derby though.
    Need Additional Help?
    - Check out the Resource Center for helpful tutorials and hints.


    image
This discussion has been closed.