Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Web Performance - theFactor.e

Henk
March 08, 2016

Web Performance - theFactor.e

Teaching my co-workers about the low hanging fruits of web performance.

Henk

March 08, 2016
Tweet

More Decks by Henk

Other Decks in Technology

Transcript

  1. WPO Web performance optimization, WPO, or website optimisation is the

    field of knowledge about increasing the speed in which web pages are downloaded and displayed on the user's web browser. Bron: Wikipedia https://en.wikipedia.org/wiki/Web_performance_optimization
  2. Dus, wat kunnen wij doen om het een stukje beter

    te maken? Vooruitgang is een team effort
  3. De do do do’s • Optimaliseer afbeeldingen (format, rendering) •

    Minimaliseer CSS en JS • Compressie aanzetten (gzip) • Gebruik picture element in HTML (vrij nieuw) • Cache! Cache! Cache!
  4. De don’t s • (Te) veel third party content (hoe

    groot zijn die bij elkaar?) • Caching expire headers vergeten in de web server • Resize van afbeeldingen met height en / of width
  5. Cache static content # Enable long browser caching for assets.

    # This affects Frontend and Backend and increases performance. location ~* \.(js|css|png|jpg|jpeg|gif|ico|woff|ttf|svg|eot)$ { etag off; expires 31d; } Zonder: Met:
  6. Webpagetest supported by Google as part of our efforts to

    make the web faster http://www.webpagetest.org/ • first byte time • keep alive aan? • compressie • cacheability • CDN?
  7. IMG’s ($:~/Desktop)-> jpegoptim -m80 toepassingen.jpg toepassingen.jpg 1400x800 24bit N Exif

    IPTC JFIF [OK] 402871 --> 210680 bytes (47.71%), optimized. TFE-website Deze PNG is 512k —> “Save as”: PNG naar JPG De JPG is 400k Optimize de JPG met “jpegoptim” op de CLI: Geen zichtbaar kwaliteitsverlies in de browser!
  8. Meer weten? • Planet Performance: http://www.perfplanet.com/ • Alles van Steve

    Souders: http://www.stevesouders.com/ • Boek: Designing for Performance • Vraag het aan mij. Misschien weet ik iets…