Advertisement
lewisje

Buttcoin, please speed up your site.

May 23rd, 2014
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. Your site takes way too long to load, especially the fonts; I ran Google PageSpeed Insights and found the following easy and highly effective steps to take:
  2.  
  3. Enable compression: This link has an overview of why you should do it for textual files like HTML and Javascript, and because you use Apache, I can go ahead and send you the rules I've set up on a site I maintain, to be placed in the .htaccess file: http://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/
  4.  
  5. Minimize redirects/Serve resources from a consistent URL: I don't think you can change the one involving Disqus, but for the benefit of those of us who use HTTPS Everywhere, or who have YouTube Center set up to prefer HTTPS, you could change all YouTube embeds and Twitter and Facebook widgets to use HTTPS from the get-go.
  6.  
  7. Optimize images: Use the following service to losslessly optimize images (I personally use command-line tools, but this is easier): http://www.smushit.com/ysmush.it/
  8.  
  9. Enable Keep-Alive/Leverage browser caching: The latter is done by specifying far-future Expires headers, and I can show you what I did on my own site.
  10.  
  11. Finally, although it didn't mention this much, you could possibly reorder external stylesheets to go before external scripts, and as many external scripts as possible (that is, if inline scripts don't rely on them) should go just before the end of the body and should be async (and, if they don't use document.write, try defer too); you've done a lot of that already, though.
  12.  
  13. YSlow mentioned using a cookie-free domain for static resources like images and scripts that don't need to use cookies (although because you made the base non-www domain primary, you'd need to get a new domain for that purpose, or re-work the site so say, the www subdomain is primary and the free subdomain is cookie-free), and setting ETags (which I can also show you how to do).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement