Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@beneverard
Created November 22, 2013 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beneverard/7597230 to your computer and use it in GitHub Desktop.
Save beneverard/7597230 to your computer and use it in GitHub Desktop.
Shropgeek Rebellion - Web performance improvements you can make in one hour. Supplementary code, links and notes. Slides: https://speakerdeck.com/beneverard/shropgeek-rebellion-web-performance-improvements-in-one-hour
# CACHING
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType text/html "access plus 1 hour"
ExpiresByType text/richtext "access plus 1 hour"
ExpiresByType text/plain "access plus 1 hour"
ExpiresByType text/xml "access plus 1 hour"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
</IfModule>
# GZIP COMPRESSION
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>
TCP Segmentation
HTML5 async - http://davidwalsh.name/html5-async
Designers: Percieved performance
Front-end developers: CSS + JavaScript efficiency
Back-end developers: Varnish - https://www.varnish-cache.org
**Scaling Django to 8 Billion Page Views**
http://blog.disqus.com/post/62187806135/scaling-django-to-8-billion-page-views
Andy Davies - http://andydavies.me/
Steve Souders - http://stevesouders.com/
**Measuring / Benchmarking**
Google PageSpeed
Yahoo YSlow
WebPagetest
Slowy App
JSPerf
Google Chrome Dev Tools
Firebug (for Firefox et al)
**Optimisation**
CodeKit
Mixture
ImageOptime
W3TC (for WordPress)
Google PageSpeed module (for Apache and nginx)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment