12
Web Performance Lessons Solving performance challenges on other people’s websites

Web Performance Lessons at DDD Sydney May 2016

Embed Size (px)

Citation preview

Page 1: Web Performance Lessons at DDD Sydney May 2016

Web Performance LessonsSolving performance challenges on other people’s websites

Page 2: Web Performance Lessons at DDD Sydney May 2016

•E-commerce• Retail• Insurance• Automotive

•News and forums•Brochureware

Context

Page 3: Web Performance Lessons at DDD Sydney May 2016

•Browser rendering performance•Delivering responses to the browser•Rendering responses on the server•Availability

Performance and Efficiency

Page 4: Web Performance Lessons at DDD Sydney May 2016

WebGoat

Page 5: Web Performance Lessons at DDD Sydney May 2016

•Cache-Control and Expires headers•Query strings•Protocol-relative URLs•Prefer GET instead of POST

Cache in the browser

Page 6: Web Performance Lessons at DDD Sydney May 2016

•Scripts and Stylesheets• Concatenate•Minify/compress

• Images• Resolution (and in HTML)• Strip metadata• Sprite / Inline

Appropriate resources

Page 7: Web Performance Lessons at DDD Sydney May 2016

•<script defer>•Page-load time versus quality metrics•Shared CDN versus on-domain•Beware coupling

Scripts

Page 8: Web Performance Lessons at DDD Sydney May 2016

•Dynamic pages not found•Server-side session state•Database contention•Degrade gracefully

Web Server

Page 9: Web Performance Lessons at DDD Sydney May 2016

•TLS is fast•Multiplexing•Server Push•Domain sharding

HTTPS and HTTP/2

Page 10: Web Performance Lessons at DDD Sydney May 2016

•Cookies•Vary: User-Agent•Cross-Site Request Forgery•User-abstracted HTML

Content Delivery Network

Page 11: Web Performance Lessons at DDD Sydney May 2016

Jason Stangroome

Twitter: @jstangroomehttps://blog.stangroome.com

Thank you

Page 12: Web Performance Lessons at DDD Sydney May 2016

1-5 August

DDD Sydney thanks our sponsors