![Check out Enfold](https://kriesi.at/wp-content/themes/kriesi/images/banner-enfold.jpg)
Tagged: pagespeed
-
AuthorPosts
-
May 16, 2015 at 10:27 pm #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 cachingHas anyone goy any tips on how to fix these issues?
Thank you-
This topic was modified 9 years, 3 months ago by
gasto.
May 16, 2015 at 10:34 pm #445312I’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.htmlBut I’d still need to fix the other one.
Thanks again.
-
This reply was modified 9 years, 3 months ago by
gasto.
May 19, 2015 at 2:32 am #446147Hi,
Can you post the link to your website please?
Regards,
JosueMay 20, 2015 at 4:18 am #446892Yes, here’s the link
May 20, 2015 at 9:42 pm #447432Hey!
Try using this plugin to reduce the number of resources included in your page.
Best regards,
JosueMay 21, 2015 at 3:43 pm #447769Thanks 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?
ThanksMay 21, 2015 at 8:25 pm #447973clean_url
is deprecated:
https://codex.wordpress.org/Function_Reference/clean_urlRegards,
JosueMay 21, 2015 at 9:15 pm #447990OK, 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.May 21, 2015 at 11:40 pm #448087Hey!
Please refer to:
https://kriesi.at/support/topic/some-performance-issue-questions/#post-140176Defer 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,
JosueMay 22, 2015 at 4:26 am #448132All clear now.
Thanks! -
This topic was modified 9 years, 3 months ago by
-
AuthorPosts
- The topic ‘Google PageSpeed Insights – How to fix?’ is closed to new replies.