SlideShare une entreprise Scribd logo
1  sur  26
Télécharger pour lire hors ligne
www.BRAINSPIRE.com
Custom Software Solutions
How to Increase Your WordPress
Website’s Google PageSpeed Score
www.BRAINSPIRE.com
Custom Software Solutions
The Situation
► You have stumbled upon the Google PageSpeed Insights tool and are
mortified by the score your website has received. You are not alone,
and there is hope! Google offers generic guides on how to resolve
some of the issues found with your website, but depending on the
platform your website it built on and your
web-development experience, there are vastly different ways of
solving these issues.
► This will be most helpful for those who have a WordPress website
and minimal coding know-how. It covers two of the biggest factors to
increasing your page speed score:
•  Optimizing JavaScript and CSS
•  Shrinking images
www.BRAINSPIRE.com
Custom Software Solutions
The Situation
► Following the steps set forth in this article series, I was able to
improve our Google PageSpeed Mobile Site Speed score from 62 to
95 and our Desktop Suggestion score from 72 to 85.
www.BRAINSPIRE.com
Custom Software Solutions
Why Should I Care About my Google PageSpeed Score?
► Google announced back in 2010 that your website's speed is part of
the algorithm to determine your website's Google ranking. Google
also recently announced that they will soon be taking into
consideration mobile site speed in their rankings as well.
► If site speed matters to Google in their search engine rankings, then
it should matter to you. Google’s PageSpeed Insights tool gives you,
well, insights into how to speed up your site.
www.BRAINSPIRE.com
Custom Software Solutions
Have a Low PageSpeed Score? You’re in Good Company
► Google's PageSpeed Insights tool is a great place to start in determining potential
website speed improvements, but keep in mind that it is not the only page speed
analyzer and should not be considered the ultimate source of the truth!
► In fact, if you have run Google PageSpeed Insights on your site and received an
abysmally low score - you are in good company! Check out the PageSpeed score for
Twitter, Facebook, and Mashable. At the time of this writing, all 3 of these
sites have a Mobile Speed score of 60 or lower.
► It is actually generally recognized among webmasters that Google PageSpeed is
not the best measuring stick for actual page speed. It is important (and helpful!) to
run tests on other website analyzers as well.1,2
► Here are some of the better website speed analyzers I've tried:
•  GTMetrix
•  WebPageTest
•  Pingdom
•  ShowSlow
www.BRAINSPIRE.com
Custom Software Solutions
A Few Important Notes Before We Start
► Most of this was A LOT of trial and error. I spent a lot of time testing
my site to ensure it still worked after every change, and I re-ran
PageSpeed Insights after every change to see what made a
difference.
► My set-up (the closer your set-up is to this, then the more helpful this
guide will probably be for you):
•  Using WordPress
•  Using Revolution Slider
•  Using Google Fonts
•  Using WPEngine as my host which restricts some plugins - I cannot use "W3
Total Cache" or “WP Rocket" which is widely recommended by the online
community to resolve PageSpeed issues.
www.BRAINSPIRE.com
Custom Software Solutions
Guide to Optimizing JavaScript and CSS in a WordPress Website
► If you have gotten the following warnings from Google PageSpeed
insights, we are here to help:
•  Eliminate render-blocking JavaScript and CSS in above-the-fold
content... This causes a delay in rendering your page.
•  Optimize CSS Delivery of the following...
•  Remove render-blocking JavaScript…
www.BRAINSPIRE.com
Custom Software Solutions
The Two Biggest Factors in Reducing the Time it Takes to Load JavaScript Are:
1.  Combining the scripts into as few files as possible.
•  WordPress sites are especially susceptible to loading many scripts upon page
load. This is because plugins and themes often each have their own scripts that
need to be loaded in order to function. In a more traditional website, the
developer would have more control over these scripts and manually combine
them to reduce the overhead upon page load.
2.  Deferring the loading of “non-critical” scripts.
•  This often involves moving scripts to the bottom of the page. When a browser is
loading your page, it typically loads things in parallel until it encounters a script.
Nothing else can load while a script loads. Once the script is done loading, the
website can continue rendering everything else. You can see how, especially if
you have many scripts, this can really affect how quickly your page will load.
www.BRAINSPIRE.com
Custom Software Solutions
Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error
► Note: We are tackling both JavaScript and CSS at once because
most of the plugins made for resolving these issues address both.
► Step 1: Resolve any render-blocking plugin scripts by adjusting
plugin settings, if possible.
-  Start with analyzing the list of render-blocking scripts Google PageSpeed
provides to you and determine if any of these scripts appear to be coming
from a plugin. If you are able to identify any plugins from the list of scripts,
go to each plugin's settings, one by one, and search for a setting that will
defer the JavaScript or load it asynchronously. If you are unable to identify
any plugins from the list of scripts, or if you do not have any of these plugin
settings available to you, continue on to step 2.
www.BRAINSPIRE.com
Custom Software Solutions
Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error
► Step 1 Continued
•  Revolution Slider settings changes:
-  In my setup, I noticed that my plugin "Revolution Slider" had several
JavaScripts listed as render-blocking. I searched Revolution Slider settings
for options to load the JavaScript asynchronously or defer it. These are the
options I ended up using:
•  In Slider Revolution "Global Settings":
-  Include RevSlider libraries globally: ON (my slider broke if I set this to
OFF, but it might be worth trying in your setup)
-  Insert JavaScript Into Footer: ON
-  Defer JavaScript Loading: OFF (again, this broke my setup if I turned
it on, but it might be worth trying)
www.BRAINSPIRE.com
Custom Software Solutions
Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error
► Step 1 Continued
www.BRAINSPIRE.com
Custom Software Solutions
Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error
► Step 1 Continued
•  In each individual slider presentation settings, I set the following:
-  Under Performance and SEO Optimization panel:
§  Lazy Load: Smart
www.BRAINSPIRE.com
Custom Software Solutions
Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error
► Step 1 Continued
•  Under Problem Handlings - Troubleshooting
-  JQuery No Conflict Mode: OFF
-  Put JS Includes To Body: OFF
-  Output Filters Protection: None
-  Debug Mode: OFF
www.BRAINSPIRE.com
Custom Software Solutions
Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error
► Step 1 Continued
•  After changing individual plugin settings, be sure to clear your cache and
test a lot! You don't want something to break on your site.
•  Check PageSpeed insights. Making these changes to Slider Revolution
helped reduce the number of render-blocking scripts our site had, but I
still needed help from other plugins to clean up everything else.
www.BRAINSPIRE.com
Custom Software Solutions
Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error
► Step 2: Combine JavaScript and CSS files into a single file (one for
JS and one for CSS) and minify them.
•  I use a plugin that does this work for me! This plugin successfully
combines all of my CSS scripts into a single file and minifies it, and it does
the same for my JS files.
-  Install the plugin "JS & CSS Script Optimizer" and check the following
settings:
§  Enable the plugin
§  Under the JavaScript settings, select the following
§  Pack JavaScripts: Enabled
§  JavaScripts Minifier: Minify by Steve Clay
§  Combine JavaScripts: Combine and Move all JavaScripts to the bottom
§  Ignore: “jquery.js”
www.BRAINSPIRE.com
Custom Software Solutions
Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error
► Step 2 Continued
www.BRAINSPIRE.com
Custom Software Solutions
Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error
► Step 2 Continued
•  Under the style-sheet settings, select the following:
§  Enable CSS optimizer: Use plugin for CSS
§  Combine CSS: Combine all CSS scripts into the single file
§  Style-sheets packing: Minify CSS files
www.BRAINSPIRE.com
Custom Software Solutions
Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error
► Step 2 Continued
•  Clear your cache and re-load your website to make sure nothing has
broken.
•  Run Google PageSpeed and see if anything has changed. In my
results, this helped reduce the number of http calls, but PageSpeed
was still hung up on the JS and CSS files being render blocking.
www.BRAINSPIRE.com
Custom Software Solutions
Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error
► Step 3: Resolve the CSS file being render-blocking
•  Install the "Autoptimize" plugin and check the following settings:
-  Enable Optimize HTML code
-  Do NOT enable Optimize JavaScript code
-  Enable Optimize CSS Code
§  "Inline and Defer CSS"
► I enabled this option; however, this takes a little bit of research to do
properly.
► This option lets you put "above the fold" CSS in the header so it is
loaded first before loading the rest of the CSS script. This allows the
above-the-fold content styling to load first so it will be rendered as
quickly as possible for the visitor.
www.BRAINSPIRE.com
Custom Software Solutions
Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error
► Step 3 Continued
•  I followed this
great guide on how to use the Autoptimize Inline and Defer CSS Option.
•  I highly recommend following this guide and enabling this option.
•  After this is done, clear your cache and re-load your website to make sure
nothing has broken. It is interesting to note that enabling the "Optimize
JavaScript code" option in my Autoptimize plugin completely crashed my
website, which is why I recommend NOT enabling that function if you have
a set-up that is similar to ours.
•  Run Google PageSpeed and see if anything has changed. In my results,
this resolved the render-blocking CSS file on mobile page speed. Now all
that is left is the render-blocking JS file.
www.BRAINSPIRE.com
Custom Software Solutions
Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error
► Step 4: Resolve the JavaScript File Being Render-Blocking
•  To resolve the JavaScript file being render-blocking, install the plugin
"Scripts To Footer." Just activate the plugin and that is it! You do not have
to edit any settings. The plugin is automatically enabled when it is
activated.
•  Again, clear your cache and re-load your website to make sure nothing
has broken.
•  Finally, run Google PageSpeed Insights again. Hopefully your “render
blocking JS and CSS” warnings are now gone! Following the steps above
completely removed this warning for our website, and increased the page
load speed.
•  The next step to seeing large performance increases on your site and
improving your Google PageSpeed score is to optimize your images –
covered in the next section!
www.BRAINSPIRE.com
Custom Software Solutions
Guide to Optimizing Images in a WordPress Website
► “Optimize the following images to reduce their size…”
•  This warning is fairly straightforward, thankfully! PageSpeed Insights finds
the images on your page that are large and could be compressed, and
lists them out for you. Compressing images involves making the image file
size smaller, without affecting the quality of the picture to the naked eye.
You could manually compress these images one by one with a desktop or
online program, or you could let a plugin do it for you!
► The following plugins are widely used and well rated:
•  ShortPixel – (free account) 100 images/month. No file size limit.
•  WP-Smushit – (free account) 1 MB file size limit, bulk option is limited to
50 files at a time.
•  EWWW Image Optimizer
•  After optimizing images on our site with one of these plugins, this Google
PageSpeed warning went away.
www.BRAINSPIRE.com
Custom Software Solutions
Additional Ways to Speed Up Your Website
► If you are looking for even more ways to speed up your website, two
things that could make the biggest difference are:
•  Using a speedy website host
•  Using a Content Delivery Network (CDN)
► In-depth explanations of these two recommendations are beyond the
scope of this article, but for more information check out:
•  https://www.codeinwp.com/blog/best-wordpress-hosting/
•  http://www.wpbeginner.com/beginners-guide/why-you-need-a-cdn-for-
your-wordpress-blog-infographic/
www.BRAINSPIRE.com
Custom Software Solutions
In Summary
► While I hope this guide has been helpful to you, please bear in mind
that there are many different setups in WordPress, and any one
difference in setup can cause these steps to not work for you. The
best results may come after much trial and error.
► Finally, if you are disappointed that you cannot seem to get your
Google PageSpeed Insight score above a certain point, remember
that there are many other benchmarks of page speed and
performance. Run a test on your site using some of the other
performance analysis tools listed earlier in this article and see how
you rank.
www.BRAINSPIRE.com
Custom Software Solutions
Reference URLs In Order of Appearance
•  https://developers.google.com/speed/pagespeed/insights/
•  http://brainspire.com/services/portals-and-websites/
•  https://webmasters.googleblog.com/2010/04/using-site-speed-in-web-search-ranking.html
•  http://www.thesempost.com/next-mobile-friendly-update-includes-page-speed-coming-in-months/
•  https://wordpress.org/support/topic/render-blocking-javascript/page/2/
•  https://wordpress.org/support/topic/eliminating-render-blocking-javascript-and-css-in-above-the-fold-content/
•  https://gtmetrix.com/
•  http://www.webpagetest.org/
•  https://tools.pingdom.com/
•  http://www.showslow.com/
•  https://codecanyon.net/item/slider-revolution-responsive-wordpress-plugin/2751380
•  https://wordpress.org/plugins/js-css-script-optimizer/
•  https://wordpress.org/plugins/autoptimize/
•  https://www.wpfaster.org/blog/how-to-use-autoptimize-inline-and-defer-css-option
•  https://wordpress.org/plugins/scripts-to-footerphp/
•  https://shortpixel.com/
•  https://wordpress.org/plugins/wp-smushit/
•  https://wordpress.org/plugins/ewww-image-optimizer/
www.BRAINSPIRE.com
Contact Us
Your Trusted Partner in Software Solutions
Our Services
Custom Application Development
Data & Business Intelligence
Application Integration
Mobile Development
Portals & Websites
Brainspire Solutions
www.brainspire.com
info@brainspire.com

Contenu connexe

Tendances

Tendances (20)

WordPress optimization
WordPress optimizationWordPress optimization
WordPress optimization
 
Measuring Web Performance (HighEdWeb FL Edition)
Measuring Web Performance (HighEdWeb FL Edition)Measuring Web Performance (HighEdWeb FL Edition)
Measuring Web Performance (HighEdWeb FL Edition)
 
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital Marketers
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital MarketersSearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital Marketers
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital Marketers
 
The Need for Speed (5 Performance Optimization Tipps) - brightonSEO 2014
The Need for Speed (5 Performance Optimization Tipps) - brightonSEO 2014The Need for Speed (5 Performance Optimization Tipps) - brightonSEO 2014
The Need for Speed (5 Performance Optimization Tipps) - brightonSEO 2014
 
Administer WordPress with WP-CLI
Administer WordPress with WP-CLIAdminister WordPress with WP-CLI
Administer WordPress with WP-CLI
 
[QCon 2011] Por uma web mais rápida: técnicas de otimização de Sites
[QCon 2011] Por uma web mais rápida: técnicas de otimização de Sites[QCon 2011] Por uma web mais rápida: técnicas de otimização de Sites
[QCon 2011] Por uma web mais rápida: técnicas de otimização de Sites
 
Implementing a Responsive Image Strategy
Implementing a Responsive Image StrategyImplementing a Responsive Image Strategy
Implementing a Responsive Image Strategy
 
The Need for Speed - SMX Sydney 2013
The Need for Speed - SMX Sydney 2013The Need for Speed - SMX Sydney 2013
The Need for Speed - SMX Sydney 2013
 
Make WordPress Faster with W3 Total Cache & Cloudflare
Make WordPress Faster with W3 Total Cache & CloudflareMake WordPress Faster with W3 Total Cache & Cloudflare
Make WordPress Faster with W3 Total Cache & Cloudflare
 
Technical SEO for WordPress - 2019 edition
Technical SEO for WordPress - 2019 editionTechnical SEO for WordPress - 2019 edition
Technical SEO for WordPress - 2019 edition
 
SearchLove San Diego 2018 | Tom Anthony | An Introduction to HTTP/2 & Service...
SearchLove San Diego 2018 | Tom Anthony | An Introduction to HTTP/2 & Service...SearchLove San Diego 2018 | Tom Anthony | An Introduction to HTTP/2 & Service...
SearchLove San Diego 2018 | Tom Anthony | An Introduction to HTTP/2 & Service...
 
Optimizing your WordPress website
Optimizing your WordPress websiteOptimizing your WordPress website
Optimizing your WordPress website
 
Html5 Fit: Get Rid of Love Handles
Html5 Fit:  Get Rid of Love HandlesHtml5 Fit:  Get Rid of Love Handles
Html5 Fit: Get Rid of Love Handles
 
Keep the Web Fast
Keep the Web FastKeep the Web Fast
Keep the Web Fast
 
Minimize website page loading time – 20+ advanced SEO tips
Minimize website page loading time – 20+ advanced SEO tipsMinimize website page loading time – 20+ advanced SEO tips
Minimize website page loading time – 20+ advanced SEO tips
 
The 5 most common reasons for a slow WordPress site and how to fix them – ext...
The 5 most common reasons for a slow WordPress site and how to fix them – ext...The 5 most common reasons for a slow WordPress site and how to fix them – ext...
The 5 most common reasons for a slow WordPress site and how to fix them – ext...
 
implement lighthouse-ci with your web development workflow
implement lighthouse-ci with your web development workflowimplement lighthouse-ci with your web development workflow
implement lighthouse-ci with your web development workflow
 
Progressive Enhancement 2.0 (Conference Agnostic)
Progressive Enhancement 2.0 (Conference Agnostic)Progressive Enhancement 2.0 (Conference Agnostic)
Progressive Enhancement 2.0 (Conference Agnostic)
 
Optimizing web performance (Fronteers edition)
Optimizing web performance (Fronteers edition)Optimizing web performance (Fronteers edition)
Optimizing web performance (Fronteers edition)
 
WordPress website optimization
WordPress website optimizationWordPress website optimization
WordPress website optimization
 

Similaire à Increase Your WordPress Website's Google PageSpeed Score

Web development today
Web development todayWeb development today
Web development today
Jaydev Gajera
 

Similaire à Increase Your WordPress Website's Google PageSpeed Score (20)

Introduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website SpeedIntroduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website Speed
 
15 ways to improve your word press website performance in 30 minutes
15 ways to improve your word press website performance in 30 minutes 15 ways to improve your word press website performance in 30 minutes
15 ways to improve your word press website performance in 30 minutes
 
Ctrl+F5 Bangalore 2017: Super charge you word press website by Justin Thomas
Ctrl+F5 Bangalore 2017: Super charge you word press website by Justin ThomasCtrl+F5 Bangalore 2017: Super charge you word press website by Justin Thomas
Ctrl+F5 Bangalore 2017: Super charge you word press website by Justin Thomas
 
Is your website's speed letting you down?
Is your website's speed letting you down?Is your website's speed letting you down?
Is your website's speed letting you down?
 
Website SEO Audits: How to Approach
Website SEO Audits: How to ApproachWebsite SEO Audits: How to Approach
Website SEO Audits: How to Approach
 
Optimizing Your WordPress Site: Why speed matters, and how to get there
Optimizing Your WordPress Site: Why speed matters, and how to get thereOptimizing Your WordPress Site: Why speed matters, and how to get there
Optimizing Your WordPress Site: Why speed matters, and how to get there
 
WordPress SEO in 2014 - WordCamp Baltimore 2014
WordPress SEO in 2014 - WordCamp Baltimore 2014WordPress SEO in 2014 - WordCamp Baltimore 2014
WordPress SEO in 2014 - WordCamp Baltimore 2014
 
Optimizing WordPress Performance
Optimizing WordPress PerformanceOptimizing WordPress Performance
Optimizing WordPress Performance
 
What Are Plugins
What Are PluginsWhat Are Plugins
What Are Plugins
 
Boosting your conversion rate through web performance improvements
Boosting your conversion rate through web performance improvementsBoosting your conversion rate through web performance improvements
Boosting your conversion rate through web performance improvements
 
WebHosting Performance / WordPress - Pubcon Vegas - Hendison
WebHosting Performance / WordPress  - Pubcon Vegas - HendisonWebHosting Performance / WordPress  - Pubcon Vegas - Hendison
WebHosting Performance / WordPress - Pubcon Vegas - Hendison
 
Improve Blog Loading Time using WordPress Plugins by Minifying Scripts
Improve Blog Loading Time using WordPress Plugins by Minifying ScriptsImprove Blog Loading Time using WordPress Plugins by Minifying Scripts
Improve Blog Loading Time using WordPress Plugins by Minifying Scripts
 
Website Optimization How to Increase Page Performance and More
Website Optimization How to Increase Page Performance and More Website Optimization How to Increase Page Performance and More
Website Optimization How to Increase Page Performance and More
 
SEO 101 - Google Page Speed Insights Explained
SEO 101 - Google Page Speed Insights Explained SEO 101 - Google Page Speed Insights Explained
SEO 101 - Google Page Speed Insights Explained
 
Orlando DNN Usergroup Pres 12/06/11
Orlando DNN Usergroup Pres 12/06/11Orlando DNN Usergroup Pres 12/06/11
Orlando DNN Usergroup Pres 12/06/11
 
Battling Google PageSpeed Insights
Battling Google PageSpeed InsightsBattling Google PageSpeed Insights
Battling Google PageSpeed Insights
 
Measuring Web Performance - HighEdWeb Edition
Measuring Web Performance - HighEdWeb EditionMeasuring Web Performance - HighEdWeb Edition
Measuring Web Performance - HighEdWeb Edition
 
WordPress North East (Jan 2021) ~ SEO Fundamentals For WordPress
WordPress North East (Jan 2021) ~ SEO Fundamentals For WordPressWordPress North East (Jan 2021) ~ SEO Fundamentals For WordPress
WordPress North East (Jan 2021) ~ SEO Fundamentals For WordPress
 
Web development today
Web development todayWeb development today
Web development today
 
Is Poor Performance Dragging You Down? Here are Five Strategies to Maximize P...
Is Poor Performance Dragging You Down? Here are Five Strategies to Maximize P...Is Poor Performance Dragging You Down? Here are Five Strategies to Maximize P...
Is Poor Performance Dragging You Down? Here are Five Strategies to Maximize P...
 

Dernier

一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理
F
 
一比一原版田纳西大学毕业证如何办理
一比一原版田纳西大学毕业证如何办理一比一原版田纳西大学毕业证如何办理
一比一原版田纳西大学毕业证如何办理
F
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
pxcywzqs
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
ydyuyu
 
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu DhabiAbu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Monica Sydney
 
一比一原版(Dundee毕业证书)英国爱丁堡龙比亚大学毕业证如何办理
一比一原版(Dundee毕业证书)英国爱丁堡龙比亚大学毕业证如何办理一比一原版(Dundee毕业证书)英国爱丁堡龙比亚大学毕业证如何办理
一比一原版(Dundee毕业证书)英国爱丁堡龙比亚大学毕业证如何办理
AS
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
ydyuyu
 
一比一原版帝国理工学院毕业证如何办理
一比一原版帝国理工学院毕业证如何办理一比一原版帝国理工学院毕业证如何办理
一比一原版帝国理工学院毕业证如何办理
F
 

Dernier (20)

Call girls Service Canacona - 8250092165 Our call girls are sure to provide y...
Call girls Service Canacona - 8250092165 Our call girls are sure to provide y...Call girls Service Canacona - 8250092165 Our call girls are sure to provide y...
Call girls Service Canacona - 8250092165 Our call girls are sure to provide y...
 
Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.
 
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime NagercoilNagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
 
一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理
 
一比一原版田纳西大学毕业证如何办理
一比一原版田纳西大学毕业证如何办理一比一原版田纳西大学毕业证如何办理
一比一原版田纳西大学毕业证如何办理
 
Leading-edge AI Image Generators of 2024
Leading-edge AI Image Generators of 2024Leading-edge AI Image Generators of 2024
Leading-edge AI Image Generators of 2024
 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
 
Call girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girlsCall girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girls
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu DhabiAbu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
 
一比一原版(Dundee毕业证书)英国爱丁堡龙比亚大学毕业证如何办理
一比一原版(Dundee毕业证书)英国爱丁堡龙比亚大学毕业证如何办理一比一原版(Dundee毕业证书)英国爱丁堡龙比亚大学毕业证如何办理
一比一原版(Dundee毕业证书)英国爱丁堡龙比亚大学毕业证如何办理
 
Research Assignment - NIST SP800 [172 A] - Presentation.pptx
Research Assignment - NIST SP800 [172 A] - Presentation.pptxResearch Assignment - NIST SP800 [172 A] - Presentation.pptx
Research Assignment - NIST SP800 [172 A] - Presentation.pptx
 
PIC Microcontroller Structure & Assembly Language.ppsx
PIC Microcontroller Structure & Assembly Language.ppsxPIC Microcontroller Structure & Assembly Language.ppsx
PIC Microcontroller Structure & Assembly Language.ppsx
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
 
一比一原版帝国理工学院毕业证如何办理
一比一原版帝国理工学院毕业证如何办理一比一原版帝国理工学院毕业证如何办理
一比一原版帝国理工学院毕业证如何办理
 
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime BalliaBallia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
 
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
 

Increase Your WordPress Website's Google PageSpeed Score

  • 1. www.BRAINSPIRE.com Custom Software Solutions How to Increase Your WordPress Website’s Google PageSpeed Score
  • 2. www.BRAINSPIRE.com Custom Software Solutions The Situation ► You have stumbled upon the Google PageSpeed Insights tool and are mortified by the score your website has received. You are not alone, and there is hope! Google offers generic guides on how to resolve some of the issues found with your website, but depending on the platform your website it built on and your web-development experience, there are vastly different ways of solving these issues. ► This will be most helpful for those who have a WordPress website and minimal coding know-how. It covers two of the biggest factors to increasing your page speed score: •  Optimizing JavaScript and CSS •  Shrinking images
  • 3. www.BRAINSPIRE.com Custom Software Solutions The Situation ► Following the steps set forth in this article series, I was able to improve our Google PageSpeed Mobile Site Speed score from 62 to 95 and our Desktop Suggestion score from 72 to 85.
  • 4. www.BRAINSPIRE.com Custom Software Solutions Why Should I Care About my Google PageSpeed Score? ► Google announced back in 2010 that your website's speed is part of the algorithm to determine your website's Google ranking. Google also recently announced that they will soon be taking into consideration mobile site speed in their rankings as well. ► If site speed matters to Google in their search engine rankings, then it should matter to you. Google’s PageSpeed Insights tool gives you, well, insights into how to speed up your site.
  • 5. www.BRAINSPIRE.com Custom Software Solutions Have a Low PageSpeed Score? You’re in Good Company ► Google's PageSpeed Insights tool is a great place to start in determining potential website speed improvements, but keep in mind that it is not the only page speed analyzer and should not be considered the ultimate source of the truth! ► In fact, if you have run Google PageSpeed Insights on your site and received an abysmally low score - you are in good company! Check out the PageSpeed score for Twitter, Facebook, and Mashable. At the time of this writing, all 3 of these sites have a Mobile Speed score of 60 or lower. ► It is actually generally recognized among webmasters that Google PageSpeed is not the best measuring stick for actual page speed. It is important (and helpful!) to run tests on other website analyzers as well.1,2 ► Here are some of the better website speed analyzers I've tried: •  GTMetrix •  WebPageTest •  Pingdom •  ShowSlow
  • 6. www.BRAINSPIRE.com Custom Software Solutions A Few Important Notes Before We Start ► Most of this was A LOT of trial and error. I spent a lot of time testing my site to ensure it still worked after every change, and I re-ran PageSpeed Insights after every change to see what made a difference. ► My set-up (the closer your set-up is to this, then the more helpful this guide will probably be for you): •  Using WordPress •  Using Revolution Slider •  Using Google Fonts •  Using WPEngine as my host which restricts some plugins - I cannot use "W3 Total Cache" or “WP Rocket" which is widely recommended by the online community to resolve PageSpeed issues.
  • 7. www.BRAINSPIRE.com Custom Software Solutions Guide to Optimizing JavaScript and CSS in a WordPress Website ► If you have gotten the following warnings from Google PageSpeed insights, we are here to help: •  Eliminate render-blocking JavaScript and CSS in above-the-fold content... This causes a delay in rendering your page. •  Optimize CSS Delivery of the following... •  Remove render-blocking JavaScript…
  • 8. www.BRAINSPIRE.com Custom Software Solutions The Two Biggest Factors in Reducing the Time it Takes to Load JavaScript Are: 1.  Combining the scripts into as few files as possible. •  WordPress sites are especially susceptible to loading many scripts upon page load. This is because plugins and themes often each have their own scripts that need to be loaded in order to function. In a more traditional website, the developer would have more control over these scripts and manually combine them to reduce the overhead upon page load. 2.  Deferring the loading of “non-critical” scripts. •  This often involves moving scripts to the bottom of the page. When a browser is loading your page, it typically loads things in parallel until it encounters a script. Nothing else can load while a script loads. Once the script is done loading, the website can continue rendering everything else. You can see how, especially if you have many scripts, this can really affect how quickly your page will load.
  • 9. www.BRAINSPIRE.com Custom Software Solutions Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error ► Note: We are tackling both JavaScript and CSS at once because most of the plugins made for resolving these issues address both. ► Step 1: Resolve any render-blocking plugin scripts by adjusting plugin settings, if possible. -  Start with analyzing the list of render-blocking scripts Google PageSpeed provides to you and determine if any of these scripts appear to be coming from a plugin. If you are able to identify any plugins from the list of scripts, go to each plugin's settings, one by one, and search for a setting that will defer the JavaScript or load it asynchronously. If you are unable to identify any plugins from the list of scripts, or if you do not have any of these plugin settings available to you, continue on to step 2.
  • 10. www.BRAINSPIRE.com Custom Software Solutions Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error ► Step 1 Continued •  Revolution Slider settings changes: -  In my setup, I noticed that my plugin "Revolution Slider" had several JavaScripts listed as render-blocking. I searched Revolution Slider settings for options to load the JavaScript asynchronously or defer it. These are the options I ended up using: •  In Slider Revolution "Global Settings": -  Include RevSlider libraries globally: ON (my slider broke if I set this to OFF, but it might be worth trying in your setup) -  Insert JavaScript Into Footer: ON -  Defer JavaScript Loading: OFF (again, this broke my setup if I turned it on, but it might be worth trying)
  • 11. www.BRAINSPIRE.com Custom Software Solutions Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error ► Step 1 Continued
  • 12. www.BRAINSPIRE.com Custom Software Solutions Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error ► Step 1 Continued •  In each individual slider presentation settings, I set the following: -  Under Performance and SEO Optimization panel: §  Lazy Load: Smart
  • 13. www.BRAINSPIRE.com Custom Software Solutions Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error ► Step 1 Continued •  Under Problem Handlings - Troubleshooting -  JQuery No Conflict Mode: OFF -  Put JS Includes To Body: OFF -  Output Filters Protection: None -  Debug Mode: OFF
  • 14. www.BRAINSPIRE.com Custom Software Solutions Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error ► Step 1 Continued •  After changing individual plugin settings, be sure to clear your cache and test a lot! You don't want something to break on your site. •  Check PageSpeed insights. Making these changes to Slider Revolution helped reduce the number of render-blocking scripts our site had, but I still needed help from other plugins to clean up everything else.
  • 15. www.BRAINSPIRE.com Custom Software Solutions Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error ► Step 2: Combine JavaScript and CSS files into a single file (one for JS and one for CSS) and minify them. •  I use a plugin that does this work for me! This plugin successfully combines all of my CSS scripts into a single file and minifies it, and it does the same for my JS files. -  Install the plugin "JS & CSS Script Optimizer" and check the following settings: §  Enable the plugin §  Under the JavaScript settings, select the following §  Pack JavaScripts: Enabled §  JavaScripts Minifier: Minify by Steve Clay §  Combine JavaScripts: Combine and Move all JavaScripts to the bottom §  Ignore: “jquery.js”
  • 16. www.BRAINSPIRE.com Custom Software Solutions Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error ► Step 2 Continued
  • 17. www.BRAINSPIRE.com Custom Software Solutions Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error ► Step 2 Continued •  Under the style-sheet settings, select the following: §  Enable CSS optimizer: Use plugin for CSS §  Combine CSS: Combine all CSS scripts into the single file §  Style-sheets packing: Minify CSS files
  • 18. www.BRAINSPIRE.com Custom Software Solutions Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error ► Step 2 Continued •  Clear your cache and re-load your website to make sure nothing has broken. •  Run Google PageSpeed and see if anything has changed. In my results, this helped reduce the number of http calls, but PageSpeed was still hung up on the JS and CSS files being render blocking.
  • 19. www.BRAINSPIRE.com Custom Software Solutions Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error ► Step 3: Resolve the CSS file being render-blocking •  Install the "Autoptimize" plugin and check the following settings: -  Enable Optimize HTML code -  Do NOT enable Optimize JavaScript code -  Enable Optimize CSS Code §  "Inline and Defer CSS" ► I enabled this option; however, this takes a little bit of research to do properly. ► This option lets you put "above the fold" CSS in the header so it is loaded first before loading the rest of the CSS script. This allows the above-the-fold content styling to load first so it will be rendered as quickly as possible for the visitor.
  • 20. www.BRAINSPIRE.com Custom Software Solutions Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error ► Step 3 Continued •  I followed this great guide on how to use the Autoptimize Inline and Defer CSS Option. •  I highly recommend following this guide and enabling this option. •  After this is done, clear your cache and re-load your website to make sure nothing has broken. It is interesting to note that enabling the "Optimize JavaScript code" option in my Autoptimize plugin completely crashed my website, which is why I recommend NOT enabling that function if you have a set-up that is similar to ours. •  Run Google PageSpeed and see if anything has changed. In my results, this resolved the render-blocking CSS file on mobile page speed. Now all that is left is the render-blocking JS file.
  • 21. www.BRAINSPIRE.com Custom Software Solutions Steps to Resolve the “Render-Blocking JavaScript and CSS” PageSpeed Error ► Step 4: Resolve the JavaScript File Being Render-Blocking •  To resolve the JavaScript file being render-blocking, install the plugin "Scripts To Footer." Just activate the plugin and that is it! You do not have to edit any settings. The plugin is automatically enabled when it is activated. •  Again, clear your cache and re-load your website to make sure nothing has broken. •  Finally, run Google PageSpeed Insights again. Hopefully your “render blocking JS and CSS” warnings are now gone! Following the steps above completely removed this warning for our website, and increased the page load speed. •  The next step to seeing large performance increases on your site and improving your Google PageSpeed score is to optimize your images – covered in the next section!
  • 22. www.BRAINSPIRE.com Custom Software Solutions Guide to Optimizing Images in a WordPress Website ► “Optimize the following images to reduce their size…” •  This warning is fairly straightforward, thankfully! PageSpeed Insights finds the images on your page that are large and could be compressed, and lists them out for you. Compressing images involves making the image file size smaller, without affecting the quality of the picture to the naked eye. You could manually compress these images one by one with a desktop or online program, or you could let a plugin do it for you! ► The following plugins are widely used and well rated: •  ShortPixel – (free account) 100 images/month. No file size limit. •  WP-Smushit – (free account) 1 MB file size limit, bulk option is limited to 50 files at a time. •  EWWW Image Optimizer •  After optimizing images on our site with one of these plugins, this Google PageSpeed warning went away.
  • 23. www.BRAINSPIRE.com Custom Software Solutions Additional Ways to Speed Up Your Website ► If you are looking for even more ways to speed up your website, two things that could make the biggest difference are: •  Using a speedy website host •  Using a Content Delivery Network (CDN) ► In-depth explanations of these two recommendations are beyond the scope of this article, but for more information check out: •  https://www.codeinwp.com/blog/best-wordpress-hosting/ •  http://www.wpbeginner.com/beginners-guide/why-you-need-a-cdn-for- your-wordpress-blog-infographic/
  • 24. www.BRAINSPIRE.com Custom Software Solutions In Summary ► While I hope this guide has been helpful to you, please bear in mind that there are many different setups in WordPress, and any one difference in setup can cause these steps to not work for you. The best results may come after much trial and error. ► Finally, if you are disappointed that you cannot seem to get your Google PageSpeed Insight score above a certain point, remember that there are many other benchmarks of page speed and performance. Run a test on your site using some of the other performance analysis tools listed earlier in this article and see how you rank.
  • 25. www.BRAINSPIRE.com Custom Software Solutions Reference URLs In Order of Appearance •  https://developers.google.com/speed/pagespeed/insights/ •  http://brainspire.com/services/portals-and-websites/ •  https://webmasters.googleblog.com/2010/04/using-site-speed-in-web-search-ranking.html •  http://www.thesempost.com/next-mobile-friendly-update-includes-page-speed-coming-in-months/ •  https://wordpress.org/support/topic/render-blocking-javascript/page/2/ •  https://wordpress.org/support/topic/eliminating-render-blocking-javascript-and-css-in-above-the-fold-content/ •  https://gtmetrix.com/ •  http://www.webpagetest.org/ •  https://tools.pingdom.com/ •  http://www.showslow.com/ •  https://codecanyon.net/item/slider-revolution-responsive-wordpress-plugin/2751380 •  https://wordpress.org/plugins/js-css-script-optimizer/ •  https://wordpress.org/plugins/autoptimize/ •  https://www.wpfaster.org/blog/how-to-use-autoptimize-inline-and-defer-css-option •  https://wordpress.org/plugins/scripts-to-footerphp/ •  https://shortpixel.com/ •  https://wordpress.org/plugins/wp-smushit/ •  https://wordpress.org/plugins/ewww-image-optimizer/
  • 26. www.BRAINSPIRE.com Contact Us Your Trusted Partner in Software Solutions Our Services Custom Application Development Data & Business Intelligence Application Integration Mobile Development Portals & Websites Brainspire Solutions www.brainspire.com info@brainspire.com