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
217
8.6k
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
240
How to be the best web designer in the world.
swwweet
5
1k
Design for loading
swwweet
4
420
One Size Fits None
swwweet
12
770
One Size Fits None - From the Front 2013
swwweet
2
620
Responsively Responsive
swwweet
23
1.5k
La letra con píxel entra
swwweet
0
1k
The future of code
swwweet
4
450
RWD: Dealing with navigation
swwweet
5
400
Other Decks in Technology
See All in Technology
TypescriptでのContextualな構造化ロギングと社内全体への導入
leveragestech
3
620
株式会社EventHub・エンジニア採用資料
eventhub
0
2.1k
[PyconUS 2024] Having fun with Pydantic and pattern matching
enforcerpl
0
200
The depthes of profiling Ruby - RubyKaigi 2024
osyoyu
0
290
日本が誇るイタリアのダンスミュージック!? ユーロビートって何??
minorun365
PRO
2
240
20240509 CloudWatch でいろいろなものを監視してみよう
masaruogura
1
120
社内での継続的な機械学習勉強会の開催のコツ
yudai00
2
410
PhpStorm超絶技巧40分集中講義 #phpconkagawa
yusuke
4
790
Google Cloud Next '24 Recap in ZOZO AIに対応したBigQueryと今後のデータ分析について / AI-enabled BigQuery and future data analysis
shunsuke1014
0
110
LLM評価の落とし穴~開発者目線で気をつけるポイント~
rishigami
12
3.4k
QA経験のないエンジニアリング マネージャーがQAのカジュアル面談に出て 苦労していること・気づいたこと / scrum fest niigata 2024
yoshikiiida
2
690
20240516 OpenID TechNight Vol.21 「OIDFシェアードシグナルフレームワーク(ID2)を利用してリアルタイムでセキュリティシグナルを共有するための最新情報」
oidfj
0
190
Featured
See All Featured
BBQ
matthewcrist
80
8.8k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
18
7k
Statistics for Hackers
jakevdp
790
220k
Fantastic passwords and where to find them - at NoRuKo
philnash
39
2.5k
The Cult of Friendly URLs
andyhume
74
5.7k
What’s in a name? Adding method to the madness
productmarketing
PRO
17
2.7k
10 Git Anti Patterns You Should be Aware of
lemiorhan
649
58k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
188
16k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
34
6.1k
The Mythical Team-Month
searls
217
42k
GraphQLとの向き合い方2022年版
quramy
33
13k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
352
28k
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]