SlideShare une entreprise Scribd logo
1  sur  54
Télécharger pour lire hors ligne
Speed Up
Wordpress
Make Readers
Happy and Your
Site Green




Jason Grigsby • http://cloudour.com/blog • Twitter: @grigs • Slides at http://slideshare.net/grigs
We’ve remade the Internet in our image.
Obese
We’ve Become Bandwidth Gluttons

                                                     Since 2003:

                                                     • Web       Page Size Tripled
                                                     •#    of Objects Doubled

                                                     Since 1995:

                                                     • Web       Page Size: 22x
                                                     •#    of Objects: 21x


       Source: http://www.websiteoptimization.com/speed/tweak/average-web-page/
I blame WordPress.
Ok, maybe that’s a bit much.
But there are just so many cool plugins.
            Who can resist?

    Just one more little bite plugin.
Broadband & 4G = What, Me Worry?




        Source: http://www.websiteoptimization.com/bw/0708
Speed = Success




Shackel’s Acceptability Paradigm
      Source: Speed Up Your Site by Andrew King, p. 6.
Web Speed = Perception




                             Flickr: Uploaded October 15, 2006 by mattlogelin

September 19 • DevGroup NW   Jason Grigsby • http://userfirstweb.com
Web Speed = Perception
                             Qu ality
    U sab ility




                                ed ibility
                              Cr
               Serv ice
                                    Flickr: Uploaded October 15, 2006 by mattlogelin

September 19 • DevGroup NW          Jason Grigsby • http://userfirstweb.com
Optimizing for Flow
                             0.1 seconds —
                             Viewed as
                             Instantaneous
                             1.0 seconds —
                             Moving Freely
                             10 seconds —
                             Retain Focus on Task

                                      Flickr: Uploaded August 7, 2007 by .Hessam

September 19 • DevGroup NW         Jason Grigsby • http://userfirstweb.com
Flickr: Uploaded November 7, 2005 by Tracy O

September 19 • DevGroup NW   Jason Grigsby • http://userfirstweb.com
• Ecommerce
                              Bailout Rates
                             • Bandwidth
                              Charges



                                               Flickr: Uploaded November 7, 2005 by Tracy O

September 19 • DevGroup NW                    Jason Grigsby • http://userfirstweb.com
Mobile Web Doubled in 2008
                              Jan 08                             Jan 09



                    10821
        Daily
                               22369



                    10312
      Weekly
                            19283



                                               36870
Ever in Month
                                                                               63182


                0            17500               35000               52500             70000

                                     Unique Users (000s)
                        http://www.comscore.com/press/release.asp?press=2752
Slow Sites = Environmental Impact




    Flickr photo by Pingnews: http://www.flickr.com/photos/pingnews/370061022/
Storage Networking World 2007
http://www.flickr.com/photos/13244105@N00/29463820/
Prep Work: Get Measurement Tools
Firebug for Firefox
          http://getfirebug.com

YSlow Firebug Plugin from Yahoo
    http://developer.yahoo.com/yslow/

        Google Page Speed
http://code.google.com/speed/page-speed/
YSlow Firebug Plugin
http://developer.yahoo.com/yslow/
Our Guinea Pig
Step 1: Server vs. Client Performance
How long does it take for the
  HTML file to download?

 Look at network graph
Server Solutions

                 SQL Monitor
    http://wordpress.org/extend/plugins/sqlmon/

              WP Super Cache
http://wordpress.org/extend/plugins/wp-super-cache/

            Find a New Web Host
Most of the Time, It’s Not the Server




     Source: http://yuiblog.com/blog/2006/11/28/performance-research-part-1/
Yahoo!’s 14 Performance Rules (Now 34!)

1. Make Fewer HTTP Requests                          8. Make JavaScript and CSS External


2. Use a Content Delivery Network                    9. Reduce DNS Lookups


3. Add an Expires Header                             10.Minify JavaScript


4. Gzip Components                                   11.Avoid Redirects


5. Put Stylesheets at the Top                        12.Remove Duplicate Scripts


6. Move Scripts to the Bottom                        13.Configure ETags


7. Avoid CSS Expressions                             14.Make AJAX Cacheable

                     Source: http://developer.yahoo.com/performance/rules.html
Step 2: Take a Benchmark Measurement
Step 3: GZIP Like Your Life Depended on It
Flickr photo by amaneiro:
  http://www.flickr.com/
    photos/amaneiro/
       2396649106/




      GZIP is compression. If you do nothing else. DO THIS.
Case Study: Nearly 80% reduction in file size.


  Version   HTML      CSS      JS       Total

            40,837   17,764   1,443    60,044
 Original
             bytes    bytes   bytes     bytes

            24,907   5,320    1,443    31,670
Optimized
             bytes   bytes    bytes     bytes

            5,722    5,320    1,443    12,485
  GZIP
            bytes    bytes    bytes*    bytes
How to tell? Use YSlow Components Tab.
Add three lines to .htaccess & save the world?


<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/
css application/javascript application/x-javascript application/x-
httpd-php application/rss+xml application/atom_xml
</IfModule>
Step 4: Tell Browsers to Cache Everything
Aggressively Encourage Caching
•Goal #1: No HTTP HEAD Requests.

•Add Expires header. Put it far into the future.

•Develop naming conventions for versioning of
 files. Update filename when file is modified.

                  e.g., logo20090523.png

•Keep files under 25k for mobile devices.

•Configure or remove ETags from files.

•Watch your logs to make sure caching works.

    Flickr photo by John Wardell (Netinho): http://www.flickr.com/photo_zoom.gne?id=760902403&size=l
Add these lines to .htaccess
   <IfModule mod_expires.c>
     ExpiresActive on
     ExpiresByType image/gif "access plus 1 month"
     ExpiresByType image/jpeg "access plus 1 month"
     ExpiresByType image/png "access plus 1 month"
     ExpiresByType text/css "access plus 1 month"
     ExpiresByType application/javascript "access plus 1 month"
     ExpiresByType application/x-javascript "access plus 1 month"
     ExpiresByType application/x-icon "access plus 1 year"
   </IfModule>

If your server does not have mod_expires, alternatively use:

  <FilesMatch ".(ico|jpg|jpeg|png|gif|js|css)$">
     Header set Expires "Sun, 22 Apr 2018 01:10:54 GMT"
     Header set Cache-Control "max-age=315360000"
     Header unset Pragma
  </FilesMatch>
Step 5: Reduce the Number of Files
Many Browsers have only 2 Concurrent Connections

         One Domain                                                           Two Domains




           Source: http://yuiblog.com/blog/2007/04/11/performance-research-part-4
WP’s Biggest Performance Challenge:
Problem solved in WP2.8? Not exactly.




            @lyzadanger
Install PHP Speedy WP




http://aciddrop.com/2009/02/02/php-speedy-wp-052-bug-fix/
Step 6: Images with Correct Size & Format
PNG (or GIF)
    Logos
    Line art


    JPEG
    Photos
Complex gradients
Resize Images to Fit the Usage




                         211x157
                           11k




618x460, 50.7k
Bonus: CSS Sprites
74 icons in single file.
http;//us.i1.yimg.com/us.yimg.com/i/ww/sp/trough_1.5.gif
http://spriteme.org
The End Result
Speed Up
Wordpress
Make Readers
Happy and Your
Site Green




Thank You!
Jason Grigsby • http://cloudour.com/blog • Twitter: @grigs • Slides at http://slideshare.net/grigs

Contenu connexe

Tendances

Cloud Foundry, the Open Platform as a Service - Oscon - July 2012
Cloud Foundry, the Open Platform as a Service - Oscon - July 2012Cloud Foundry, the Open Platform as a Service - Oscon - July 2012
Cloud Foundry, the Open Platform as a Service - Oscon - July 2012
Patrick Chanezon
 
STEP 2: CREATING A HUB | Seven Steps To Creating A World Class Web Presence
STEP 2: CREATING A HUB | Seven Steps To Creating A World Class Web PresenceSTEP 2: CREATING A HUB | Seven Steps To Creating A World Class Web Presence
STEP 2: CREATING A HUB | Seven Steps To Creating A World Class Web Presence
Greg Sicotte
 
Raiders of the Fast Start: Frontend Performance Archaeology - Performance.now...
Raiders of the Fast Start: Frontend Performance Archaeology - Performance.now...Raiders of the Fast Start: Frontend Performance Archaeology - Performance.now...
Raiders of the Fast Start: Frontend Performance Archaeology - Performance.now...
Katie Sylor-Miller
 

Tendances (20)

Optimizing web performance (Fronteers edition)
Optimizing web performance (Fronteers edition)Optimizing web performance (Fronteers edition)
Optimizing web performance (Fronteers edition)
 
NATO IST Symposium 2013
NATO IST Symposium 2013NATO IST Symposium 2013
NATO IST Symposium 2013
 
Grokking REST (ZendCon 2010)
Grokking REST (ZendCon 2010)Grokking REST (ZendCon 2010)
Grokking REST (ZendCon 2010)
 
Has it really been 10 years?
Has it really been 10 years?Has it really been 10 years?
Has it really been 10 years?
 
What is Drupal - For Content Editors
What is Drupal - For Content EditorsWhat is Drupal - For Content Editors
What is Drupal - For Content Editors
 
What is Drupal? For Site Administrators
What is Drupal? For Site AdministratorsWhat is Drupal? For Site Administrators
What is Drupal? For Site Administrators
 
Cloud Foundry, the Open Platform as a Service - Oscon - July 2012
Cloud Foundry, the Open Platform as a Service - Oscon - July 2012Cloud Foundry, the Open Platform as a Service - Oscon - July 2012
Cloud Foundry, the Open Platform as a Service - Oscon - July 2012
 
Keep the Web Fast
Keep the Web FastKeep the Web Fast
Keep the Web Fast
 
Not your daddy's web server
Not your daddy's web serverNot your daddy's web server
Not your daddy's web server
 
Web Optimisation
Web OptimisationWeb Optimisation
Web Optimisation
 
Using Responsive Web Design To Make Your Web Work Everywhere - Updated
Using Responsive Web Design To Make Your Web Work Everywhere - UpdatedUsing Responsive Web Design To Make Your Web Work Everywhere - Updated
Using Responsive Web Design To Make Your Web Work Everywhere - Updated
 
STEP 2: CREATING A HUB | Seven Steps To Creating A World Class Web Presence
STEP 2: CREATING A HUB | Seven Steps To Creating A World Class Web PresenceSTEP 2: CREATING A HUB | Seven Steps To Creating A World Class Web Presence
STEP 2: CREATING A HUB | Seven Steps To Creating A World Class Web Presence
 
Web Performance & You - HighEdWeb Arkansas Version
Web Performance & You - HighEdWeb Arkansas VersionWeb Performance & You - HighEdWeb Arkansas Version
Web Performance & You - HighEdWeb Arkansas Version
 
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
 
Happy Browser, Happy User! NY Web Performance Meetup 9/20/19
Happy Browser, Happy User! NY Web Performance Meetup 9/20/19Happy Browser, Happy User! NY Web Performance Meetup 9/20/19
Happy Browser, Happy User! NY Web Performance Meetup 9/20/19
 
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
 
Advanced front end debugging with ms edge and ms tools
Advanced front end debugging with ms edge and ms toolsAdvanced front end debugging with ms edge and ms tools
Advanced front end debugging with ms edge and ms tools
 
10 Web Performance Lessons For the 21st Century
10 Web Performance Lessons For the  21st Century10 Web Performance Lessons For the  21st Century
10 Web Performance Lessons For the 21st Century
 
Get Hip with JHipster - Denver JUG 2015
Get Hip with JHipster - Denver JUG 2015Get Hip with JHipster - Denver JUG 2015
Get Hip with JHipster - Denver JUG 2015
 
Raiders of the Fast Start: Frontend Performance Archaeology - Performance.now...
Raiders of the Fast Start: Frontend Performance Archaeology - Performance.now...Raiders of the Fast Start: Frontend Performance Archaeology - Performance.now...
Raiders of the Fast Start: Frontend Performance Archaeology - Performance.now...
 

En vedette (9)

Networks, Complexity and Internet Regulation
Networks, Complexity and Internet RegulationNetworks, Complexity and Internet Regulation
Networks, Complexity and Internet Regulation
 
Open Content and Open Data
Open Content and Open DataOpen Content and Open Data
Open Content and Open Data
 
Open innovation
Open innovationOpen innovation
Open innovation
 
Creative Commons en Open Data
Creative Commons en Open DataCreative Commons en Open Data
Creative Commons en Open Data
 
wiki loves art NL
wiki loves art NLwiki loves art NL
wiki loves art NL
 
COMMUNIA policy recommendations
COMMUNIA policy recommendations COMMUNIA policy recommendations
COMMUNIA policy recommendations
 
Pokémon Go, Augmented Reality and privacy in Virtual Spaces
Pokémon Go, Augmented Reality and privacy in Virtual SpacesPokémon Go, Augmented Reality and privacy in Virtual Spaces
Pokémon Go, Augmented Reality and privacy in Virtual Spaces
 
Image and personality rights
Image and personality rightsImage and personality rights
Image and personality rights
 
Do androids dream of electric copyright?
Do androids dream of electric copyright?Do androids dream of electric copyright?
Do androids dream of electric copyright?
 

Similaire à Speed Up Wordpress Wordcamp Pdx 2009

Csdn Drdobbs Tenni Theurer Yahoo
Csdn Drdobbs Tenni Theurer YahooCsdn Drdobbs Tenni Theurer Yahoo
Csdn Drdobbs Tenni Theurer Yahoo
guestb1b95b
 
Inside Out: A Web Performance Philosophy
Inside Out: A Web Performance PhilosophyInside Out: A Web Performance Philosophy
Inside Out: A Web Performance Philosophy
Willie Jackson
 
High performance website
High performance websiteHigh performance website
High performance website
Chamnap Chhorn
 
Performance Test Analysis- Hotels
Performance Test Analysis- HotelsPerformance Test Analysis- Hotels
Performance Test Analysis- Hotels
yassine Alozade
 

Similaire à Speed Up Wordpress Wordcamp Pdx 2009 (20)

Mobile Web Speed Bumps
Mobile Web Speed BumpsMobile Web Speed Bumps
Mobile Web Speed Bumps
 
Cvcc performance tuning
Cvcc performance tuningCvcc performance tuning
Cvcc performance tuning
 
10 Things You Can Do to Speed Up Your Web App Today
10 Things You Can Do to Speed Up Your Web App Today10 Things You Can Do to Speed Up Your Web App Today
10 Things You Can Do to Speed Up Your Web App Today
 
Web performance optimization for modern web applications
Web performance optimization for modern web applicationsWeb performance optimization for modern web applications
Web performance optimization for modern web applications
 
performance.ppt
performance.pptperformance.ppt
performance.ppt
 
Why your slow loading website is costing you sales and how to fix it
Why your slow loading website is costing you sales and how to fix itWhy your slow loading website is costing you sales and how to fix it
Why your slow loading website is costing you sales and how to fix it
 
Why your slow loading website is costing you sales and how to fix it
Why your slow loading website is costing you sales and how to fix itWhy your slow loading website is costing you sales and how to fix it
Why your slow loading website is costing you sales and how to fix it
 
Csdn Drdobbs Tenni Theurer Yahoo
Csdn Drdobbs Tenni Theurer YahooCsdn Drdobbs Tenni Theurer Yahoo
Csdn Drdobbs Tenni Theurer Yahoo
 
10 things you can do to speed up your web app today stir trek edition
10 things you can do to speed up your web app today   stir trek edition10 things you can do to speed up your web app today   stir trek edition
10 things you can do to speed up your web app today stir trek edition
 
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
 
10 things you can do to speed up your web app today 2016
10 things you can do to speed up your web app today 201610 things you can do to speed up your web app today 2016
10 things you can do to speed up your web app today 2016
 
Does This Theme Make My Website Look Fat? (Wordcamp SLC 2013)
Does This Theme Make My Website Look Fat? (Wordcamp SLC 2013)Does This Theme Make My Website Look Fat? (Wordcamp SLC 2013)
Does This Theme Make My Website Look Fat? (Wordcamp SLC 2013)
 
10 Tips for Optimising WordPress
10 Tips for Optimising WordPress10 Tips for Optimising WordPress
10 Tips for Optimising WordPress
 
Optimizing WordPress Performance
Optimizing WordPress PerformanceOptimizing WordPress Performance
Optimizing WordPress Performance
 
Inside Out: A Web Performance Philosophy
Inside Out: A Web Performance PhilosophyInside Out: A Web Performance Philosophy
Inside Out: A Web Performance Philosophy
 
Rails scaling
Rails scalingRails scaling
Rails scaling
 
Progressive Enhancement 2.0 (Conference Agnostic)
Progressive Enhancement 2.0 (Conference Agnostic)Progressive Enhancement 2.0 (Conference Agnostic)
Progressive Enhancement 2.0 (Conference Agnostic)
 
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
 
High performance website
High performance websiteHigh performance website
High performance website
 
Performance Test Analysis- Hotels
Performance Test Analysis- HotelsPerformance Test Analysis- Hotels
Performance Test Analysis- Hotels
 

Plus de Jason Grigsby

Mobile First Responsive Web Design — BD Conf Oct 2013
Mobile First Responsive Web Design — BD Conf Oct 2013Mobile First Responsive Web Design — BD Conf Oct 2013
Mobile First Responsive Web Design — BD Conf Oct 2013
Jason Grigsby
 
When responsive web design meets the real world
When responsive web design meets the real worldWhen responsive web design meets the real world
When responsive web design meets the real world
Jason Grigsby
 

Plus de Jason Grigsby (20)

Planning Your Progressive Web App
Planning Your Progressive Web AppPlanning Your Progressive Web App
Planning Your Progressive Web App
 
Progressive Web App Challenges
Progressive Web App ChallengesProgressive Web App Challenges
Progressive Web App Challenges
 
Why Progressive Web Apps will transform your website
Why Progressive Web Apps will transform your websiteWhy Progressive Web Apps will transform your website
Why Progressive Web Apps will transform your website
 
The Case for Progressive Web Apps
The Case for Progressive Web AppsThe Case for Progressive Web Apps
The Case for Progressive Web Apps
 
Adapting to Input — Smashing Conference NYC
Adapting to Input — Smashing Conference NYCAdapting to Input — Smashing Conference NYC
Adapting to Input — Smashing Conference NYC
 
Responsive images are here. Now what?
Responsive images are here. Now what?Responsive images are here. Now what?
Responsive images are here. Now what?
 
Mobile First Responsive Web Design — BD Conf Oct 2013
Mobile First Responsive Web Design — BD Conf Oct 2013Mobile First Responsive Web Design — BD Conf Oct 2013
Mobile First Responsive Web Design — BD Conf Oct 2013
 
Responsive Images and Video
Responsive Images and VideoResponsive Images and Video
Responsive Images and Video
 
When responsive web design meets the real world
When responsive web design meets the real worldWhen responsive web design meets the real world
When responsive web design meets the real world
 
Adaptive Input — Breaking Development Conference, San Diego
Adaptive Input — Breaking Development Conference, San DiegoAdaptive Input — Breaking Development Conference, San Diego
Adaptive Input — Breaking Development Conference, San Diego
 
Mobile First Responsive Design
Mobile First Responsive DesignMobile First Responsive Design
Mobile First Responsive Design
 
Casting Off Our Desktop Shackles
Casting Off Our Desktop ShacklesCasting Off Our Desktop Shackles
Casting Off Our Desktop Shackles
 
The Immobile Web
The Immobile WebThe Immobile Web
The Immobile Web
 
Mobile: The Market, The Web and Windows Phone’s Future
Mobile: The Market, The Web and Windows Phone’s Future Mobile: The Market, The Web and Windows Phone’s Future
Mobile: The Market, The Web and Windows Phone’s Future
 
Native is easy. Mobile web is freaking hard.
Native is easy. Mobile web is freaking hard.Native is easy. Mobile web is freaking hard.
Native is easy. Mobile web is freaking hard.
 
Innotech - Get Me a Mobile Strategy or You’re Fired!
Innotech - Get Me a Mobile Strategy or You’re Fired!Innotech - Get Me a Mobile Strategy or You’re Fired!
Innotech - Get Me a Mobile Strategy or You’re Fired!
 
Where 2.0 -- Get me a mobile strategy or you’re fired!
Where 2.0 -- Get me a mobile strategy or you’re fired!Where 2.0 -- Get me a mobile strategy or you’re fired!
Where 2.0 -- Get me a mobile strategy or you’re fired!
 
Native is easy. Web is essential.
Native is easy. Web is essential.Native is easy. Web is essential.
Native is easy. Web is essential.
 
Journalism and the Future of Mobile
Journalism and the Future of MobileJournalism and the Future of Mobile
Journalism and the Future of Mobile
 
Get Me a Mobile Strategy or You're Fired - Central Oregon Ad Fed
Get Me a Mobile Strategy or You're Fired  - Central Oregon Ad FedGet Me a Mobile Strategy or You're Fired  - Central Oregon Ad Fed
Get Me a Mobile Strategy or You're Fired - Central Oregon Ad Fed
 

Dernier

Dernier (20)

AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 

Speed Up Wordpress Wordcamp Pdx 2009

  • 1. Speed Up Wordpress Make Readers Happy and Your Site Green Jason Grigsby • http://cloudour.com/blog • Twitter: @grigs • Slides at http://slideshare.net/grigs
  • 2. We’ve remade the Internet in our image.
  • 4. We’ve Become Bandwidth Gluttons Since 2003: • Web Page Size Tripled •# of Objects Doubled Since 1995: • Web Page Size: 22x •# of Objects: 21x Source: http://www.websiteoptimization.com/speed/tweak/average-web-page/
  • 6. Ok, maybe that’s a bit much.
  • 7. But there are just so many cool plugins. Who can resist? Just one more little bite plugin.
  • 8. Broadband & 4G = What, Me Worry? Source: http://www.websiteoptimization.com/bw/0708
  • 9. Speed = Success Shackel’s Acceptability Paradigm Source: Speed Up Your Site by Andrew King, p. 6.
  • 10. Web Speed = Perception Flickr: Uploaded October 15, 2006 by mattlogelin September 19 • DevGroup NW Jason Grigsby • http://userfirstweb.com
  • 11. Web Speed = Perception Qu ality U sab ility ed ibility Cr Serv ice Flickr: Uploaded October 15, 2006 by mattlogelin September 19 • DevGroup NW Jason Grigsby • http://userfirstweb.com
  • 12. Optimizing for Flow 0.1 seconds — Viewed as Instantaneous 1.0 seconds — Moving Freely 10 seconds — Retain Focus on Task Flickr: Uploaded August 7, 2007 by .Hessam September 19 • DevGroup NW Jason Grigsby • http://userfirstweb.com
  • 13. Flickr: Uploaded November 7, 2005 by Tracy O September 19 • DevGroup NW Jason Grigsby • http://userfirstweb.com
  • 14. • Ecommerce Bailout Rates • Bandwidth Charges Flickr: Uploaded November 7, 2005 by Tracy O September 19 • DevGroup NW Jason Grigsby • http://userfirstweb.com
  • 15.
  • 16. Mobile Web Doubled in 2008 Jan 08 Jan 09 10821 Daily 22369 10312 Weekly 19283 36870 Ever in Month 63182 0 17500 35000 52500 70000 Unique Users (000s) http://www.comscore.com/press/release.asp?press=2752
  • 17. Slow Sites = Environmental Impact Flickr photo by Pingnews: http://www.flickr.com/photos/pingnews/370061022/
  • 20.
  • 21. Prep Work: Get Measurement Tools
  • 22. Firebug for Firefox http://getfirebug.com YSlow Firebug Plugin from Yahoo http://developer.yahoo.com/yslow/ Google Page Speed http://code.google.com/speed/page-speed/
  • 25. Step 1: Server vs. Client Performance
  • 26. How long does it take for the HTML file to download? Look at network graph
  • 27.
  • 28. Server Solutions SQL Monitor http://wordpress.org/extend/plugins/sqlmon/ WP Super Cache http://wordpress.org/extend/plugins/wp-super-cache/ Find a New Web Host
  • 29. Most of the Time, It’s Not the Server Source: http://yuiblog.com/blog/2006/11/28/performance-research-part-1/
  • 30. Yahoo!’s 14 Performance Rules (Now 34!) 1. Make Fewer HTTP Requests 8. Make JavaScript and CSS External 2. Use a Content Delivery Network 9. Reduce DNS Lookups 3. Add an Expires Header 10.Minify JavaScript 4. Gzip Components 11.Avoid Redirects 5. Put Stylesheets at the Top 12.Remove Duplicate Scripts 6. Move Scripts to the Bottom 13.Configure ETags 7. Avoid CSS Expressions 14.Make AJAX Cacheable Source: http://developer.yahoo.com/performance/rules.html
  • 31. Step 2: Take a Benchmark Measurement
  • 32. Step 3: GZIP Like Your Life Depended on It
  • 33. Flickr photo by amaneiro: http://www.flickr.com/ photos/amaneiro/ 2396649106/ GZIP is compression. If you do nothing else. DO THIS.
  • 34. Case Study: Nearly 80% reduction in file size. Version HTML CSS JS Total 40,837 17,764 1,443 60,044 Original bytes bytes bytes bytes 24,907 5,320 1,443 31,670 Optimized bytes bytes bytes bytes 5,722 5,320 1,443 12,485 GZIP bytes bytes bytes* bytes
  • 35. How to tell? Use YSlow Components Tab.
  • 36. Add three lines to .htaccess & save the world? <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html text/plain text/xml text/ css application/javascript application/x-javascript application/x- httpd-php application/rss+xml application/atom_xml </IfModule>
  • 37. Step 4: Tell Browsers to Cache Everything
  • 38. Aggressively Encourage Caching •Goal #1: No HTTP HEAD Requests. •Add Expires header. Put it far into the future. •Develop naming conventions for versioning of files. Update filename when file is modified. e.g., logo20090523.png •Keep files under 25k for mobile devices. •Configure or remove ETags from files. •Watch your logs to make sure caching works. Flickr photo by John Wardell (Netinho): http://www.flickr.com/photo_zoom.gne?id=760902403&size=l
  • 39. Add these lines to .htaccess <IfModule mod_expires.c> ExpiresActive on ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 month" ExpiresByType application/javascript "access plus 1 month" ExpiresByType application/x-javascript "access plus 1 month" ExpiresByType application/x-icon "access plus 1 year" </IfModule> If your server does not have mod_expires, alternatively use: <FilesMatch ".(ico|jpg|jpeg|png|gif|js|css)$"> Header set Expires "Sun, 22 Apr 2018 01:10:54 GMT" Header set Cache-Control "max-age=315360000" Header unset Pragma </FilesMatch>
  • 40. Step 5: Reduce the Number of Files
  • 41. Many Browsers have only 2 Concurrent Connections One Domain Two Domains Source: http://yuiblog.com/blog/2007/04/11/performance-research-part-4
  • 43.
  • 44. Problem solved in WP2.8? Not exactly. @lyzadanger
  • 45. Install PHP Speedy WP http://aciddrop.com/2009/02/02/php-speedy-wp-052-bug-fix/
  • 46. Step 6: Images with Correct Size & Format
  • 47. PNG (or GIF) Logos Line art JPEG Photos Complex gradients
  • 48. Resize Images to Fit the Usage 211x157 11k 618x460, 50.7k
  • 50. 74 icons in single file. http;//us.i1.yimg.com/us.yimg.com/i/ww/sp/trough_1.5.gif
  • 53.
  • 54. Speed Up Wordpress Make Readers Happy and Your Site Green Thank You! Jason Grigsby • http://cloudour.com/blog • Twitter: @grigs • Slides at http://slideshare.net/grigs