Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1084950
    Moonworks
    Participant

    I’ve been working on getting the page speed down and I have just one problem that I can’t seem to fix, and thought you may have some ideas.

    As you can see from these results, I’ve got the page load down, but my problem is removing query strings from static resources. I’ve tried plugins and code, but it doesn’t seem to budge.

    https://gtmetrix.com/reports/moonworks.co.uk/ENltRahW

    #1084983
    Moonworks
    Participant

    Well, I seem to have sorted that, using:

    /** Remove Query strings from Static Resources. */
    function _remove_script_version( $src ){
        $parts = explode( '?', $src );
        return $parts[0];
    }
    add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
    add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );

    But now it is Leverage browser caching which is causing the problem :/

    #1085139
    Rupok
    Member

    Hi there,

    Glad that you sorted it out. Is there anything we could help except the browser caching?

    Thanks

    #1085174
    Moonworks
    Participant

    No, it looks like that’s the only thing now 🙂

    Thanks

    #1085333
    Joao
    Moderator

    Thanks

  • <script> jQuery(function($){ $("#no-reply-1084950 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>