Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Improve your website performance

Improve your website performance

Why speed matters, ways to measure it, and best practices to follow to optimize your website for best performance

Irina Blumenfeld

January 26, 2016
Tweet

More Decks by Irina Blumenfeld

Other Decks in Technology

Transcript

  1. IMPROVE YOUR WEBSITE PERFORMANCE WordPress Meetup - 01/26/16 IRINA BLUMENFELD

    www.twitter.com/irinablumenfeld www.netmagik.com/performance
  2. 74% of mobile users will abandon a site if it

    takes longer then 5 sec to load http://loadstorm.com/2014/04/infographic-web-performance-impacts-conversion-rates/
  3. GT Metrix
 http://www.gtmetrix.com Pingdom Tools
 http://tools.pingdom.com/fpt/ Google Page Speed Insights


    https://developers.google.com/speed/pagespeed/insights/ WebPageTest.org HOW DO YOU MEASURE IT?
  4. IMPROVE 1. Optimize Images 2. Concatenate/Minify Files 3. Caching 4.

    Gzip 5. CDN 6. Reduce Bad Requests 7. Evaluate Fonts 8. Remove Query Strings
  5. 1. OPTIMIZE IMAGES COMPRESS - reduce size in Kb
 EWWW

    Image Optimizer - Free WordPress Plugin
 Compress JPEG & PNG images - Free WordPress Plugin
 Kraken.io - online tool and paid WP Plugin
 ImageOptim - Free Mac app
 SCALE/RESIZE - set max width/height
 Imsanity - Free WordPress Plugin
 Compress JPEG & PNG images - Free WordPress Plugin
 Kraken.io - Web Interface PRO
  6. 2. REDUCE REQUESTS - CONCATENATE 100 HTTP requests: 20 JS

    files 10 CSS files 1/3 of the page!
  7. 2. REDUCE REQUESTS - CONCATENATE Minqueue plugin Autoptimize plugin ZenCache

    (Pro version) CSS file 1 + CSS file 2 + CSS file 3 + CSS file 4… YourSite.com/WP-Content/Resources/CSS/Combined_1234.css =
  8. <IfModule deflate_module> <IfModule filter_module> AddOutputFilterByType DEFLATE text/plain text/html AddOutputFilterByType DEFLATE

    text/xml application/xml application/xhtml+xml application/xml-dtd AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml image/svg+xml AddOutputFilterByType DEFLATE text/css text/javascript application/javascript application/x-javascript AddOutputFilterByType DEFLATE font/otf font/opentype application/font-otf application/x-font-otf AddOutputFilterByType DEFLATE font/ttf font/truetype application/font-ttf application/x-font-ttf </IfModule> </IfModule> # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /your-site/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /your-site/index.php [L] </IfModule> # END WordPress .htaccess file 4. GZIP Add this code - http://bit.ly/gzipcompress After this existing code
  9. 8. REMOVE QUERY STRINGS Plugin: Remove Query Strings from Static

    Resources insert in functions.php: http://bit.ly/removestrings or
  10. LESS IS BETTER Blog posts (<5, use excerpts) Remove unused

    CSS Evaluate third party calls Sliders and full-screen video background
  11. Case Study Before Removed image slider - replaced with 1

    image Removed query strings Added Gzip Added Minqueue Plugin to combine CSS and JS Cleaned up CSS After
  12. IN CONCLUSION 1. Optimize Images 2. Reduce Requests 3. Add

    Gzip 4. Caching 5. Use CDN 6. Reduce Bad Requests 7. Evaluate Fonts 8. Remove Query Strings