• Hi there,

    I’ve noticed that if I disable the various jquery functionality (smooth scroll etc), the plugin still loads a number of script files (waypoints, cookie, smooth scroll) that aren’t really necessary. Is it possible to skip loading these if the features are not used?

    Thanks!

    Laurence

Viewing 3 replies - 1 through 3 (of 3 total)
  • Would like to know this too. There are at least 5 .js and 2 .css that are all very small and could be merged into one. Any way to disable these?

    just a quick workaround for those who are interested:

    //wp_register_script( ‘js-cookie’, EZ_TOC_URL . “vendor/js-cookie/js.cookie$min.js”, array(), ‘2.0.3’, TRUE );
    //wp_register_script( ‘jquery-smooth-scroll’, EZ_TOC_URL . “vendor/smooth-scroll/jquery.smooth-scroll$min.js”, array( ‘jquery’ ), ‘1.5.5’, TRUE );
    //wp_register_script( ‘jquery-sticky-kit’, EZ_TOC_URL . “vendor/sticky-kit/jquery.sticky-kit$min.js”, array( ‘jquery’ ), ‘1.9.2’, TRUE );
    //wp_register_script( ‘jquery-waypoints’, EZ_TOC_URL . “vendor/waypoints/jquery.waypoints$min.js”, array( ‘jquery’ ), ‘1.9.2’, TRUE );
    //wp_register_script( ‘ez-toc-js’, EZ_TOC_URL . “assets/js/front$min.js”, array( ‘jquery-smooth-scroll’, ‘js-cookie’, ‘jquery-sticky-kit’, ‘jquery-waypoints’ ), ezTOC::VERSION, TRUE );
    wp_register_script( ‘ez-toc-js’, EZ_TOC_URL . “assets/js/front$min.js”, array(), ezTOC::VERSION, TRUE );

    comment those lines out in easy-table-of-contents.php and add the last line.

    Thread Starter lozula

    (@lozula)

    Thanks for this ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Jquery scripts loaded when not in use’ is closed to new replies.