• Please move plugin scripts to footer by change the line of

    wp_enqueue_script( 'megamenu', MEGAMENU_BASE_URL . "js/maxmegamenu.js", array('jquery', 'hoverIntent'), MEGAMENU_VERSION );

    to

    wp_enqueue_script( 'megamenu', MEGAMENU_BASE_URL . "js/maxmegamenu.js", array('jquery', 'hoverIntent'), MEGAMENU_VERSION, true );

    WHY?

    In a performance well tuned website, all scripts include ‘jquery.js’ are added to footer, because your plugin script needs ‘jquery.js’, after activating your plugin, not only the script itself, but also the ‘jquery.js’ has been forced added to header thus slow down the page load speed.

    https://wordpress.org/plugins/megamenu/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Moving scripts to footer’ is closed to new replies.