Extended version of talk "Please don't touch the slow parts". I gave this at PhpDay on May 15th 2010.
It's about improving web applications speed. Based on Steve Souders work.
Also
http://www.ideato.it/
http://federico.galassi.net/
http://www.stevesouders.com/
http://www.bettersoftware.it/
http://www.phpday.it/
Follow me on Twitter!
https://twitter.com/federicogalassi
24. Each resource is another
web request
render
Saturday, May 15, 2010
25. Requests are
processed in parallel
render
Saturday, May 15, 2010
26. Rendering is execution
render
INPUT
EVENT QUEUE
mouse moved
mouse pressed
OS mouse released
key pressed
key released
Saturday, May 15, 2010
27. Execution in one thread
render
mouse moved EVENT QUEUE
mouse pressed
mouse released
key pressed
key released
Javascript Web
Execution Browsing
Saturday, May 15, 2010
28. Once upon a time...
Static pages
Few resources
Less javascript
Saturday, May 15, 2010
29. Most time on server
domain connect send receive render
Saturday, May 15, 2010
30. Solution is faster serverside
domain connect send receive render
Saturday, May 15, 2010
45. Less stuff
Fewer requests
Too many resources
Concatenate js/css
Css sprites
Inline images
Saturday, May 15, 2010
46. Less stuff
Cache requests
Resources
re-downloaded
Expires header
Revving Files
External js/css
Remove etags
Saturday, May 15, 2010
47. Smaller stuff
Compress responses
Resources are too big
Content-Encoding
Gzip
Deflate
Saturday, May 15, 2010
48. Smaller stuff
Minify responses
Resources are too big
js, css, html
remove formatting
remove comments
optimize images
use tools
Saturday, May 15, 2010
49. Closer stuff
Use a CDN
Resources are too far
reduce latency
Saturday, May 15, 2010