Optimize

327 views

Published on

Published in: Technology, Design
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
327
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
5
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Optimize

  1. 1. Optimizing Load Times & Performance Alex Gvozden www.CaseTrek.com / Eleven accelerator alex@casetrek.com @mrsteel
  2. 2. Why Optimize it? Increase UX Rank better on Google Use resources better
  3. 3. How? Server configuration Reduce requests and file sizes Code optimization Caching
  4. 4. Server Choose a good hosting Good customer service Google for “Problem with … hosting”
  5. 5. Server configuration Compress content http://en.wikipedia.org/wiki/HTTP_compression http://httpd.apache.org/docs/2.2/mod/mod_deflate.html http://www.neiland.net/blog/article/enable-gzip-compression-in-apache- httpd-with-moddeflate/
  6. 6. Server configuration Add Cache-Control and Expires headers mod_cache & mod_expires http://www.askapache.com/htaccess/apache-speed-cache-control.html Or use HTTP headers, etc. <meta http-equiv="Cache-control" content="public"> http://www.peej.co.uk/articles/http-caching.html
  7. 7. Server configuration Host assets separately (JS, CSS, Images) http://yuiblog.com/blog/2007/04/11/performance-research-part-4/
  8. 8. Server configuration Host assets separately (JS, CSS, Images) http://yuiblog.com/blog/2007/04/11/performance-research-part-4/
  9. 9. Reduce requests & File size Combine and minify CSS & Javascript https://code.google.com/p/minify/
  10. 10. Reduce requests & File sizes Optimize image sizes ImageOptim for Mac Online http://www.smushit.com/ysmush.it/
  11. 11. Reduce requests & File sizes Sprite sheets…
  12. 12. Code optimization APC for PHP Opcode cache for PHP http://php.net/manual/en/book.apc.php http://www.slideshare.net/vortexau/improving-php- application-performance-with-apc-presentation Apc.stat
  13. 13. Code optimization Tips and tricks http://www.chazzuka.com/63-best-practice-to-optimize-php- code-performances-58/
  14. 14. Caching Use APC – non distributed or Memcached - distributed http://memcached.org/ Cache vars, templates, SQL queries
  15. 15. And PHP faster-> FastCGI Even more speed and less memory consumed http://www.brandonturner.net/blog/2009/07/fastcgi_php_opc ode_cache_benchmarks/

×