WordPress.org

Ready to get started?Download WordPress

Forums

Asynchronous Javascript
[resolved] Minfy JS? & Remove Query String? (6 posts)

  1. Watch Teller
    Member
    Posted 10 months ago #

    @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/

  2. Paris Holley
    Member
    Plugin Author

    Posted 10 months ago #

    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.

  3. Watch Teller
    Member
    Posted 10 months ago #

    @Paris Holley,

    Noted and Thanks.

  4. Paul Thomson
    Member
    Posted 8 months ago #

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

    Any suggestions?

  5. Paris Holley
    Member
    Plugin Author

    Posted 8 months ago #

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

  6. Paul Thomson
    Member
    Posted 8 months ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic