Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Mobile First: as difficult as doing things right
Search
Swwweet
November 08, 2013
Technology
225
10k
Mobile First: as difficult as doing things right
Presentation by @htmlboy at Barcelona Developers Conference 2013.
Swwweet
November 08, 2013
Tweet
Share
More Decks by Swwweet
See All by Swwweet
Wonders from the Full Stack Fest website
swwweet
1
370
How to be the best web designer in the world.
swwweet
6
1.3k
Design for loading
swwweet
5
560
One Size Fits None
swwweet
12
900
One Size Fits None - From the Front 2013
swwweet
2
740
Responsively Responsive
swwweet
23
1.7k
La letra con píxel entra
swwweet
0
1.2k
The future of code
swwweet
4
630
RWD: Dealing with navigation
swwweet
5
550
Other Decks in Technology
See All in Technology
Data Hubグループ 紹介資料
sansan33
PRO
0
2.8k
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1.1k
研究開発部メンバーの働き⽅ / Sansan R&D Profile
sansan33
PRO
4
22k
EMからVPoEを経てCTOへ:マネジメントキャリアパスにおける葛藤と成長
kakehashi
PRO
5
330
トラブルの大半は「言ってない」x「言ってない」じゃねーか!!
ichimichi
0
280
JAWS DAYS 2026 CDP道場 事前説明会 / JAWS DAYS 2026 CDP Dojo briefing document
naospon
0
110
DX Improvement at Scale
ntk1000
2
100
Microsoft Fabric のワークスペースと容量の設計原則
ryomaru0825
2
230
Webアクセシビリティ技術と実装の実際
tomokusaba
0
190
どこで打鍵するのが良い? IaCの実行基盤選定について
nrinetcom
PRO
2
110
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
4k
Digitization部 紹介資料
sansan33
PRO
1
7k
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.3k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
620
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
78
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
300
Paper Plane
katiecoart
PRO
0
47k
Technical Leadership for Architectural Decision Making
baasie
3
270
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
170
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
170
Building an army of robots
kneath
306
46k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
Discover your Explorer Soul
emna__ayadi
2
1.1k
Transcript
MOBILE FIRST As difficult as doing things right Javier Usobiaga
#bdc13
@HTMLBOY Swwweet.com
None
None
None
Opera Mini
200 MILLION USERS WORLDWIDE
HATES MY WEBSITES
No @font-face No client-side JavaScript No gradients No border-radius
None
1. AN OVERWEIGHT PROBLEM
“We've remade the Internet in our image… Obese.” – Jason
Grigsby –
The average webpage is 1.617MB. Mostly images. httparchive.org
milwaukeepolicenews.com
milwaukeepolicenews.com 7MB
redrobin.com
redrobin.com 10.9MB
grolsch.com
grolsch.com 25MB
moto.oakley.com
moto.oakley.com 85MB
Just because we can, it doesn’t mean we should.
None
None
74% of mobile users won’t wait longer than 5 seconds
for a page to load bit.ly/5secondsmobile
20€/month for 1GB
20€/month for 1GB 85MB = 1.70€
US roaming: 10€/MB
US roaming: 10€/MB 85MB = 850€
None
None
2. THE IMPORTANCE OF BEING MOBILE FIRST
Content First?
User First?
Everything First!
Reduced Browser Window In Developer's Computer First
Worry about the less capable first
None
Design around real content
1 column of content + basic styles
body{max-width: 30em;}
Consider layout an enhancement: inside @media queries
@media screen and (min-width:1px){ body{ max-width: inherit; } }
<!--[if lt IE 9]> <link href=“ie8.css" rel="stylesheet" /> <![endif]-->
github.com/scottjehl/Respond
Enhance with JavaScript
if( 'querySelector' in document && 'localStorage' in window && 'addEventListener'
in window )
Cutting the mustard
None
Conditionally load: secondary assets third-party content transitions, effects AJAX stuff
Design agnostically
Design for every input
None
Design for every context
Design for every connection
3. OPTIMIZE ALL THE THINGS!
The average webpage is 1.617MB. Mostly images. httparchive.org
Can we afford another image?
Try to serve the right image size
adaptive-images.com
github.com/scottjehl/picturefill
Do retina devices need retina images?
netvlies.nl/blog/design-interactie/retina-revolution
Optimize images: ImageOptim JpegMini SVGO
Optimize everything: reduce requests combine & minify gzip
JS files belong on the footer
Do we need a JS framework?
Avoid or conditionally load: iframes social plugins third-party assets
Consider plain links for social stuff
https://twitter.com/intent/tweet?url=http://bit.ly/ ancientMistery&text=What+is+your+sound?&via=htmlboy Twitter: http://www.facebook.com/sharer.php?u=http://bit.ly/ ancientMistery&t=What+is+your+sound? Facebook: https://plus.google.com/share?url=http://bit.ly/ ancientMistery Google+:
None
There’s so much we can optimize
None
4. PERFORMANCE BUDGET
“We’ll do it later” is a lie
Performance as a design principle
“Make the page usable in less than 10 seconds on
a GPRS connection.” – BBC News –
First load: somewhere between 65KB and 100KB
“Don't make more than 20 http requests”
“Make the page weigh less than 300KB”
“1. Optimize an existing feature or asset. 2. Remove an
existing feature or asset. 3. Don’t add the new feature or asset.” – Steve Souders –
5. PERCEIVED PERFORMANCE
Avoid JS redrawings
None
None
None
Show content as soon as possible
None
FOUT: Flash Of Unstyled Text
github.com/typekit/webfontloader
300ms delay on touch devices
github.com/ftlabs/fastclick
WRAPPING UP
Web design is not about pretty pictures
None
None
wow such design very icons so flats nice font wow
dribbble such parallax
Set a performance budget in the design workflow
“What a fast website, that on top of that, is
beautiful.”
LET PEOPLE COMMUNICATE
THANKS! @htmlboy ·
[email protected]