Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
  • #445310

    Hi there

    I did some analysis on my with Google PageSpeed, and I got a 39/100 score, which seems to be really low. Google suggests some modifications, with 3 of them being important:

    Enable compression (Compressing resources with gzip or deflate can reduce the number of bytes sent over the network): Enable compression for the following resources to reduce their transfer size by 830.8KiB (76% reduction)

    Eliminate render-blocking JavaScript and CSS in above-the-fold content (Your page has 6 blocking script resources and 8 blocking CSS resources. This causes a delay in rendering your page): Remove render-blocking JavaScript and Optimize CSS Delivery

    Leverage browser caching (Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network): Leverage browser caching

    Has anyone goy any tips on how to fix these issues?
    Thank you

    • This topic was modified 9 years, 1 month ago by gasto.

    I’ve just fixed the compression and leverage cache issues using these tutorials:

    But I’d still need to fix the other one.

    Thanks again.

    • This reply was modified 9 years, 1 month ago by gasto.


    Can you post the link to your website please?



    Yes, here’s the link



    Try using this plugin to reduce the number of resources included in your page.

    Best regards,


    Thanks for the reply, it’s a little bit better now :)
    One last question, on gtmetrix.com it says that I should “Defer parsing of JavaScript”, I searched on Google for this and one guy on this blog said that I should include this on my functions.php:

    function defer_parsing_of_js ( $url ) {
    if ( FALSE === strpos( $url, ‘.js’ ) ) return $url;
    if ( strpos( $url, ‘jquery.js’ ) ) return $url;
    return “$url’ defer=’defer”;
    add_filter( ‘clean_url’, ‘defer_parsing_of_js’, 11, 1 );

    However, I get this error afterwards: “Parse error: syntax error, unexpected ‘$url’’ (T_VARIABLE)…”

    Any suggestions?


    clean_url is deprecated:



    OK, deprecated means it cannot be used anymore on WordPress?
    If so, any other suggestions or workaround for that code above?

    If javascript defer is not such an important thing let me know, I’ve really no idea what it is, I just know it appears as an issue on gtmetrix.com.
    Thanks again.



    Please refer to:

    Defer parsing of JavaScript is not a good idea at all because it breaks a lot of third party plugins. We won’t include such a feature in the theme because our goal is to maintain the compatibility to as many plugins as possible and to stick to the wordpress standards. Loading the jquery framework or any theme script with the defer attribute is not the best practice in this case.



    All clear now.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Google PageSpeed Insights – How to fix?’ is closed to new replies.