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

Front_End_Confoo.pdf

Avatar for toni toni
March 04, 2013
84

 Front_End_Confoo.pdf

Avatar for toni

toni

March 04, 2013
Tweet

Transcript

  1. Lets Talk •Web developers duty •How you can make money

    •Measuring performance with real users •Javascript tuning •Why you should make a frontend library •Varnish vs. Memcache •& a bunch more Monday, March 4, 13
  2. Where should I start •Turn on http compression (gzip) •Cache

    all of the things •Optimize images (sprites) •Minify your css & js / use a cdn Monday, March 4, 13
  3. What is the point of all this front-end performance stuff?

    As a developer, I already have enough to worry about Monday, March 4, 13
  4. The golden rule of web performance 80-90% of response time

    is spent on the frontend. Monday, March 4, 13
  5. As web developers, its our job to optimize the web.

    Yes, that includes the crappy frontend code your designer wrote. Monday, March 4, 13
  6. Thats probably wrong too. But the real point is users

    are impatient & they expect things to load quickly Monday, March 4, 13
  7. •Singapore, Glenns largest market had an average load time of

    28 seconds, per page •All it took was a CDN, server tuning & proper frontend optimization •Generated 5 figures of additional monthly sales •Glenn was really, really happy Monday, March 4, 13
  8. Web performance is a really good way to charge a

    lot of money for a little bit of work Monday, March 4, 13
  9. There has to be a ton of small businesses doing

    sales outside of the US who have no idea they have this problem Monday, March 4, 13
  10. Because Banyan is a global service, we need to be

    fast everywhere Monday, March 4, 13
  11. #1 - App Server Response. How long it takes your

    application to issue a successful response? Monday, March 4, 13
  12. #2 - Network Speed. A server response for a 500MB

    file is fast, but downloading it isn't Monday, March 4, 13
  13. #3 - DOM Processing. Great, you've reached the user's browser,

    now how long does it take the page to load into the DOM Monday, March 4, 13
  14. #4 - Page Rendering. Only done after all the "assets"

    are downloaded. This is usually the final state of the page. Monday, March 4, 13
  15. If you’re loading alot of assets at once, a browser

    will block you Monday, March 4, 13
  16. Most browsers cap you at 6, the iphone does 6,

    but most phones cap you at 2 Monday, March 4, 13
  17. Use Inject.JS from Linkedin. It allows you to cache the

    JS files in HTML5 local storage which is a huge deal for mobile clients in particular Monday, March 4, 13
  18. Memcache saves your DB from doing a lot of read

    work, Varnish saves your dynamic web server from CPU load Monday, March 4, 13
  19. Mostly write? Varnish needs to be purged often & probably

    not worth the headache. Mostly read? Varnish has you covered. Monday, March 4, 13
  20. Similar read & write Memcache will provide info for pages

    that have a mixture of known and new data allowing you to generate pages faster. Monday, March 4, 13