Support » Plugin: Zendy Speed: Query Strings » async script conflict

  • Hello,
    Your plugin is very useful but it goes in conflict with the async script that I use in my functions.php to add “async” to certain .js

    the script is this:

    // Start
    function the_async_scripts($url)
    if ( strpos( $url, ‘#asyncload’) === false )
    return $url;
    else if ( is_admin() )
    return str_replace( ‘#asyncload’, ”, $url );
    return str_replace( ‘#asyncload’, ”, $url ).”‘ async=’async”;
    add_filter( ‘clean_url’, ‘the_async_scripts’, 11, 1 );
    // End

    when I activate your plugin this script ends to work, so I get rid of query string but can’t put async .js.
    If your plugin is deactivated, I have “async” in the script but have query string too…

    can you help?

  • The topic ‘async script conflict’ is closed to new replies.