• Resolved ImageWatch Teller

    (@watchteller)


    @paris Holley,

    1. I had W3TC manual minified CSS and JS activated. Wondering do I need to emebed minify head.js in <head> in W3TC???

    2. My theme had remove CSS & JS query string function in functions-theme.php, however activated your plugin the query string appear all again. (a)Do I need to add

    function_remove-script_version( $src){$parts = explode(?, $src ); return $parts[0];} add_filter( ‘script_loader_src’,’_remove_script_version’, 15, 1 );
    ass_filter( ‘style_loader_src’,’_remove_script_version’, 15, 1 );

    again in theme function.php or where? (b) Any other method to remove query string???

    Look forward you help & assist

    http://wordpress.org/plugins/asynchronous-javascript/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ImageParis Holley

    (@parisholley)

    1. No, the plugin should do it unless W3TC causes issues with queued scripts
    2. I suppose it could be order in which filters are registered, cant tell you much more.

    Thread Starter ImageWatch Teller

    (@watchteller)

    @paris Holley,

    Noted and Thanks.

    ImageP T

    (@pthomson87)

    … also stuck on how to remove query strings from plugin…

    Any suggestions?

    Plugin Author ImageParis Holley

    (@parisholley)

    the latest version implemented a filter called “async_js_src” that should allow you to modify the src file location before writing to page

    ImageP T

    (@pthomson87)

    Thanks Paris,

    I don’t suppose you’ll be able to provide a quick working example of the async_js_src filter for me to work with?

    Regards,
    Paul

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Minfy JS? & Remove Query String?’ is closed to new replies.