• I am trying to optimise my website by deferring Javascript.
    I’m using this code on functions.php

    if (!(is_admin() )) {
      function defer_parsing_of_js ( $url ) {
        if ( FALSE === strpos( $url, '.js' ) ) return $url;
        if ( strpos( $url, 'jquery.js' ) ) return $url;
        return "$url' defer ";
      }
      add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );
    }

    Everything else (other plugins) is working fine except Master Slider, it disappears from the page once I activate Defer Javascript.
    What should I do?

    https://www.ads-software.com/plugins/master-slider/

  • The topic ‘Defer Javascript with Master Slider’ is closed to new replies.