Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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, 6 months ago by gasto.
    #445312

    I’ve just fixed the compression and leverage cache issues using these tutorials:
    https://www.feedthebot.com/pagespeed/enable-compression.html
    http://gtmetrix.com/leverage-browser-caching.html

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

    Thanks again.

    • This reply was modified 9 years, 6 months ago by gasto.
    #446147

    Hi,

    Can you post the link to your website please?

    Regards,
    Josue

    #446892

    Yes, here’s the link

    #447432

    Hey!

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

    Best regards,
    Josue

    #447769

    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?
    Thanks

    #447973

    clean_url is deprecated:
    https://codex.wordpress.org/Function_Reference/clean_url

    Regards,
    Josue

    #447990

    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.

    #448087

    Hey!

    Please refer to:
    https://kriesi.at/support/topic/some-performance-issue-questions/#post-140176

    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.

    Regards,
    Josue

    #448132

    All clear now.
    Thanks!

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