optimize

15
Optimizing Load Times & Performance Alex Gvozden www.CaseTrek.com / Eleven accelerator [email protected] @mrsteel

Upload: aleksandar-gvozden

Post on 16-May-2015

221 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Optimize

Optimizing Load Times& Performance

Client / Server / Backend

Alex Gvozden www.CaseTrek.com / Eleven accelerator

[email protected] @mrsteel

Page 2: Optimize

Why Optimize it?

Increase UXRank better on GoogleUse resources better

Page 3: Optimize

How?

Server configurationReduce requests and file sizes

Code optimizationCaching

Page 4: Optimize

Server

Choose a good hostingGood customer service

Google for “Problem with … hosting”

Page 6: Optimize

Server configuration

Add Cache-Control and Expires headersmod_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

Page 7: Optimize

Server configuration

Host assets separately (JS, CSS, Images) http://yuiblog.com/blog/2007/04/11/performance-research-part-4/

Page 8: Optimize

Server configuration

Host assets separately (JS, CSS, Images) http://yuiblog.com/blog/2007/04/11/performance-research-part-4/

Page 9: Optimize

Reduce requests & File size

Combine and minify CSS & Javascripthttps://code.google.com/p/minify/

Page 10: Optimize

Reduce requests & File sizes

Optimize image sizesImageOptim for Mac

Online http://www.smushit.com/ysmush.it/

Page 11: Optimize

Reduce requests & File sizes

Sprite sheets…

Page 14: Optimize

Caching

Use APC – non distributedor Memcached - distributed

http://memcached.org/

Cache vars, templates, SQL queries

Page 15: Optimize

And PHP faster-> FastCGI

Even more speed and less memory consumedhttp://www.brandonturner.net/blog/2009/07/fastcgi_php_opcode_cache_benchmarks/