SlideShare ist ein Scribd-Unternehmen logo
1 von 173
Downloaden Sie, um offline zu lesen
Mobile First
Responsive Design
Jason Grigsby • @grigs • cloudfour.com
Follow along at @grigs_talks

http://bit.ly/grigs-2013-10-21
The web has always been a balancing act…

p://www.flickr.com/photos/classblog/5136926303
with many competing priorities.

http://www.flickr.com/photos/tudor/4324056624/
Finding that balance is more difficult…

http://www.flickr.com/photos/superfantastic/50088733/
as device diversity increases.
http://www.flickr.com/photos/lyza/7382235106
Responsive web design offers us

for a sensible way to deal with device diversity.
http://www.flickr.com/photos/darrentunnicliff/4232232092/
And yet the one question I frequently ask myself is…
Can a one size fits all solution…

http://www.flickr.com/photos/sldghmmr/6041481069
compete with a
tailored experience?
http://www.flickr.com/photos/helloturkeytoe/4932748746/
Important question from many perspectives:
Search engine optimization
Context
Advertising
Performance
PERFORMANCE
People demand fast web sites.

http://www.akamai.com/dl/whitepapers/ecommerce_website_perf_wp.pdf
Slow sites mean real dollars are lost.
Privacy and cookie policy

Log In

Subscribe

Subscribe

Basket

Reports

Contact Us

Training

Events

i am looking for...

Jobs

Blog

More

Browse by topic

Home / Blog

67% of consumers cite slow
websites as the main cause of
basket abandonment
by David Moth
Tweet

236

06 December 2012 11:40

3

8 comments
Like

14

Daily Pulse Newsletter
Get our free Daily Pulse Newsletter to
keep informed about the latest news and
insights in Digital Marketing.

Register for our free Daily Pulse

Print

Share

20

Everyone hates slow loading websites, and a new survey
highlights just how damaging a slow site can be to the user
experience.
The study by Brand Perfect found that two thirds of UK
consumers (67%) cite slow loading times as the main reason
they would abandon an online purchase.
It’s a topic we’ve looked at in more detail in our post 'Site
speed: case studies, tips and tools for improving your conversion rate', with stats showing that
slow loading websites are losing businesses up to £1.73bn a year.

ADVERTISE HERE »
Top ecommerce sites are 22% slower than last year

http://www.webperformancetoday.com/2013/03/27/top-ecommerce-sites-are-slower-than-they-were-last-year/
Mobile users don’t care that their network is slow.

http://www.gomez.com/wp-content/downloads/19986_WhatMobileUsersWant_Wp.pdf
Luke’s fantastic gesture reference: http://www.lukew.com/ff/entry.asp?1071
Many ways to navigate desktop web sites on mobile.

Luke’s fantastic gesture reference: http://www.lukew.com/ff/entry.asp?1071
There are no gestures that
can make a web site faster.

http://www.flickr.com/photos/stephenjohnbryde/384095768/
http://www.flickr.com/photos/nathaninsandiego/4829858186/
http://www.flickr.com/photos/wesbrowning/5316400258/
BBG: Before Boston Globe

http://www.flickr.com/photos/69797234@N06/7203485148/
Original Resized K Saved % Saved

Original Resized K Saved % Saved

34.7K

8.1K

26.6K 76.6%

43.4K

8.2K

35.2K 81.1%

39.0K

8.4K

30.6K 78.4%

26.0K

6.6K

19.4K 74.6%

30.5K

6.7K

23.8K 78.0%

34.7K

7.8K

26.9K 77.5%
Original Resized K Saved % Saved

Original Resized K Saved % Saved

34.7K

8.1K

26.6K 76.6%

43.4K

8.2K

35.2K 81.1%

39.0K

8.4K

30.6K 78.4%

26.0K

6.6K

19.4K 74.6%

30.5K

6.7K

23.8K 78.0%

34.7K

7.8K

26.9K 77.5%
Original Resized K Saved % Saved

Original Resized K Saved % Saved

34.7K

43.4K

8.1K

26.6K 76.6%

8.2K

35.2K 81.1%

Original Resized K Saved % Saved
39.0K

8.4K

30.6K 78.4%

26.0K

6.6K

19.4K 74.6%

Total 208.3K 45.8K 162.5K 78.0%
30.5K

6.7K

23.8K 78.0%

34.7K

7.8K

26.9K 77.5%
The resounding answer from the community:

Mobile First Responsive Web Design
Mobile First Responsive Web Design

http://bradfrostweb.com/blog/web/mobile-first-responsive-web-design/
“Awesome. We’ll
devote a chapter to
Mobile First
Responsive Web
Design in our book.”
“Awesome. We’ll
devote a chapter to
Mobile First
Responsive Web
Design in our book.”
Famous last words.
Where are the Mobile First RWDs?
106 sites from mediaqueri.es tested

4%

9%
25%

21%
4%

38%

Mobile is Larger
Same Size
Less than 10% Savings
11 to 50% Savings
51% to 100% Savings
Greater than 100% Savings

http://blog.cloudfour.com/where-are-the-mobile-first-responsive-web-designs/
Guy Podjarny repeated the experiment
2013: 476 sites from mediaqueri.es tested

http://www.guypo.com/uncategorized/real-world-rwd-performance-take-2/
http://www.thefoxisblack.com/2012/10/02/the-design-thinking-behind-the-new-disney-com/
http://www.flickr.com/photos/beautyredefined/2643858323/
http://www.flickr.com/photos/puuikibeach/3654517679
Most responsive web designs are…
Time to pen another fool’s gold post?
http://www.flickr.com/photos/myklroventine/3400040943/
“

Being Responsive from a layout perspective should
not preclude us from being responsive from a
performance and interaction perspective.
—Scott Jehl

https://twitter.com/scottjehl/status/243025352069349377
5

key techniques
for responsible
responsive design
#1

Build Mobile First
Responsive Designs

http://www.flickr.com/photos/auyongcheemeng/95769332/
Different
than Mobile
First Design
Theory

http://www.flickr.com/photos/localcelebrity/4831362933/
Mobile First Responsive Web Design is a
technical approach for responsive designs.

http://bradfrostweb.com/blog/web/mobile-first-responsive-web-design/
http://www.flickr.com/photos/gumption/3639682201/
http://www.businessinsider.com/survey-mobile-first-bad-strategy-2012-12
Luke’s Take on Mobile First
Growth

= Opportunity

Constraints

= Focus

Capabilities

= Innovation

http://www.lukew.com/ff/entry.asp?933
How do I make this responsive?
How do I make this responsive?
How do I make this responsive?
http://www.flickr.com/photos/ancphotos_/6728574731
Ok, let’s start from a clean slate

http://www.flickr.com/photos/salendron/5569020488/
What would the mobile version look like?
What would the mobile version look like?
What would the mobile version look like?
How does that map to desktop design?
How does that map to desktop design?
How does that map to desktop design?
How does that map to desktop design?
How does that map to desktop design?
How does that map to desktop design?
How does that map to desktop design?
How does that map to desktop design?
How does that map to desktop design?
How does that map to desktop design?
How does that map to desktop design?
How does that map to desktop design?
How does that map to desktop design?
How does that map to desktop design?
Can this desktop version be better using what
we’ve learned from the mobile version?
Mobile
First
This is why Mobile First thinking is so powerful even on
projects that are currently implemented on the desktop.
Mobile First Responsive Web Design is a
technical approach for responsive designs.

http://bradfrostweb.com/blog/web/mobile-first-responsive-web-design/
Reorder media queries so cascade
goes from small to large screens
/* Wider viewports/higher resolutions (e.g. desktop)
@media screen and (min-width:481px) {
[Desktop layout rules here]
}
/* Mobile/lower-resolution devices */
@media screen and (max-width:480px) {
[Mobile layout rules here]
}

*/

e the mobile media query block
Mov
ry.
above the desktop media quesure
By doing this, we’re making S is
the cascading effect of CSfirst
consistent with our mobile oach.
progressive enhancement appr

Keep basic styles outside of media queries.
“

The absence of support for media queries
is in fact the first media query.
—Bryan Rieger, Yiibu
IE8 and below don’t
support media queries.
What do you see if your browser
doesn’t support media queries?
Desktop First Responsive Web
Design = Desktop Fallback
Mobile First Responsive Web
Design = Mobile Fallback
IE conditional comments
<link rel="stylesheet" type="text/css" href="taps.css" />
<link rel="stylesheet" type="text/css" href="layout.css" media="all and
(min-width: 481px)">
<!--[if (lt IE 9)&(!IEMobile)]>
<link rel="stylesheet" type="text/css" href="layout.css" media="all" />
<![endif]-->

The conditional comment repeats the line above it
ensuring desktop IE sees our layout.css file.
IE conditional comments
<link rel="stylesheet" type="text/css" href="taps.css" />
<link rel="stylesheet" type="text/css" href="layout.css" media="all and
(min-width: 481px)">
<!--[if (lt IE 9)&(!IEMobile)]>
<link rel="stylesheet" type="text/css" href="layout.css" media="all" />
<![endif]-->

The conditional comment repeats the line above it
ensuring desktop IE sees our layout.css file.

or use Respond.js
(a media query polyfill for IE)
#2
Keep CSS
images in
their place
http://www.flickr.com/photos/lintmachine/2306383943/
Images with display:none are still downloaded

@media screen and (max-width:480px) {
[Other CSS rules are here]
.header {display:none;}
}

ing it
aps.jpg file is 440.7K mak
The t
the largest file on the page.
http://timkadlec.com/2012/04/media-query-asset-downloading-results/
Images scoped within media queries
<div	
  id="test5"></div>
@media	
  all	
  and	
  (min-­‐width:	
  601px)	
  {
	
  	
  	
  	
  #test5	
  {
	
  	
  	
  	
  	
  	
  	
  	
  background-­‐
image:url('images/test5-­‐
desktop.png');
	
  	
  	
  	
  	
  	
  	
  	
  width:200px;
	
  	
  	
  	
  	
  	
  	
  	
  height:75px;
	
  	
  	
  	
  }
}
@media	
  all	
  and	
  (max-­‐width:	
  600px)	
  {
	
  	
  	
  	
  #test5	
  {
	
  	
  	
  	
  	
  	
  	
  	
  background-­‐
image:url('images/test5-­‐
mobile.png');
	
  	
  	
  	
  	
  	
  	
  	
  width:200px;
	
  	
  	
  	
  	
  	
  	
  	
  height:75px;
	
  	
  	
  	
  }
}
http://timkadlec.com/2012/04/media-query-asset-downloading-results/
display:none on parent element
<div	
  id="test3">
	
  	
  	
  	
  <div></div>
</div>
#test3	
  div	
  {
	
  	
  	
  	
  background-­‐image:url('images/
test3.png');
	
  	
  	
  	
  width:200px;
	
  	
  	
  	
  height:75px;
}
@media	
  all	
  and	
  (max-­‐width:	
  600px)	
  
{
	
  	
  	
  	
  #test3	
  {
	
  	
  	
  	
  	
  	
  	
  	
  display:none;
	
  	
  	
  	
  }
}

http://timkadlec.com/2012/04/media-query-asset-downloading-results/
Image override with a media query
<div	
  id="test4"></div>
#test4	
  {
	
  	
  	
  	
  background-­‐image:url('images/
test4-­‐desktop.png');
	
  	
  	
  	
  width:200px;
	
  	
  	
  	
  height:75px;
}
@media	
  all	
  and	
  (max-­‐width:	
  600px)	
  {
	
  	
  	
  	
  #test4	
  {
	
  	
  	
  	
  	
  	
  	
  	
  background-­‐image:url('images/
test4-­‐mobile.png');
	
  	
  	
  	
  }
}

http://timkadlec.com/2012/04/media-query-asset-downloading-results/
#3

Conditionally load JS based on
screen size and capabilities

http://www.flickr.com/photos/lyza/7382255242/
Hiding content with display:none does not
prevent it from downloading.
<iframe id="map" width="300" height="300" frameborder="0" scrolling="no"
marginheight="0" marginwidth="0" src="http://maps.google.com..."></iframe>

This single iframe causes 47 files to be downloaded!

Extremely long URL abbreviated

@media screen and (max-width:480px) {
.
.
.

re many more rules
There a
in the css file.

#map {display:none;}
}

The iframe has an id of map. This rule hides
the Google Maps iframe by setting the
display to none.
In JS, use matchMedia() or a polyfill for it to test a media query

https://github.com/paulirish/matchMedia.js
AJAX Include Pattern
Use AJAX to bring more content into the page as the viewport width gets bigger

<a	
  href="articles/latest/"	
  
	
  	
  	
  	
  	
  data-­‐append="articles/latest/fragment"	
  
	
  	
  	
  	
  	
  data-­‐media="(min-­‐width:	
  30em)">
	
  	
  	
  	
  	
  Latest	
  Articles
</a>

https://github.com/filamentgroup/Ajax-Include-Pattern/
Behavioral Breakpoints
#4

Deliver different size <IMG>s
at different screen sizes

http://www.flickr.com/photos/kk/230544325/
One SRC to rule all images
n
r labels on the Og
There are 16 bee at use an img ta
h
Tap Now page tr the Bensons Bubbler.
like this one fo

Despite the need for multiple versions of this image depending on
the
screen size, HTML only allows one value for the src.

<img src="brews_images/bensons_bubbler.jpg" alt="Bensons Bubbler">
Two most common use cases
https://www.flickr.com/photos/whitehouse/8491445521
Resolution Switching
Includes high-density (retina) images.

https://www.flickr.com/photos/whitehouse/8491445521
http://www.flickr.com/photos/barackobamadotcom/5795228030/
Art direction

http://www.flickr.com/photos/barackobamadotcom/5795228030/
Art direction

http://www.flickr.com/photos/barackobamadotcom/5795228030/
Art direction

http://www.flickr.com/photos/barackobamadotcom/5795228030/
Art direction

http://www.flickr.com/photos/barackobamadotcom/5795228030/
Art direction

http://www.flickr.com/photos/barackobamadotcom/5795228030/
Art direction

http://www.flickr.com/photos/barackobamadotcom/5795228030/
Not simply cropping
Art direction: Images with text
Search

Features
New Arrivals
Show Off Tees
Backpacks
Tech Toys
2/$30 & 2/$40 PINK Favorites
Spin the Panty Wheel
Tops
All Tops
Hoodies & Crews
Tees & Tanks
Bottoms
All Bottoms
Sweats
Shorts
Yoga
PINK Loves Yoga
Panties
5/$26 Styles
3/$33 Styles
Shop by Style
Bras
All Bras
Bandeaus & Bralettes
2/$42 Wear Everywhere Bras
Bras 101
Swim

Sign In

Account

Get Email

Español

Shopping Bag
No good solutions
Things are still moving forward on a standardsbased approach for responsive images.

http://www.flickr.com/photos/johnlamb/2576062549/
New proposed standards

<picture>

srcset
Too early to use any of them

src-n
Picturefill JavaScript Library
<div	
  data-­‐picture	
  data-­‐alt="A	
  giant	
  stone	
  face	
  at	
  The	
  Bayon	
  temple	
  in	
  Angkor	
  Thom,	
  
Cambodia">
	
  	
  	
  	
  <div	
  data-­‐src="small.jpg"></div>
	
  	
  	
  	
  <div	
  data-­‐src="medium.jpg"	
  data-­‐media="(min-­‐width:	
  400px)"></div>
	
  	
  	
  	
  <div	
  data-­‐src="large.jpg"	
  data-­‐media="(min-­‐width:	
  800px)"></div>
	
  	
  	
  	
  <div	
  data-­‐src="extralarge.jpg"	
  data-­‐media="(min-­‐width:	
  1000px)"></div>
	
  	
  	
  	
  
	
  	
  	
  	
  <!-­‐-­‐	
  Fallback	
  content	
  for	
  non-­‐JS	
  browsers.	
  	
  -­‐-­‐>
	
  	
  	
  	
  <noscript>
	
  	
  	
  	
  	
  	
  	
  	
  <img	
  src="small.jpg"	
  alt="A	
  giant	
  stone	
  face	
  at	
  The	
  Bayon	
  
	
  	
  	
  	
  	
  	
  	
  	
  temple	
  in	
  Angkor	
  Thom,	
  Cambodia">
	
  	
  	
  	
  </noscript>
</div>

https://github.com/scottjehl/picturefill
#5

Handle high-density
images carefully
A single image on multiple screens
Image Resolution
2000000

1818x1024
1861632

1500000

1000000

960x541
519360

500000
320x181
57920

0

Blackberry Curve

909x512

iPhone Retina

Macbook

465408

480x271
130080

iPhone

Macbook Retina
Image Resolution
2000000

1818x1024
1861632

er
g

1500000

4%
1

ig
b

,2
3

1000000

960x541
519360

500000
320x181
57920

0

Blackberry Curve

909x512

iPhone Retina

Macbook

465408

480x271
130080

iPhone

Macbook Retina
JPEG Compressed (k)
200
172

150

100
80
63

50
22
12

0

Blackberry Curve

iPhone

iPhone Retina

Macbook

Macbook Retina
JPEG Compressed (k)
200
172

150

er
g

3%
43
1,

100

ig
b

80
63

50
22
12

0

Blackberry Curve

iPhone

iPhone Retina

Macbook

Macbook Retina
Downloads both standard and retina images

Apple.com as an
anti-pattern
The total size of the
page goes from
502.90K to 2.13MB
when the retina
versions of images are
downloaded.
http://blog.cloudfour.com/how-apple-com-will-serve-retina-images-to-new-ipads/
If possible, use CSS for now
@media	
  screen	
  and	
  (-­‐webkit-­‐device-­‐pixel-­‐ratio:	
  1)	
  {
/*	
  Image	
  for	
  normal	
  displays.	
  */
#main	
  {
background-­‐image:	
  url(dog.jpg);
}
}
@media	
  screen	
  and	
  (-­‐webkit-­‐min-­‐device-­‐pixel-­‐ratio:	
  2)	
  {
/*	
  Image	
  for	
  high	
  resolution	
  displays.	
  */
#main	
  {
background-­‐image:	
  (dog-­‐hi-­‐res.jpg);
}
}
Picturefill User Preference Branch

https://github.com/scottjehl/picturefill/tree/user-prefs
Compressive images?

http://blog.netvlies.nl/design-interactie/retina-revolution/
Responsive Video
How do you provide the right video codec?

http://www.longtailvideo.com/html5/
Multiple sources with Flash Fallback
<video	
  width="640"	
  height="360"	
  controls>
	
   <!-­‐-­‐	
  MP4	
  must	
  be	
  first	
  for	
  iPad!	
  -­‐-­‐>
	
   <source	
  src="__VIDEO__.MP4"	
  type="video/mp4"	
  /><!-­‐-­‐	
  Safari	
  /	
  iOS	
  video	
  	
  	
  	
  -­‐-­‐>
	
   <source	
  src="__VIDEO__.OGV"	
  type="video/ogg"	
  /><!-­‐-­‐	
  Firefox	
  /	
  Opera	
  /	
  Chrome10	
  -­‐-­‐>
	
   <!-­‐-­‐	
  fallback	
  to	
  Flash:	
  -­‐-­‐>
	
   <object	
  width="640"	
  height="360"	
  type="application/x-­‐shockwave-­‐flash"	
  
data="__FLASH__.SWF">
	
   	
   <param	
  name="movie"	
  value="__FLASH__.SWF"	
  />
	
   	
   <param	
  name="flashvars"	
  
value="controlbar=over&amp;image=__POSTER__.JPG&amp;file=__VIDEO__.MP4"	
  />
	
   	
   <img	
  src="__VIDEO__.JPG"	
  width="640"	
  height="360"	
  alt="__TITLE__"
	
   	
   	
  	
  	
  	
  	
  title="No	
  video	
  playback	
  capabilities,	
  please	
  download	
  the	
  video	
  below"	
  />
	
   </object>
</video>
<p>	
   <strong>Download	
  Video:</strong>
	
   Closed	
  Format:	
   <a	
  href="__VIDEO__.MP4">"MP4"</a>
	
   Open	
  Format:	
  <a	
  href="__VIDEO__.OGV">"Ogg"</a>
</p>

http://camendesign.com/code/video_for_everybody
How do you maintain the aspect ratio?
• This is mostly a problem if you’re embedding video
from a third party site. If you are using your own
video, it is not usually an issue.
• For third party video, FitVid.js is a good place to start.
• For your own video, the only trick is making sure
you’re not changing the proportions of the video
element as the page resizes.
How do you send right resolution and bitrate?
How do you send right resolution and bitrate?

http://www.longtailvideo.com/html5/
You will need a video streaming service.
Why spend so much time on images?
Images are 61% of the average page

Source: httparchive.org
If I could dream up my ideal
solution for images…

http://www.flickr.com/photos/fuzzylittlemanpeach/4633972431/
Eights guidelines and one immutable rule
#1

Use vector-based images or
font icons whenever you can
Home

App

Icon Packs

Font CDN

Demo

Documentation

Blog

About

IcoMoon
Custom Built and Crisp Icon Fonts, Done Right

IcoMoon App

Premium Icons

Font CDN

Browse 3800+ Free Vector Icons

1200+ Vector Icons & Counting

Serve Custom-Built Fonts

Import Your Own Vectors to
Make Fonts

Handcrafted on a 16×16 grid

Powered by Amazon Web
Services

Generate Custom & Crisp Icon
Fonts
Generate CSS Sprites with any
size or color
Basic Glyph Editing

Several Different Formats
Optimized for Icon Fonts
Free Updates

Easily Update Your Icon Fonts
Production (Cached) Links
Starting at $1.60/Month
Grumpicon.com based on Grunticon

What Is This

Issues?
/'
//
. //
|//7
/' " 
.
. .
| (

_ _ - -_
| '._ '
__ _/
'-'

_ __
// _/

|
|
||
|
/
/ |

/
|VV
||--__________/-||-/|
|| ||
|| ||
{ } { }
{ }{ }

Drag & Drop ur SVGs on the Grumpicon plz.
#2

Encourage people to upload the
highest quality source possible
#3

Provide an automatic image
resizing and compression service
#4

Images can be resized to any
size with URL parameters

Example from Sencha IO SRC. Define height, width or both.
<img
src="http://src.sencha.io/320/http://
sencha.com/files/u.jpg"
alt="My constrained image"
/>
“

“Save for the Web” should be a thing of the past.
—@adamdbradley
#5

Provide automated output
of PictureFill or alternative

<div	
  data-­‐picture	
  data-­‐alt="A	
  giant	
  stone	
  face	
  at	
  The	
  Bayon	
  temple	
  in	
  Angkor	
  Thom,	
  
Cambodia">
	
  	
  	
  	
  <div	
  data-­‐src="small.jpg"></div>
	
  	
  	
  	
  <div	
  data-­‐src="medium.jpg"	
  data-­‐media="(min-­‐width:	
  400px)"></div>
	
  	
  	
  	
  <div	
  data-­‐src="large.jpg"	
  data-­‐media="(min-­‐width:	
  800px)"></div>
	
  	
  	
  	
  <div	
  data-­‐src="extralarge.jpg"	
  data-­‐media="(min-­‐width:	
  1000px)"></div>
	
  	
  	
  	
  
	
  	
  	
  	
  <!-­‐-­‐	
  Fallback	
  content	
  for	
  non-­‐JS	
  browsers.	
  	
  -­‐-­‐>
	
  	
  	
  	
  <noscript>
	
  	
  	
  	
  	
  	
  	
  	
  <img	
  src="small.jpg"	
  alt="A	
  giant	
  stone	
  face	
  at	
  The	
  Bayon	
  
	
  	
  	
  	
  	
  	
  	
  	
  temple	
  in	
  Angkor	
  Thom,	
  Cambodia">
	
  	
  	
  	
  </noscript>
</div>
Responsive Images Markup Function
templates contain breakpoint information
{
"source":"/source.jpg",
"breakpoints":	
  [
{	
  "max-­‐width":"30em","pixel-­‐density":1,"width":360px},	
  
{	
  "max-­‐width":"30em","pixel-­‐density":2,"width":720px},
{	
  "max-­‐width":"30em","pixel-­‐density":1,"width":800px},
{	
  "max-­‐width":"30em","pixel-­‐density":2,"width":1600px},
{	
  "pixel-­‐density":1,"width":800px},
{	
  "pixel-­‐density":2,"width":1600px},
]
}
Sample s
yntax. Do
n’t
get hung
up on
details.

Responsive Images Markup Function

PictureFill	
  Markup

Markup f
or all ima
ges
can be ch
anged in o
ne
spot.
#6

Provide a way to override resized
images for art direction needs
#7

Integrate image compression
best practices
jpegtran or jpegoptim
OptiPNG or PNGOUT
far future expires headers

learn from mod_pagespeed or use it
#8

Bonus: Detect support for WebP
image format and use it

The average WebP file size is 25% - 34% smaller
compared to JPEG file size.
WebP compresses 34% better than libpng, and
26% better than pngout for loseless images.
#!

The only rule for your responsive
images implementation.
#!

The only rule for your responsive
images implementation.

Plan for the fact that it will be
deprecated. Make it easy to change.
It’s three years later. Let’s revisit
the my original question.
Can a one size fits all solution…

http://www.flickr.com/photos/theyoungthousands/4025421438
compete with
a tailored experience?
http://www.flickr.com/photos/fronx/2862975043
http://www.flickr.com/photos/haddadi/5971508861

Or will it always be TOO BIG?
Unlikely responsive design will
ever be as fast as something
crafted specifically for a device.

http://www.flickr.com/photos/quarenta/3256329577
But web
design is a
balancing
act.
http://www.flickr.com/photos/kalexanderson/6266452817
And performance
is just one factor.
For most projects, responsive design
can be fast enough to make sense…

Flickr: Uploaded February 11, 2007 by hawridger
if we do the extra work
to make mobile first
responsive designs.
Thank You!
Special thanks to Scott Jehl, Guy Podjarny, and all of the Flickr users sharing under creative commons.

Weitere ähnliche Inhalte

Was ist angesagt?

RESS: An Evolution of Responsive Web Design
RESS: An Evolution of Responsive Web DesignRESS: An Evolution of Responsive Web Design
RESS: An Evolution of Responsive Web DesignDave Olsen
 
Responsive web design
Responsive web designResponsive web design
Responsive web designRuss Weakley
 
Introduction to Responsive Web Design
Introduction to Responsive Web DesignIntroduction to Responsive Web Design
Introduction to Responsive Web DesignClarissa Peterson
 
Now you see me... Adaptive Web Design and Development
Now you see me... Adaptive Web Design and DevelopmentNow you see me... Adaptive Web Design and Development
Now you see me... Adaptive Web Design and DevelopmentJonas Päckos
 
Adapting to Input — Smashing Conference NYC
Adapting to Input — Smashing Conference NYCAdapting to Input — Smashing Conference NYC
Adapting to Input — Smashing Conference NYCJason Grigsby
 
Responsive Design Tools & Resources
Responsive Design Tools & ResourcesResponsive Design Tools & Resources
Responsive Design Tools & ResourcesClarissa Peterson
 
Responsive Design Essentials
Responsive Design EssentialsResponsive Design Essentials
Responsive Design EssentialsClarissa Peterson
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web DesignRZasadzinski
 
When responsive web design meets the real world
When responsive web design meets the real worldWhen responsive web design meets the real world
When responsive web design meets the real worldJason Grigsby
 
Stefan Judis "Did we(b development) lose the right direction?"
Stefan Judis "Did we(b development) lose the right direction?"Stefan Judis "Did we(b development) lose the right direction?"
Stefan Judis "Did we(b development) lose the right direction?"Fwdays
 
CSS Lessons Learned the Hard Way (Generate Conf)
CSS Lessons Learned the Hard Way (Generate Conf)CSS Lessons Learned the Hard Way (Generate Conf)
CSS Lessons Learned the Hard Way (Generate Conf)Zoe Gillenwater
 
Responsive Design
Responsive DesignResponsive Design
Responsive DesignSara Cannon
 
Lecture 1: Web Design + Usability
Lecture 1: Web Design + UsabilityLecture 1: Web Design + Usability
Lecture 1: Web Design + Usabilitymcongdon
 
Introduction to Responsive Design v.2
Introduction to Responsive Design v.2Introduction to Responsive Design v.2
Introduction to Responsive Design v.2Clarissa Peterson
 
Responsive Web Design - more than just a buzzword
Responsive Web Design - more than just a buzzwordResponsive Web Design - more than just a buzzword
Responsive Web Design - more than just a buzzwordRuss Weakley
 
Optimizing User Experience with Responsive Web Design
Optimizing User Experience with Responsive Web DesignOptimizing User Experience with Responsive Web Design
Optimizing User Experience with Responsive Web DesignClarissa Peterson
 
Skill Session - Web Multi Device
Skill Session - Web Multi DeviceSkill Session - Web Multi Device
Skill Session - Web Multi Devicefilirom1
 
Responsive web design & mobile web development - a technical and business app...
Responsive web design & mobile web development - a technical and business app...Responsive web design & mobile web development - a technical and business app...
Responsive web design & mobile web development - a technical and business app...Atos_Worldline
 
Beyond Responsive [18F 2015]
Beyond Responsive [18F 2015]Beyond Responsive [18F 2015]
Beyond Responsive [18F 2015]Aaron Gustafson
 

Was ist angesagt? (20)

RESS: An Evolution of Responsive Web Design
RESS: An Evolution of Responsive Web DesignRESS: An Evolution of Responsive Web Design
RESS: An Evolution of Responsive Web Design
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
Introduction to Responsive Web Design
Introduction to Responsive Web DesignIntroduction to Responsive Web Design
Introduction to Responsive Web Design
 
Responsive Design
Responsive Design Responsive Design
Responsive Design
 
Now you see me... Adaptive Web Design and Development
Now you see me... Adaptive Web Design and DevelopmentNow you see me... Adaptive Web Design and Development
Now you see me... Adaptive Web Design and Development
 
Adapting to Input — Smashing Conference NYC
Adapting to Input — Smashing Conference NYCAdapting to Input — Smashing Conference NYC
Adapting to Input — Smashing Conference NYC
 
Responsive Design Tools & Resources
Responsive Design Tools & ResourcesResponsive Design Tools & Resources
Responsive Design Tools & Resources
 
Responsive Design Essentials
Responsive Design EssentialsResponsive Design Essentials
Responsive Design Essentials
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 
When responsive web design meets the real world
When responsive web design meets the real worldWhen responsive web design meets the real world
When responsive web design meets the real world
 
Stefan Judis "Did we(b development) lose the right direction?"
Stefan Judis "Did we(b development) lose the right direction?"Stefan Judis "Did we(b development) lose the right direction?"
Stefan Judis "Did we(b development) lose the right direction?"
 
CSS Lessons Learned the Hard Way (Generate Conf)
CSS Lessons Learned the Hard Way (Generate Conf)CSS Lessons Learned the Hard Way (Generate Conf)
CSS Lessons Learned the Hard Way (Generate Conf)
 
Responsive Design
Responsive DesignResponsive Design
Responsive Design
 
Lecture 1: Web Design + Usability
Lecture 1: Web Design + UsabilityLecture 1: Web Design + Usability
Lecture 1: Web Design + Usability
 
Introduction to Responsive Design v.2
Introduction to Responsive Design v.2Introduction to Responsive Design v.2
Introduction to Responsive Design v.2
 
Responsive Web Design - more than just a buzzword
Responsive Web Design - more than just a buzzwordResponsive Web Design - more than just a buzzword
Responsive Web Design - more than just a buzzword
 
Optimizing User Experience with Responsive Web Design
Optimizing User Experience with Responsive Web DesignOptimizing User Experience with Responsive Web Design
Optimizing User Experience with Responsive Web Design
 
Skill Session - Web Multi Device
Skill Session - Web Multi DeviceSkill Session - Web Multi Device
Skill Session - Web Multi Device
 
Responsive web design & mobile web development - a technical and business app...
Responsive web design & mobile web development - a technical and business app...Responsive web design & mobile web development - a technical and business app...
Responsive web design & mobile web development - a technical and business app...
 
Beyond Responsive [18F 2015]
Beyond Responsive [18F 2015]Beyond Responsive [18F 2015]
Beyond Responsive [18F 2015]
 

Andere mochten auch

Mobile trends to transform your business in 2015
Mobile trends to transform your business in 2015Mobile trends to transform your business in 2015
Mobile trends to transform your business in 2015Self-employed
 
UK Q2 2016 Mobile First Insights Report
UK Q2 2016 Mobile First Insights ReportUK Q2 2016 Mobile First Insights Report
UK Q2 2016 Mobile First Insights ReportOperaMediaworks
 
Q2 2016 Mobile First Insights Report
Q2 2016 Mobile First Insights Report Q2 2016 Mobile First Insights Report
Q2 2016 Mobile First Insights Report OperaMediaworks
 
APAC Mobile First Insights Report - Opera Mediaworks
APAC Mobile First Insights Report - Opera MediaworksAPAC Mobile First Insights Report - Opera Mediaworks
APAC Mobile First Insights Report - Opera MediaworksOperaMediaworks
 
An Introduction to HTML5 Canvas
An Introduction to HTML5 CanvasAn Introduction to HTML5 Canvas
An Introduction to HTML5 CanvasJohn Bristowe
 
Mobile-First Strategy
Mobile-First StrategyMobile-First Strategy
Mobile-First StrategySteve Buttry
 
Beyond being responsive, a mobile first strategy
Beyond being responsive, a mobile first strategyBeyond being responsive, a mobile first strategy
Beyond being responsive, a mobile first strategyinternet-inspired
 
Brand Identity in UI/UX Design
Brand Identity in UI/UX DesignBrand Identity in UI/UX Design
Brand Identity in UI/UX DesignAdryan Putra
 
Why "mobile first" isn't enough - Developing a better user experience
Why "mobile first" isn't enough - Developing a better user experienceWhy "mobile first" isn't enough - Developing a better user experience
Why "mobile first" isn't enough - Developing a better user experienceKevin Powell
 
Emotion Design - Brand & UI
Emotion Design - Brand & UIEmotion Design - Brand & UI
Emotion Design - Brand & UIThomas Fogarasy
 
Starbucks Digital Marketing Campaign
Starbucks Digital Marketing CampaignStarbucks Digital Marketing Campaign
Starbucks Digital Marketing Campaignmoores36
 
2018 Digital Marketing Strategy Proposal Template
2018 Digital Marketing Strategy Proposal Template2018 Digital Marketing Strategy Proposal Template
2018 Digital Marketing Strategy Proposal Templateunfunnel
 
Digital Marketing Strategy Guide
Digital Marketing Strategy GuideDigital Marketing Strategy Guide
Digital Marketing Strategy Guidepixelbuilders
 
UX Design + UI Design: Injecting a brand persona!
UX Design + UI Design: Injecting a brand persona!UX Design + UI Design: Injecting a brand persona!
UX Design + UI Design: Injecting a brand persona!Jayan Narayanan
 

Andere mochten auch (18)

Mobile trends to transform your business in 2015
Mobile trends to transform your business in 2015Mobile trends to transform your business in 2015
Mobile trends to transform your business in 2015
 
UK Q2 2016 Mobile First Insights Report
UK Q2 2016 Mobile First Insights ReportUK Q2 2016 Mobile First Insights Report
UK Q2 2016 Mobile First Insights Report
 
Q2 2016 Mobile First Insights Report
Q2 2016 Mobile First Insights Report Q2 2016 Mobile First Insights Report
Q2 2016 Mobile First Insights Report
 
APAC Mobile First Insights Report - Opera Mediaworks
APAC Mobile First Insights Report - Opera MediaworksAPAC Mobile First Insights Report - Opera Mediaworks
APAC Mobile First Insights Report - Opera Mediaworks
 
Mobile first. Luke Wroblewski
Mobile first. Luke WroblewskiMobile first. Luke Wroblewski
Mobile first. Luke Wroblewski
 
An Introduction to HTML5 Canvas
An Introduction to HTML5 CanvasAn Introduction to HTML5 Canvas
An Introduction to HTML5 Canvas
 
Kryap Internet Services
Kryap Internet ServicesKryap Internet Services
Kryap Internet Services
 
Mobile-First Strategy
Mobile-First StrategyMobile-First Strategy
Mobile-First Strategy
 
Beyond being responsive, a mobile first strategy
Beyond being responsive, a mobile first strategyBeyond being responsive, a mobile first strategy
Beyond being responsive, a mobile first strategy
 
Brand Identity in UI/UX Design
Brand Identity in UI/UX DesignBrand Identity in UI/UX Design
Brand Identity in UI/UX Design
 
Why "mobile first" isn't enough - Developing a better user experience
Why "mobile first" isn't enough - Developing a better user experienceWhy "mobile first" isn't enough - Developing a better user experience
Why "mobile first" isn't enough - Developing a better user experience
 
Emotion Design - Brand & UI
Emotion Design - Brand & UIEmotion Design - Brand & UI
Emotion Design - Brand & UI
 
Starbucks Digital Marketing Campaign
Starbucks Digital Marketing CampaignStarbucks Digital Marketing Campaign
Starbucks Digital Marketing Campaign
 
2018 Digital Marketing Strategy Proposal Template
2018 Digital Marketing Strategy Proposal Template2018 Digital Marketing Strategy Proposal Template
2018 Digital Marketing Strategy Proposal Template
 
Digital Marketing Strategy Guide
Digital Marketing Strategy GuideDigital Marketing Strategy Guide
Digital Marketing Strategy Guide
 
UX Design + UI Design: Injecting a brand persona!
UX Design + UI Design: Injecting a brand persona!UX Design + UI Design: Injecting a brand persona!
UX Design + UI Design: Injecting a brand persona!
 
Digital Marketing proposal
Digital Marketing proposalDigital Marketing proposal
Digital Marketing proposal
 
Digital in 2016
Digital in 2016Digital in 2016
Digital in 2016
 

Ähnlich wie Mobile First Responsive Web Design — BD Conf Oct 2013

Responsive Web Design & the state of the Web
Responsive Web Design & the state of the WebResponsive Web Design & the state of the Web
Responsive Web Design & the state of the WebYiannis Konstantakopoulos
 
Designing future proof websites
Designing future proof websitesDesigning future proof websites
Designing future proof websitesFour Kitchens
 
Mobilism 2011: How to put the mobile in the mobile web
Mobilism 2011: How to put the mobile in the mobile webMobilism 2011: How to put the mobile in the mobile web
Mobilism 2011: How to put the mobile in the mobile webJenifer Hanen
 
Faster Frontends
Faster FrontendsFaster Frontends
Faster FrontendsAndy Davies
 
Proactive Responsive Design
Proactive Responsive DesignProactive Responsive Design
Proactive Responsive DesignNathan Smith
 
Multi screen HTML5
Multi screen HTML5Multi screen HTML5
Multi screen HTML5Ron Reiter
 
Responsive Web Design: buzzword or revolution?
Responsive Web Design: buzzword or revolution?Responsive Web Design: buzzword or revolution?
Responsive Web Design: buzzword or revolution?Wojtek Zając
 
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)Nicholas Zakas
 
Jensimmons html5live-responsivedesign
Jensimmons html5live-responsivedesignJensimmons html5live-responsivedesign
Jensimmons html5live-responsivedesignJen Simmons
 
Responsive websites. Toolbox
Responsive websites. ToolboxResponsive websites. Toolbox
Responsive websites. ToolboxWojtek Zając
 
Mobile SEO Considerations
Mobile SEO ConsiderationsMobile SEO Considerations
Mobile SEO ConsiderationsReva McPollom
 
Progressive Enhancement 2.0 (Conference Agnostic)
Progressive Enhancement 2.0 (Conference Agnostic)Progressive Enhancement 2.0 (Conference Agnostic)
Progressive Enhancement 2.0 (Conference Agnostic)Nicholas Zakas
 
Responsive Design - WordUp Edinburgh 2011
Responsive Design - WordUp Edinburgh 2011Responsive Design - WordUp Edinburgh 2011
Responsive Design - WordUp Edinburgh 2011Epitome Solutions Ltd
 
Responsivedesign 7-3-2012
Responsivedesign 7-3-2012Responsivedesign 7-3-2012
Responsivedesign 7-3-2012Thomas Carney
 
Building Responsive Websites and Apps with Drupal
Building Responsive Websites and Apps with DrupalBuilding Responsive Websites and Apps with Drupal
Building Responsive Websites and Apps with DrupalFour Kitchens
 
Breaking the Box: Pushing the Boundaries of UX with Drupal
Breaking the Box: Pushing the Boundaries of UX with DrupalBreaking the Box: Pushing the Boundaries of UX with Drupal
Breaking the Box: Pushing the Boundaries of UX with DrupalAcquia
 
Mobile Information Architecture
Mobile Information ArchitectureMobile Information Architecture
Mobile Information ArchitectureChristian Crumlish
 

Ähnlich wie Mobile First Responsive Web Design — BD Conf Oct 2013 (20)

Responsive Web Design & the state of the Web
Responsive Web Design & the state of the WebResponsive Web Design & the state of the Web
Responsive Web Design & the state of the Web
 
Designing future proof websites
Designing future proof websitesDesigning future proof websites
Designing future proof websites
 
Mobilism 2011: How to put the mobile in the mobile web
Mobilism 2011: How to put the mobile in the mobile webMobilism 2011: How to put the mobile in the mobile web
Mobilism 2011: How to put the mobile in the mobile web
 
Faster Frontends
Faster FrontendsFaster Frontends
Faster Frontends
 
Proactive Responsive Design
Proactive Responsive DesignProactive Responsive Design
Proactive Responsive Design
 
RWD - Bootstrap
RWD - BootstrapRWD - Bootstrap
RWD - Bootstrap
 
Multi screen HTML5
Multi screen HTML5Multi screen HTML5
Multi screen HTML5
 
Responsive Web Design: buzzword or revolution?
Responsive Web Design: buzzword or revolution?Responsive Web Design: buzzword or revolution?
Responsive Web Design: buzzword or revolution?
 
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
 
Jensimmons html5live-responsivedesign
Jensimmons html5live-responsivedesignJensimmons html5live-responsivedesign
Jensimmons html5live-responsivedesign
 
Responsive websites. Toolbox
Responsive websites. ToolboxResponsive websites. Toolbox
Responsive websites. Toolbox
 
Mobile SEO Considerations
Mobile SEO ConsiderationsMobile SEO Considerations
Mobile SEO Considerations
 
Flourish2011
Flourish2011Flourish2011
Flourish2011
 
Progressive Enhancement 2.0 (Conference Agnostic)
Progressive Enhancement 2.0 (Conference Agnostic)Progressive Enhancement 2.0 (Conference Agnostic)
Progressive Enhancement 2.0 (Conference Agnostic)
 
Responsive Design - WordUp Edinburgh 2011
Responsive Design - WordUp Edinburgh 2011Responsive Design - WordUp Edinburgh 2011
Responsive Design - WordUp Edinburgh 2011
 
Responsivedesign 7-3-2012
Responsivedesign 7-3-2012Responsivedesign 7-3-2012
Responsivedesign 7-3-2012
 
Building Responsive Websites and Apps with Drupal
Building Responsive Websites and Apps with DrupalBuilding Responsive Websites and Apps with Drupal
Building Responsive Websites and Apps with Drupal
 
Breaking the Box: Pushing the Boundaries of UX with Drupal
Breaking the Box: Pushing the Boundaries of UX with DrupalBreaking the Box: Pushing the Boundaries of UX with Drupal
Breaking the Box: Pushing the Boundaries of UX with Drupal
 
Mobile Information Architecture
Mobile Information ArchitectureMobile Information Architecture
Mobile Information Architecture
 
Best Practices for Mobile Web Design
Best Practices for Mobile Web DesignBest Practices for Mobile Web Design
Best Practices for Mobile Web Design
 

Mehr von Jason Grigsby

Planning Your Progressive Web App
Planning Your Progressive Web AppPlanning Your Progressive Web App
Planning Your Progressive Web AppJason Grigsby
 
Progressive Web App Challenges
Progressive Web App ChallengesProgressive Web App Challenges
Progressive Web App ChallengesJason Grigsby
 
Why Progressive Web Apps will transform your website
Why Progressive Web Apps will transform your websiteWhy Progressive Web Apps will transform your website
Why Progressive Web Apps will transform your websiteJason Grigsby
 
The Case for Progressive Web Apps
The Case for Progressive Web AppsThe Case for Progressive Web Apps
The Case for Progressive Web AppsJason Grigsby
 
Casting Off Our Desktop Shackles
Casting Off Our Desktop ShacklesCasting Off Our Desktop Shackles
Casting Off Our Desktop ShacklesJason Grigsby
 
Mobile: The Market, The Web and Windows Phone’s Future
Mobile: The Market, The Web and Windows Phone’s Future Mobile: The Market, The Web and Windows Phone’s Future
Mobile: The Market, The Web and Windows Phone’s Future Jason Grigsby
 
Native is easy. Mobile web is freaking hard.
Native is easy. Mobile web is freaking hard.Native is easy. Mobile web is freaking hard.
Native is easy. Mobile web is freaking hard.Jason Grigsby
 
Innotech - Get Me a Mobile Strategy or You’re Fired!
Innotech - Get Me a Mobile Strategy or You’re Fired!Innotech - Get Me a Mobile Strategy or You’re Fired!
Innotech - Get Me a Mobile Strategy or You’re Fired!Jason Grigsby
 
Where 2.0 -- Get me a mobile strategy or you’re fired!
Where 2.0 -- Get me a mobile strategy or you’re fired!Where 2.0 -- Get me a mobile strategy or you’re fired!
Where 2.0 -- Get me a mobile strategy or you’re fired!Jason Grigsby
 
Native is easy. Web is essential.
Native is easy. Web is essential.Native is easy. Web is essential.
Native is easy. Web is essential.Jason Grigsby
 
Journalism and the Future of Mobile
Journalism and the Future of MobileJournalism and the Future of Mobile
Journalism and the Future of MobileJason Grigsby
 
Get Me a Mobile Strategy or You're Fired - Central Oregon Ad Fed
Get Me a Mobile Strategy or You're Fired  - Central Oregon Ad FedGet Me a Mobile Strategy or You're Fired  - Central Oregon Ad Fed
Get Me a Mobile Strategy or You're Fired - Central Oregon Ad FedJason Grigsby
 
Why You Should Make Mobile Your Career | Clark College
Why You Should Make Mobile Your Career | Clark CollegeWhy You Should Make Mobile Your Career | Clark College
Why You Should Make Mobile Your Career | Clark CollegeJason Grigsby
 
Google Talk: DOs and DON'Ts of Mobile Strategy
Google Talk: DOs and DON'Ts of Mobile StrategyGoogle Talk: DOs and DON'Ts of Mobile Strategy
Google Talk: DOs and DON'Ts of Mobile StrategyJason Grigsby
 
Get Me a Mobile Strategy or You're FIRED!
Get Me a Mobile Strategy or You're FIRED!Get Me a Mobile Strategy or You're FIRED!
Get Me a Mobile Strategy or You're FIRED!Jason Grigsby
 
Mobile Web vs. Native Apps | Design4Mobile
Mobile Web vs. Native Apps | Design4MobileMobile Web vs. Native Apps | Design4Mobile
Mobile Web vs. Native Apps | Design4MobileJason Grigsby
 
Mobile is the future: Do you have your strategy?
Mobile is the future: Do you have your strategy?Mobile is the future: Do you have your strategy?
Mobile is the future: Do you have your strategy?Jason Grigsby
 
Get me a mobile strategy or you're fired web 2
Get me a mobile strategy or you're fired   web 2Get me a mobile strategy or you're fired   web 2
Get me a mobile strategy or you're fired web 2Jason Grigsby
 
Where 2.0 — Native vs Web vs Hybrid: Mobile Development Choices
Where 2.0 — Native vs Web vs Hybrid: Mobile Development ChoicesWhere 2.0 — Native vs Web vs Hybrid: Mobile Development Choices
Where 2.0 — Native vs Web vs Hybrid: Mobile Development ChoicesJason Grigsby
 

Mehr von Jason Grigsby (20)

Planning Your Progressive Web App
Planning Your Progressive Web AppPlanning Your Progressive Web App
Planning Your Progressive Web App
 
Progressive Web App Challenges
Progressive Web App ChallengesProgressive Web App Challenges
Progressive Web App Challenges
 
Why Progressive Web Apps will transform your website
Why Progressive Web Apps will transform your websiteWhy Progressive Web Apps will transform your website
Why Progressive Web Apps will transform your website
 
The Case for Progressive Web Apps
The Case for Progressive Web AppsThe Case for Progressive Web Apps
The Case for Progressive Web Apps
 
Casting Off Our Desktop Shackles
Casting Off Our Desktop ShacklesCasting Off Our Desktop Shackles
Casting Off Our Desktop Shackles
 
The Immobile Web
The Immobile WebThe Immobile Web
The Immobile Web
 
Mobile: The Market, The Web and Windows Phone’s Future
Mobile: The Market, The Web and Windows Phone’s Future Mobile: The Market, The Web and Windows Phone’s Future
Mobile: The Market, The Web and Windows Phone’s Future
 
Native is easy. Mobile web is freaking hard.
Native is easy. Mobile web is freaking hard.Native is easy. Mobile web is freaking hard.
Native is easy. Mobile web is freaking hard.
 
Innotech - Get Me a Mobile Strategy or You’re Fired!
Innotech - Get Me a Mobile Strategy or You’re Fired!Innotech - Get Me a Mobile Strategy or You’re Fired!
Innotech - Get Me a Mobile Strategy or You’re Fired!
 
Where 2.0 -- Get me a mobile strategy or you’re fired!
Where 2.0 -- Get me a mobile strategy or you’re fired!Where 2.0 -- Get me a mobile strategy or you’re fired!
Where 2.0 -- Get me a mobile strategy or you’re fired!
 
Native is easy. Web is essential.
Native is easy. Web is essential.Native is easy. Web is essential.
Native is easy. Web is essential.
 
Journalism and the Future of Mobile
Journalism and the Future of MobileJournalism and the Future of Mobile
Journalism and the Future of Mobile
 
Get Me a Mobile Strategy or You're Fired - Central Oregon Ad Fed
Get Me a Mobile Strategy or You're Fired  - Central Oregon Ad FedGet Me a Mobile Strategy or You're Fired  - Central Oregon Ad Fed
Get Me a Mobile Strategy or You're Fired - Central Oregon Ad Fed
 
Why You Should Make Mobile Your Career | Clark College
Why You Should Make Mobile Your Career | Clark CollegeWhy You Should Make Mobile Your Career | Clark College
Why You Should Make Mobile Your Career | Clark College
 
Google Talk: DOs and DON'Ts of Mobile Strategy
Google Talk: DOs and DON'Ts of Mobile StrategyGoogle Talk: DOs and DON'Ts of Mobile Strategy
Google Talk: DOs and DON'Ts of Mobile Strategy
 
Get Me a Mobile Strategy or You're FIRED!
Get Me a Mobile Strategy or You're FIRED!Get Me a Mobile Strategy or You're FIRED!
Get Me a Mobile Strategy or You're FIRED!
 
Mobile Web vs. Native Apps | Design4Mobile
Mobile Web vs. Native Apps | Design4MobileMobile Web vs. Native Apps | Design4Mobile
Mobile Web vs. Native Apps | Design4Mobile
 
Mobile is the future: Do you have your strategy?
Mobile is the future: Do you have your strategy?Mobile is the future: Do you have your strategy?
Mobile is the future: Do you have your strategy?
 
Get me a mobile strategy or you're fired web 2
Get me a mobile strategy or you're fired   web 2Get me a mobile strategy or you're fired   web 2
Get me a mobile strategy or you're fired web 2
 
Where 2.0 — Native vs Web vs Hybrid: Mobile Development Choices
Where 2.0 — Native vs Web vs Hybrid: Mobile Development ChoicesWhere 2.0 — Native vs Web vs Hybrid: Mobile Development Choices
Where 2.0 — Native vs Web vs Hybrid: Mobile Development Choices
 

Kürzlich hochgeladen

The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 

Kürzlich hochgeladen (20)

The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 

Mobile First Responsive Web Design — BD Conf Oct 2013

  • 1. Mobile First Responsive Design Jason Grigsby • @grigs • cloudfour.com
  • 2. Follow along at @grigs_talks http://bit.ly/grigs-2013-10-21
  • 3. The web has always been a balancing act… p://www.flickr.com/photos/classblog/5136926303
  • 4. with many competing priorities. http://www.flickr.com/photos/tudor/4324056624/
  • 5. Finding that balance is more difficult… http://www.flickr.com/photos/superfantastic/50088733/
  • 6. as device diversity increases. http://www.flickr.com/photos/lyza/7382235106
  • 7. Responsive web design offers us for a sensible way to deal with device diversity. http://www.flickr.com/photos/darrentunnicliff/4232232092/
  • 8. And yet the one question I frequently ask myself is…
  • 9. Can a one size fits all solution… http://www.flickr.com/photos/sldghmmr/6041481069
  • 10. compete with a tailored experience? http://www.flickr.com/photos/helloturkeytoe/4932748746/
  • 11. Important question from many perspectives: Search engine optimization Context Advertising Performance
  • 12.
  • 14. People demand fast web sites. http://www.akamai.com/dl/whitepapers/ecommerce_website_perf_wp.pdf
  • 15. Slow sites mean real dollars are lost. Privacy and cookie policy Log In Subscribe Subscribe Basket Reports Contact Us Training Events i am looking for... Jobs Blog More Browse by topic Home / Blog 67% of consumers cite slow websites as the main cause of basket abandonment by David Moth Tweet 236 06 December 2012 11:40 3 8 comments Like 14 Daily Pulse Newsletter Get our free Daily Pulse Newsletter to keep informed about the latest news and insights in Digital Marketing. Register for our free Daily Pulse Print Share 20 Everyone hates slow loading websites, and a new survey highlights just how damaging a slow site can be to the user experience. The study by Brand Perfect found that two thirds of UK consumers (67%) cite slow loading times as the main reason they would abandon an online purchase. It’s a topic we’ve looked at in more detail in our post 'Site speed: case studies, tips and tools for improving your conversion rate', with stats showing that slow loading websites are losing businesses up to £1.73bn a year. ADVERTISE HERE »
  • 16. Top ecommerce sites are 22% slower than last year http://www.webperformancetoday.com/2013/03/27/top-ecommerce-sites-are-slower-than-they-were-last-year/
  • 17. Mobile users don’t care that their network is slow. http://www.gomez.com/wp-content/downloads/19986_WhatMobileUsersWant_Wp.pdf
  • 18. Luke’s fantastic gesture reference: http://www.lukew.com/ff/entry.asp?1071
  • 19. Many ways to navigate desktop web sites on mobile. Luke’s fantastic gesture reference: http://www.lukew.com/ff/entry.asp?1071
  • 20. There are no gestures that can make a web site faster. http://www.flickr.com/photos/stephenjohnbryde/384095768/
  • 23. BBG: Before Boston Globe http://www.flickr.com/photos/69797234@N06/7203485148/
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29. Original Resized K Saved % Saved Original Resized K Saved % Saved 34.7K 8.1K 26.6K 76.6% 43.4K 8.2K 35.2K 81.1% 39.0K 8.4K 30.6K 78.4% 26.0K 6.6K 19.4K 74.6% 30.5K 6.7K 23.8K 78.0% 34.7K 7.8K 26.9K 77.5%
  • 30. Original Resized K Saved % Saved Original Resized K Saved % Saved 34.7K 8.1K 26.6K 76.6% 43.4K 8.2K 35.2K 81.1% 39.0K 8.4K 30.6K 78.4% 26.0K 6.6K 19.4K 74.6% 30.5K 6.7K 23.8K 78.0% 34.7K 7.8K 26.9K 77.5%
  • 31. Original Resized K Saved % Saved Original Resized K Saved % Saved 34.7K 43.4K 8.1K 26.6K 76.6% 8.2K 35.2K 81.1% Original Resized K Saved % Saved 39.0K 8.4K 30.6K 78.4% 26.0K 6.6K 19.4K 74.6% Total 208.3K 45.8K 162.5K 78.0% 30.5K 6.7K 23.8K 78.0% 34.7K 7.8K 26.9K 77.5%
  • 32. The resounding answer from the community: Mobile First Responsive Web Design
  • 33. Mobile First Responsive Web Design http://bradfrostweb.com/blog/web/mobile-first-responsive-web-design/
  • 34. “Awesome. We’ll devote a chapter to Mobile First Responsive Web Design in our book.”
  • 35. “Awesome. We’ll devote a chapter to Mobile First Responsive Web Design in our book.” Famous last words.
  • 36. Where are the Mobile First RWDs? 106 sites from mediaqueri.es tested 4% 9% 25% 21% 4% 38% Mobile is Larger Same Size Less than 10% Savings 11 to 50% Savings 51% to 100% Savings Greater than 100% Savings http://blog.cloudfour.com/where-are-the-mobile-first-responsive-web-designs/
  • 37. Guy Podjarny repeated the experiment 2013: 476 sites from mediaqueri.es tested http://www.guypo.com/uncategorized/real-world-rwd-performance-take-2/
  • 39.
  • 40.
  • 41.
  • 42.
  • 45. Most responsive web designs are…
  • 46. Time to pen another fool’s gold post? http://www.flickr.com/photos/myklroventine/3400040943/
  • 47.
  • 48.
  • 49. “ Being Responsive from a layout perspective should not preclude us from being responsive from a performance and interaction perspective. —Scott Jehl https://twitter.com/scottjehl/status/243025352069349377
  • 51. #1 Build Mobile First Responsive Designs http://www.flickr.com/photos/auyongcheemeng/95769332/
  • 53. Mobile First Responsive Web Design is a technical approach for responsive designs. http://bradfrostweb.com/blog/web/mobile-first-responsive-web-design/
  • 56. Luke’s Take on Mobile First Growth = Opportunity Constraints = Focus Capabilities = Innovation http://www.lukew.com/ff/entry.asp?933
  • 57. How do I make this responsive?
  • 58. How do I make this responsive?
  • 59. How do I make this responsive?
  • 61. Ok, let’s start from a clean slate http://www.flickr.com/photos/salendron/5569020488/
  • 62.
  • 63. What would the mobile version look like?
  • 64. What would the mobile version look like?
  • 65. What would the mobile version look like?
  • 66. How does that map to desktop design?
  • 67. How does that map to desktop design?
  • 68. How does that map to desktop design?
  • 69. How does that map to desktop design?
  • 70. How does that map to desktop design?
  • 71. How does that map to desktop design?
  • 72. How does that map to desktop design?
  • 73. How does that map to desktop design?
  • 74. How does that map to desktop design?
  • 75. How does that map to desktop design?
  • 76. How does that map to desktop design?
  • 77. How does that map to desktop design?
  • 78. How does that map to desktop design?
  • 79. How does that map to desktop design?
  • 80. Can this desktop version be better using what we’ve learned from the mobile version?
  • 81.
  • 82. Mobile First This is why Mobile First thinking is so powerful even on projects that are currently implemented on the desktop.
  • 83. Mobile First Responsive Web Design is a technical approach for responsive designs. http://bradfrostweb.com/blog/web/mobile-first-responsive-web-design/
  • 84. Reorder media queries so cascade goes from small to large screens /* Wider viewports/higher resolutions (e.g. desktop) @media screen and (min-width:481px) { [Desktop layout rules here] } /* Mobile/lower-resolution devices */ @media screen and (max-width:480px) { [Mobile layout rules here] } */ e the mobile media query block Mov ry. above the desktop media quesure By doing this, we’re making S is the cascading effect of CSfirst consistent with our mobile oach. progressive enhancement appr Keep basic styles outside of media queries.
  • 85.
  • 86. “ The absence of support for media queries is in fact the first media query. —Bryan Rieger, Yiibu
  • 87.
  • 88. IE8 and below don’t support media queries.
  • 89.
  • 90.
  • 91. What do you see if your browser doesn’t support media queries? Desktop First Responsive Web Design = Desktop Fallback Mobile First Responsive Web Design = Mobile Fallback
  • 92. IE conditional comments <link rel="stylesheet" type="text/css" href="taps.css" /> <link rel="stylesheet" type="text/css" href="layout.css" media="all and (min-width: 481px)"> <!--[if (lt IE 9)&(!IEMobile)]> <link rel="stylesheet" type="text/css" href="layout.css" media="all" /> <![endif]--> The conditional comment repeats the line above it ensuring desktop IE sees our layout.css file.
  • 93. IE conditional comments <link rel="stylesheet" type="text/css" href="taps.css" /> <link rel="stylesheet" type="text/css" href="layout.css" media="all and (min-width: 481px)"> <!--[if (lt IE 9)&(!IEMobile)]> <link rel="stylesheet" type="text/css" href="layout.css" media="all" /> <![endif]--> The conditional comment repeats the line above it ensuring desktop IE sees our layout.css file. or use Respond.js (a media query polyfill for IE)
  • 94. #2 Keep CSS images in their place http://www.flickr.com/photos/lintmachine/2306383943/
  • 95. Images with display:none are still downloaded @media screen and (max-width:480px) { [Other CSS rules are here] .header {display:none;} } ing it aps.jpg file is 440.7K mak The t the largest file on the page.
  • 97. Images scoped within media queries <div  id="test5"></div> @media  all  and  (min-­‐width:  601px)  {        #test5  {                background-­‐ image:url('images/test5-­‐ desktop.png');                width:200px;                height:75px;        } } @media  all  and  (max-­‐width:  600px)  {        #test5  {                background-­‐ image:url('images/test5-­‐ mobile.png');                width:200px;                height:75px;        } } http://timkadlec.com/2012/04/media-query-asset-downloading-results/
  • 98. display:none on parent element <div  id="test3">        <div></div> </div> #test3  div  {        background-­‐image:url('images/ test3.png');        width:200px;        height:75px; } @media  all  and  (max-­‐width:  600px)   {        #test3  {                display:none;        } } http://timkadlec.com/2012/04/media-query-asset-downloading-results/
  • 99. Image override with a media query <div  id="test4"></div> #test4  {        background-­‐image:url('images/ test4-­‐desktop.png');        width:200px;        height:75px; } @media  all  and  (max-­‐width:  600px)  {        #test4  {                background-­‐image:url('images/ test4-­‐mobile.png');        } } http://timkadlec.com/2012/04/media-query-asset-downloading-results/
  • 100. #3 Conditionally load JS based on screen size and capabilities http://www.flickr.com/photos/lyza/7382255242/
  • 101. Hiding content with display:none does not prevent it from downloading. <iframe id="map" width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com..."></iframe> This single iframe causes 47 files to be downloaded! Extremely long URL abbreviated @media screen and (max-width:480px) { . . . re many more rules There a in the css file. #map {display:none;} } The iframe has an id of map. This rule hides the Google Maps iframe by setting the display to none.
  • 102. In JS, use matchMedia() or a polyfill for it to test a media query https://github.com/paulirish/matchMedia.js
  • 103. AJAX Include Pattern Use AJAX to bring more content into the page as the viewport width gets bigger <a  href="articles/latest/"            data-­‐append="articles/latest/fragment"            data-­‐media="(min-­‐width:  30em)">          Latest  Articles </a> https://github.com/filamentgroup/Ajax-Include-Pattern/
  • 105. #4 Deliver different size <IMG>s at different screen sizes http://www.flickr.com/photos/kk/230544325/
  • 106. One SRC to rule all images n r labels on the Og There are 16 bee at use an img ta h Tap Now page tr the Bensons Bubbler. like this one fo Despite the need for multiple versions of this image depending on the screen size, HTML only allows one value for the src. <img src="brews_images/bensons_bubbler.jpg" alt="Bensons Bubbler">
  • 107. Two most common use cases
  • 109. Resolution Switching Includes high-density (retina) images. https://www.flickr.com/photos/whitehouse/8491445521
  • 118. Art direction: Images with text Search Features New Arrivals Show Off Tees Backpacks Tech Toys 2/$30 & 2/$40 PINK Favorites Spin the Panty Wheel Tops All Tops Hoodies & Crews Tees & Tanks Bottoms All Bottoms Sweats Shorts Yoga PINK Loves Yoga Panties 5/$26 Styles 3/$33 Styles Shop by Style Bras All Bras Bandeaus & Bralettes 2/$42 Wear Everywhere Bras Bras 101 Swim Sign In Account Get Email Español Shopping Bag
  • 120. Things are still moving forward on a standardsbased approach for responsive images. http://www.flickr.com/photos/johnlamb/2576062549/
  • 121. New proposed standards <picture> srcset Too early to use any of them src-n
  • 122.
  • 123. Picturefill JavaScript Library <div  data-­‐picture  data-­‐alt="A  giant  stone  face  at  The  Bayon  temple  in  Angkor  Thom,   Cambodia">        <div  data-­‐src="small.jpg"></div>        <div  data-­‐src="medium.jpg"  data-­‐media="(min-­‐width:  400px)"></div>        <div  data-­‐src="large.jpg"  data-­‐media="(min-­‐width:  800px)"></div>        <div  data-­‐src="extralarge.jpg"  data-­‐media="(min-­‐width:  1000px)"></div>                <!-­‐-­‐  Fallback  content  for  non-­‐JS  browsers.    -­‐-­‐>        <noscript>                <img  src="small.jpg"  alt="A  giant  stone  face  at  The  Bayon                  temple  in  Angkor  Thom,  Cambodia">        </noscript> </div> https://github.com/scottjehl/picturefill
  • 125. A single image on multiple screens
  • 128. JPEG Compressed (k) 200 172 150 100 80 63 50 22 12 0 Blackberry Curve iPhone iPhone Retina Macbook Macbook Retina
  • 130. Downloads both standard and retina images Apple.com as an anti-pattern The total size of the page goes from 502.90K to 2.13MB when the retina versions of images are downloaded. http://blog.cloudfour.com/how-apple-com-will-serve-retina-images-to-new-ipads/
  • 131. If possible, use CSS for now @media  screen  and  (-­‐webkit-­‐device-­‐pixel-­‐ratio:  1)  { /*  Image  for  normal  displays.  */ #main  { background-­‐image:  url(dog.jpg); } } @media  screen  and  (-­‐webkit-­‐min-­‐device-­‐pixel-­‐ratio:  2)  { /*  Image  for  high  resolution  displays.  */ #main  { background-­‐image:  (dog-­‐hi-­‐res.jpg); } }
  • 132.
  • 133. Picturefill User Preference Branch https://github.com/scottjehl/picturefill/tree/user-prefs
  • 136. How do you provide the right video codec? http://www.longtailvideo.com/html5/
  • 137. Multiple sources with Flash Fallback <video  width="640"  height="360"  controls>   <!-­‐-­‐  MP4  must  be  first  for  iPad!  -­‐-­‐>   <source  src="__VIDEO__.MP4"  type="video/mp4"  /><!-­‐-­‐  Safari  /  iOS  video        -­‐-­‐>   <source  src="__VIDEO__.OGV"  type="video/ogg"  /><!-­‐-­‐  Firefox  /  Opera  /  Chrome10  -­‐-­‐>   <!-­‐-­‐  fallback  to  Flash:  -­‐-­‐>   <object  width="640"  height="360"  type="application/x-­‐shockwave-­‐flash"   data="__FLASH__.SWF">     <param  name="movie"  value="__FLASH__.SWF"  />     <param  name="flashvars"   value="controlbar=over&amp;image=__POSTER__.JPG&amp;file=__VIDEO__.MP4"  />     <img  src="__VIDEO__.JPG"  width="640"  height="360"  alt="__TITLE__"              title="No  video  playback  capabilities,  please  download  the  video  below"  />   </object> </video> <p>   <strong>Download  Video:</strong>   Closed  Format:   <a  href="__VIDEO__.MP4">"MP4"</a>   Open  Format:  <a  href="__VIDEO__.OGV">"Ogg"</a> </p> http://camendesign.com/code/video_for_everybody
  • 138. How do you maintain the aspect ratio? • This is mostly a problem if you’re embedding video from a third party site. If you are using your own video, it is not usually an issue. • For third party video, FitVid.js is a good place to start. • For your own video, the only trick is making sure you’re not changing the proportions of the video element as the page resizes.
  • 139.
  • 140.
  • 141. How do you send right resolution and bitrate?
  • 142. How do you send right resolution and bitrate? http://www.longtailvideo.com/html5/
  • 143. You will need a video streaming service.
  • 144. Why spend so much time on images?
  • 145. Images are 61% of the average page Source: httparchive.org
  • 146. If I could dream up my ideal solution for images… http://www.flickr.com/photos/fuzzylittlemanpeach/4633972431/
  • 147. Eights guidelines and one immutable rule
  • 148. #1 Use vector-based images or font icons whenever you can
  • 149. Home App Icon Packs Font CDN Demo Documentation Blog About IcoMoon Custom Built and Crisp Icon Fonts, Done Right IcoMoon App Premium Icons Font CDN Browse 3800+ Free Vector Icons 1200+ Vector Icons & Counting Serve Custom-Built Fonts Import Your Own Vectors to Make Fonts Handcrafted on a 16×16 grid Powered by Amazon Web Services Generate Custom & Crisp Icon Fonts Generate CSS Sprites with any size or color Basic Glyph Editing Several Different Formats Optimized for Icon Fonts Free Updates Easily Update Your Icon Fonts Production (Cached) Links Starting at $1.60/Month
  • 150. Grumpicon.com based on Grunticon What Is This Issues? /' // . // |//7 /' " . . . | ( _ _ - -_ | '._ ' __ _/ '-' _ __ // _/ | | || | / / | / |VV ||--__________/-||-/| || || || || { } { } { }{ } Drag & Drop ur SVGs on the Grumpicon plz.
  • 151.
  • 152. #2 Encourage people to upload the highest quality source possible
  • 153. #3 Provide an automatic image resizing and compression service
  • 154. #4 Images can be resized to any size with URL parameters Example from Sencha IO SRC. Define height, width or both. <img src="http://src.sencha.io/320/http:// sencha.com/files/u.jpg" alt="My constrained image" />
  • 155.
  • 156. “ “Save for the Web” should be a thing of the past. —@adamdbradley
  • 157. #5 Provide automated output of PictureFill or alternative <div  data-­‐picture  data-­‐alt="A  giant  stone  face  at  The  Bayon  temple  in  Angkor  Thom,   Cambodia">        <div  data-­‐src="small.jpg"></div>        <div  data-­‐src="medium.jpg"  data-­‐media="(min-­‐width:  400px)"></div>        <div  data-­‐src="large.jpg"  data-­‐media="(min-­‐width:  800px)"></div>        <div  data-­‐src="extralarge.jpg"  data-­‐media="(min-­‐width:  1000px)"></div>                <!-­‐-­‐  Fallback  content  for  non-­‐JS  browsers.    -­‐-­‐>        <noscript>                <img  src="small.jpg"  alt="A  giant  stone  face  at  The  Bayon                  temple  in  Angkor  Thom,  Cambodia">        </noscript> </div>
  • 158. Responsive Images Markup Function templates contain breakpoint information { "source":"/source.jpg", "breakpoints":  [ {  "max-­‐width":"30em","pixel-­‐density":1,"width":360px},   {  "max-­‐width":"30em","pixel-­‐density":2,"width":720px}, {  "max-­‐width":"30em","pixel-­‐density":1,"width":800px}, {  "max-­‐width":"30em","pixel-­‐density":2,"width":1600px}, {  "pixel-­‐density":1,"width":800px}, {  "pixel-­‐density":2,"width":1600px}, ] } Sample s yntax. Do n’t get hung up on details. Responsive Images Markup Function PictureFill  Markup Markup f or all ima ges can be ch anged in o ne spot.
  • 159. #6 Provide a way to override resized images for art direction needs
  • 160. #7 Integrate image compression best practices jpegtran or jpegoptim OptiPNG or PNGOUT far future expires headers learn from mod_pagespeed or use it
  • 161. #8 Bonus: Detect support for WebP image format and use it The average WebP file size is 25% - 34% smaller compared to JPEG file size. WebP compresses 34% better than libpng, and 26% better than pngout for loseless images.
  • 162. #! The only rule for your responsive images implementation.
  • 163. #! The only rule for your responsive images implementation. Plan for the fact that it will be deprecated. Make it easy to change.
  • 164. It’s three years later. Let’s revisit the my original question.
  • 165. Can a one size fits all solution… http://www.flickr.com/photos/theyoungthousands/4025421438
  • 166. compete with a tailored experience? http://www.flickr.com/photos/fronx/2862975043
  • 168. Unlikely responsive design will ever be as fast as something crafted specifically for a device. http://www.flickr.com/photos/quarenta/3256329577
  • 169. But web design is a balancing act. http://www.flickr.com/photos/kalexanderson/6266452817
  • 170. And performance is just one factor.
  • 171. For most projects, responsive design can be fast enough to make sense… Flickr: Uploaded February 11, 2007 by hawridger
  • 172. if we do the extra work to make mobile first responsive designs.
  • 173. Thank You! Special thanks to Scott Jehl, Guy Podjarny, and all of the Flickr users sharing under creative commons.