mobile first is performance first

30
Mobile First Is Performance First Stephanie Hobson

Upload: stephanie-hobson

Post on 15-Jul-2015

755 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Mobile First Is Performance First

Mobile First Is Performance First

Stephanie Hobson!

Page 2: Mobile First Is Performance First

If you could only do one thing to prepare your desktop site for mobile… [make] the desktop site blazingly fast.

blog.cloudfour.com/first-thing-you-should-do-to-optimize-your-desktop-site-for-mobile

Jason Grigsby

Page 3: Mobile First Is Performance First

Slow load time is cited as the most common issue experienced when accessing a website or application.

e-commercefacts.com/research/2011/07/what-usrs-want-from-mobil/19986_WhatMobileUsersWant_Wp.pdf

Page 4: Mobile First Is Performance First

85% of mobile users expect sites to load at least as fast or faster than sites on their desktop

www.strangeloopnetworks.com/resources/infographics/web-performance-and-user-expectations/mobile-device-

users-expect-sites-to-load-fast

Page 5: Mobile First Is Performance First

40% of people abandon a website that takes more than 3 seconds to load.

blog.kissmetrics.com/loading-time

Page 6: Mobile First Is Performance First

Your Desktop Site is Slowing Your Mobile Site Down

Page 7: Mobile First Is Performance First

guypo.com/rwd-2014

Page 8: Mobile First Is Performance First

www.smashingmagazine.com/2013/04/03/build-fast-loading-mobile-website

Page 9: Mobile First Is Performance First

www.smashingmagazine.com/2013/04/03/build-fast-loading-mobile-website

Page 10: Mobile First Is Performance First
Page 11: Mobile First Is Performance First

Code Your Mobile Site First

Page 12: Mobile First Is Performance First

Content!• Critical content

- Article? Product? - Sharing? Comments? Ads? Mega menu? Sidebar?!

• Images- gradients- SVG - background- compressive images- srcset

Page 13: Mobile First Is Performance First

CSS!• Defer or Inline!• Fonts

- Do your mobile users need them?- FOIT vs FOUT

Page 14: Mobile First Is Performance First
Page 15: Mobile First Is Performance First
Page 16: Mobile First Is Performance First

JavaScript!• Progressive Enhancement!• Defer and async!• Be picky

Page 17: Mobile First Is Performance First
Page 18: Mobile First Is Performance First

The First 14KB !Are The Most Important!

Page 19: Mobile First Is Performance First

chimera.labs.oreilly.com/books/1230000000545/ch02.html

Page 20: Mobile First Is Performance First

Download speed is not the bottleneck. The bottleneck is the network latency.

www.smashingmagazine.com/2013/04/03/build-fast-loading-mobile-website

Johan Johansson

Page 21: Mobile First Is Performance First

chimera.labs.oreilly.com/books/1230000000545/ch10.html

Page 22: Mobile First Is Performance First
Page 23: Mobile First Is Performance First

1000ms - 14KB!

Page 24: Mobile First Is Performance First

The Guardian!• The Guardian

- speakerdeck.com/patrickhamann/building-theguardian-dot-com - www.youtube.com/watch?v=dfweWyVScaI

Page 25: Mobile First Is Performance First

The Guardian!• Content

- only article, no comments, sharing, related/popular articles, not even ads.!

• CSS- critical CSS inline in the head, ajaxed into localstorage- no web font on first load, FOUT, webfontjson!

• Javascript- only loaded by modern browsers that “cut the mustard”

Page 26: Mobile First Is Performance First
Page 27: Mobile First Is Performance First

People Smarterer Than Me• Patrick Hamann

- speakerdeck.com/patrickhamann/building-theguardian-dot-com - www.youtube.com/watch?v=dfweWyVScaI !

• Paul Irish- http://goo.gl/Lw8IAX !

• Scott Jehl- “Responsible Responsive Design”!

• Ilya Grigorik- “High Performance Browser Networking” (Free online!)

Page 28: Mobile First Is Performance First

I like to make websites everyone can use

Stephanie Hobson!stephaniehobson.ca!@stephaniehobson!

Page 29: Mobile First Is Performance First
Page 30: Mobile First Is Performance First

Testing Your Code• Waterfall

- Network panels - webpagetest.org!

• Slow connection- Tether- Chrome DevTools - webpagetest.org film strip view