SlideShare a Scribd company logo
1 of 87
Download to read offline
RESPONSIVE AND FAST
( )Sven Wo fermann @maddesigns
PERFORMANCE
MOTO.OAKLEY.COM
85.4MB page weight
471 HTTP requests
2 minutes 45 seconds
until loading screen replaced with content
4 minutes 10 seconds until onLoad event
http://hawksworx.com/blog/oakleys-monster-page-of-baubles/
85.4 MB,
471 REQUESTS!
THIS IS NOT RWD!
MOTO.OAKLEY.COM FAIL
ok, ok, Oak ey does it better now:
JUST 14.2MB, 291 request (more than 70MB ess)
with mobi e user-agent?
6.7MB, 114 requests :/
http://hawksworx.com/b og/oak eys-moto-diet/
This particu ar page weighs in at 8-9 megabytes inc uding a of its
assets and advertising […] starts rendering a er about 10.5s
http://www.fi amentgroup.com/ ab/weight-wait.htm
” RWD may make your pages ook better on a variety of devices,
but it doesn’t automatica y make your pages oad better on a
variety of devices.
It’s a about imp ementation. “
M dot or RWD. Which is faster?
In conc usion, these findings show that RWD sites can indeed
compete with m dot sites in terms of oad time!
http://bigqueri.es/t/m-dot-or-rwd-which-is-faster/296
”B ame the imp ementation, not the technique“
Tim Kad ec
OUR PAGES ARE FAT!
56kb HTML
63kb CSS
97kb Fonts
227kb Videos
329kb Scripts
1.310kb Images
~ 2 MB total
http://httparchive.org
DAVE RUPERT RWD-TESTS
Media queries are responsib e for ~12% (2.8kb) of my CSS weight.
For every 8 ines of CSS I write, one more is needed to make it
responsive.
In Conc usion: Expect RWD to add ~10%
It appears that RWD has added 4.8kb (~2%) to my tota page
weight. — http://daverupert.com/2014/07/rwd-b oat/
85% of mobi e users expect pages to oad as fast or faster than
they oad on the desktop.
Kiss Metrics
WHEN DO YOU THINK ABOUT
PERFORMANCE IN YOUR PROJECT?
Path to Performance by Katie Kovalcin
Path to Performance by Katie Kovalcin
PERFORMANCE CULTURE
Performance optimization is a process NOT an event.
Performance is a cu tura thing - and starts with design.
If you want to “se ” performance,
discuss in sa es, not deve opment.
Amazon's ca cu ated that a page oad s ow-down of just one
second cou d cost it $1.6 bi ion in sa es each year.
A 2009 A/B Study
Goog e has ca cu ated that by s owing its search resu ts by just
four tenths of a second
they cou d ose 8 mi ion searches per day.
FastCompany
WHAT IS FAST?
TIME & USER PERCEPTION
Delay User perception
0–100 ms Instant
100–300 ms Small perceptible delay
300–1000 ms Machine is working
1,000+ ms Likely mental context switch
10,000+ ms Task is abandoned
I ya Grigorik – High-Performance Browser Networking
1000MS
BREAKING NEWS AT 1000MS
by Patrick Hamann (about )http://www.theguardian.com
https://speakerdeck.com/patrickhamann/breaking-news-at-1000ms-ve ocity-eu-2014
DESIGNING FOR PERFORMANCE!
Book by Lara Hogan
PERFORMANCE BUDGET
PERFORMANCE BUDGET METRICS
http://timkad ec.com/2014/11/performance-budget-metrics/
PERFORMANCE BUDGET GOALS
There are a coup e of factors for which a
certain metric or KPI can be e aborated:
page load time
page weight
PSI (page speed index) Score
load time
first paint
speed index
visually complete
number of requests
or “time to first tweet”
PERFORMANCE BUDGET EXAMPLE
€500 month y budget
€300 rent
€100 groceries
€100 clothes
PERFORMANCE BUDGET EXAMPLE
€400 month y budget
€300 rent
€50 groceries
€50 clothes
PERFORMANCE BUDGET EXAMPLE
400kb performance budget
50kb fonts
50kb css
300kb images
PERFORMANCE BUDGET EXAMPLE
400kb performance budget
100kb fonts
50kb css
200kb images
50kb javascript
YOU CAN’T SPEND
WHAT YOU DON’T HAVE!
GOOD PERF BUDGETS
600KB total page weight
20 requests
1000 speed index
1s start render time
Less than 3 seconds to see something on 3G.
MAINTAINING A PERFORMANCE GOAL
3 options:
1. Optimize existing feature
2. Remove existing feature
3. Don’t add
MEASURING
http://www.webpagetest.org/
THE NETWORK WATERFALL
WHY IS MY SITE SLOW ON MOBILE?
“We’re on rea LTE now?!“
BANDWIDTH VS. LATENCY
Bandwidth
Maximum throughput of a ogica
or physica communication path
Latency
The time from the source sending a packet
to the destination receiving it
LATENCY
http://chimera. abs.orei y.com/books/1230000000545/ch01.htm
LATENCY ON MOBILE NETWORKS
http://www.aosabook.org/en/posa/mobi e-perf-images/figure1.png
BANDWIDTH VS. LATENCY
http://chimera. abs.orei y.com/books/1230000000545/ch01.htm
IT DOESN'T MATTER HOW
SMART YOUR PHONE IS,
IF YOUR NETWORK IS DUMB
— Bruce Lawson (@bruce )
LATENCY
1. Latency defines the speed of the how the web loads.
2. Mobile’s growth means average latency is going up.
3. Optimizing for latency means optimizing for request count.
PREPARE YOUR SITE FOR THE FIRST 14KB
TCP s ow start
http://chimera. abs.orei y.com/books/1230000000545/ch02.htm #SLOW_START
PERFORMANCE TIPS
CONCATENATE
concatenate useful chunks of CSS & JavaScript
On 3G, a new 10k request equals ~100kb of concatenated
content.
But only concatenate styles and scripts, that are used on
that page
MINIFY, COMPRESSION AND SHRINKING
Minify CSS & JavaScript
And GZIP!
Compress Images! (Strip Image Metadata)
RESPONSIVE IMAGES
BASIC IMAGE PERFORMANCE TIPS:
CSS Sprites (pixel image sprites)
SVG sprites
optimize images (JPEGmini, PNGmini, …)
more advanced WebP, MozJpeg
do not deliver larger files than needed
IMAGEOPTIM
SVGO GUI
APPROPRIATE SIZED IMAGES
http://twitpic.com/c6kbm3/fu
to remember – average size of a images ~1.3 MB!
WRAP BACKGROUND-IMAGE IN MEDIA QUERIES
/* load only on smaller screens */
@media (max-width: 600px) {
.module {
background-image: url('images/image-max600.png');
}
}
/* load on screens larger than 600px */
@media (min-width: 600px) {
.module {
background-image: url('images/image-min600.png');
}
}
Browsers oad on y matched background-image
-› wrap them in @media query if they
change between different viewports
RESPONSIVE IMAGES
RESPONSIVE <IMG> WITH SRCSET + SIZES
<img src="https://unsplash.it/16/9"
srcset="https://unsplash.it/960/540 960w,
https://unsplash.it/640/360 640w,
https://unsplash.it/480/270 480w,
https://unsplash.it/320/180 320w"
sizes="(min-width: 1280px) 480px,
(min-width: 1024px) 444px,
(min-width: 640px) 325px,
100vw"
alt="dummy image">
hint for debugging: c ear cache!
for srcset, when a arger image resource is in cache,
a sma er image down oad is not triggered
srcset/sizes provides information to browsers
<picture> provides instructions to browsers.
<PICTURE>
art direction images and type switching
<PICTURE>
<picture>
<source media="(min-width: 650px)" srcset="kitten-large.png">
<source media="(min-width: 465px)" srcset="kitten-medium.png">
<!-- img tag for browsers that don't support picture element -->
<img src="kitten-small.png" alt="a cute kitten">
</picture>
use or for cross browser-supportrespimage picturefi
LAZY LOAD RESPONSIVE IMAGES
- lazysizes is a […] lazyloader for images (including
responsive images picture/srcset), iframes, scripts/widgets
and much more.
- my blog about CSS for lazy
loading images (german)
- Responsive Images as a Service
lazysizes
Responsive Images – lazy loading
WURFL Image Tailor (WIT)
WEB FONTS
FONT LOADING 101
IE Firefox WebKit Blink
Blocking ✗ ✔ ✔ ✔
Timeout - 3s - 3s
TIPS FOR USING WEB FONTS
todays most supported web font formats: .ttf, .woff, .woff2
use woff2!
Google Fonts delivers subsetted fonts (only load a subset of a
font file [latin/german/french subset]) to supported browsers
(Chrome)
but in general: host the fonts by yourself, save DNS requests
avoid base64 encoding for faster page rendering
http://www.sitepoint.com/improving-font-performance-subsetting- oca -storage/
ICON FONTS - CHOSE CAREFULLY!
Font Awesome is a fu suite of 519 pictographic icons
https://github.com/FortAwesome/Font-Awesome
NOT SO AWESOME!
FONT AWESOME ON ICOMOON.IO
If you on y use a bunch of icons, strip down the fi es with
icomoon.io
ICOMOON
pick your icons
ICOMOON
save as font (or SVG) and save Kb!
SVG ICONS (SPRITES)
SVG Sprites vs. Icon Fonts
using web fonts on y on arger disp ays (“faster connections”)?
@media screen and (min-width: 48em) {
body {
font-family: 'WebFont', Fallback, sans-serif;
}
}
PERFORMANCE BUDGET
“Is the extra 135kb worth the aesthetic change?”
“Does the heavier font kit better represent the brand?”
THE CRITICAL
RENDERING PATH
The intermediate steps between receiving the HTML, CSS, and
JavaScript bytes and the required processing to turn them into
rendered pixe s
INLINING CRITICAL CSS
in ine the most critica CSS & JS to render in this specific
viewport (difficu t with RWD - different viewports)
<head>
<style>
/* inline critical CSS */
</style>
</head>
async who e CSS (with ), maybe use cookies to check
if user has cached version of CSS
oadCSS.js
DON'T TRY TO OUTSMART THE
BROWSER!
FUTURE OF CRITICAL CSS:
async CSS with re ="pre oad"
<link rel=preload href=/non-block.css as=stylesheet onload=yourLogic() />
More Weight Doesn't Mean More Wait
fi amentgroup
More Weight Doesn't Mean More Wait
Scott Jeh removed ~8s in oading without removing content
HTTP/2
todays performance tips can be wrong with HTTP/2
PERFORMANCE IS A REQUIREMENT
NOT AN EXTRA FEATURE
THANKS FOR YOUR
ATTENTION!
Sven Wo fermann | maddesigns
Twitter: @maddesigns
Web: maddesigns.de

More Related Content

What's hot

Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere Chris Love
 
Mobile Web Speed Bumps
Mobile Web Speed BumpsMobile Web Speed Bumps
Mobile Web Speed BumpsNicholas Zakas
 
[wvbcn] Adaptive Images in Responsive Web Design
[wvbcn] Adaptive Images in Responsive Web Design[wvbcn] Adaptive Images in Responsive Web Design
[wvbcn] Adaptive Images in Responsive Web DesignChristopher Schmitt
 
[rwdsummit] Adaptive Images in Responsive Web Design
[rwdsummit] Adaptive Images in Responsive Web Design[rwdsummit] Adaptive Images in Responsive Web Design
[rwdsummit] Adaptive Images in Responsive Web DesignChristopher Schmitt
 
[CSSDevConf] Adaptive Images in Responsive Web Design 2014
[CSSDevConf] Adaptive Images in Responsive Web Design 2014[CSSDevConf] Adaptive Images in Responsive Web Design 2014
[CSSDevConf] Adaptive Images in Responsive Web Design 2014Christopher Schmitt
 
[funka] Adaptive Images in Responsive Web Design
[funka] Adaptive Images in Responsive Web Design[funka] Adaptive Images in Responsive Web Design
[funka] Adaptive Images in Responsive Web DesignChristopher Schmitt
 
Let's get accessible!
Let's get accessible!Let's get accessible!
Let's get accessible!Tady Walsh
 
Responsive design: techniques and tricks to prepare your websites for the mul...
Responsive design: techniques and tricks to prepare your websites for the mul...Responsive design: techniques and tricks to prepare your websites for the mul...
Responsive design: techniques and tricks to prepare your websites for the mul...Andreas Bovens
 
[parisweb] Adaptive Images in Responsive Web Design
[parisweb] Adaptive Images in Responsive Web Design[parisweb] Adaptive Images in Responsive Web Design
[parisweb] Adaptive Images in Responsive Web DesignChristopher Schmitt
 
Responsive UI using CSS Media Query
Responsive UI using CSS Media QueryResponsive UI using CSS Media Query
Responsive UI using CSS Media QueryNeev Technologies
 
Responsive Design: Mehr als CSS
Responsive Design: Mehr als CSSResponsive Design: Mehr als CSS
Responsive Design: Mehr als CSSWalter Ebert
 
[peachpit] Adaptive Images in Responsive Web Design
[peachpit] Adaptive Images in Responsive Web Design[peachpit] Adaptive Images in Responsive Web Design
[peachpit] Adaptive Images in Responsive Web DesignChristopher Schmitt
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web DesignDebra Shapiro
 
High Performance Images
High Performance ImagesHigh Performance Images
High Performance ImagesWalter Ebert
 
HTML5 APIs - Where No Man Has Gone Before - StarTechConf, Chile
HTML5 APIs - Where No Man Has Gone Before - StarTechConf, ChileHTML5 APIs - Where No Man Has Gone Before - StarTechConf, Chile
HTML5 APIs - Where No Man Has Gone Before - StarTechConf, ChileRobert Nyman
 
Html5 Fit: Get Rid of Love Handles
Html5 Fit:  Get Rid of Love HandlesHtml5 Fit:  Get Rid of Love Handles
Html5 Fit: Get Rid of Love HandlesChris Love
 
The Big Picture: Responsive Images in Action #scd14
The Big Picture: Responsive Images in Action #scd14The Big Picture: Responsive Images in Action #scd14
The Big Picture: Responsive Images in Action #scd14Matthias Lau
 

What's hot (19)

Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere
 
Mobile Web Speed Bumps
Mobile Web Speed BumpsMobile Web Speed Bumps
Mobile Web Speed Bumps
 
[wvbcn] Adaptive Images in Responsive Web Design
[wvbcn] Adaptive Images in Responsive Web Design[wvbcn] Adaptive Images in Responsive Web Design
[wvbcn] Adaptive Images in Responsive Web Design
 
[rwdsummit] Adaptive Images in Responsive Web Design
[rwdsummit] Adaptive Images in Responsive Web Design[rwdsummit] Adaptive Images in Responsive Web Design
[rwdsummit] Adaptive Images in Responsive Web Design
 
[CSSDevConf] Adaptive Images in Responsive Web Design 2014
[CSSDevConf] Adaptive Images in Responsive Web Design 2014[CSSDevConf] Adaptive Images in Responsive Web Design 2014
[CSSDevConf] Adaptive Images in Responsive Web Design 2014
 
[funka] Adaptive Images in Responsive Web Design
[funka] Adaptive Images in Responsive Web Design[funka] Adaptive Images in Responsive Web Design
[funka] Adaptive Images in Responsive Web Design
 
Let's get accessible!
Let's get accessible!Let's get accessible!
Let's get accessible!
 
Responsive design: techniques and tricks to prepare your websites for the mul...
Responsive design: techniques and tricks to prepare your websites for the mul...Responsive design: techniques and tricks to prepare your websites for the mul...
Responsive design: techniques and tricks to prepare your websites for the mul...
 
[parisweb] Adaptive Images in Responsive Web Design
[parisweb] Adaptive Images in Responsive Web Design[parisweb] Adaptive Images in Responsive Web Design
[parisweb] Adaptive Images in Responsive Web Design
 
Responsive UI using CSS Media Query
Responsive UI using CSS Media QueryResponsive UI using CSS Media Query
Responsive UI using CSS Media Query
 
Css3
Css3Css3
Css3
 
Responsive Design: Mehr als CSS
Responsive Design: Mehr als CSSResponsive Design: Mehr als CSS
Responsive Design: Mehr als CSS
 
[peachpit] Adaptive Images in Responsive Web Design
[peachpit] Adaptive Images in Responsive Web Design[peachpit] Adaptive Images in Responsive Web Design
[peachpit] Adaptive Images in Responsive Web Design
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 
High Performance Images
High Performance ImagesHigh Performance Images
High Performance Images
 
Web performance
Web performanceWeb performance
Web performance
 
HTML5 APIs - Where No Man Has Gone Before - StarTechConf, Chile
HTML5 APIs - Where No Man Has Gone Before - StarTechConf, ChileHTML5 APIs - Where No Man Has Gone Before - StarTechConf, Chile
HTML5 APIs - Where No Man Has Gone Before - StarTechConf, Chile
 
Html5 Fit: Get Rid of Love Handles
Html5 Fit:  Get Rid of Love HandlesHtml5 Fit:  Get Rid of Love Handles
Html5 Fit: Get Rid of Love Handles
 
The Big Picture: Responsive Images in Action #scd14
The Big Picture: Responsive Images in Action #scd14The Big Picture: Responsive Images in Action #scd14
The Big Picture: Responsive Images in Action #scd14
 

Viewers also liked

Smarter Grids with Sass and Susy...and Wordpress!
Smarter Grids with Sass and Susy...and Wordpress!Smarter Grids with Sass and Susy...and Wordpress!
Smarter Grids with Sass and Susy...and Wordpress!Michelle Barker
 
Fasten RWD Development with Sass
Fasten RWD Development with SassFasten RWD Development with Sass
Fasten RWD Development with SassSven Wolfermann
 
Breaking Free from Bootstrap: Custom Responsive Grids with Sass Susy
Breaking Free from Bootstrap: Custom Responsive Grids with Sass SusyBreaking Free from Bootstrap: Custom Responsive Grids with Sass Susy
Breaking Free from Bootstrap: Custom Responsive Grids with Sass SusyJames Steinbach
 
Testing Responsive Webdesign
Testing Responsive WebdesignTesting Responsive Webdesign
Testing Responsive WebdesignSven Wolfermann
 
Responsive Typography with Sass
Responsive Typography with SassResponsive Typography with Sass
Responsive Typography with SassJames Steinbach
 
Smarter Grids with Sass and Susy
Smarter Grids with Sass and SusySmarter Grids with Sass and Susy
Smarter Grids with Sass and SusyMichelle Barker
 
ITCSS: Architettura scalabile a triangolo invertito
ITCSS: Architettura scalabile a triangolo invertitoITCSS: Architettura scalabile a triangolo invertito
ITCSS: Architettura scalabile a triangolo invertitoFabrizio Cuscini
 
Mobile Web Performance Optimization 1-7-14
Mobile Web Performance Optimization 1-7-14Mobile Web Performance Optimization 1-7-14
Mobile Web Performance Optimization 1-7-14XBOSoft
 
Google AMP - What is it and is it right for your website? SLCSEM, Oct 2016
Google AMP - What is it and is it right for your website? SLCSEM, Oct 2016Google AMP - What is it and is it right for your website? SLCSEM, Oct 2016
Google AMP - What is it and is it right for your website? SLCSEM, Oct 2016Jesse Semchuck
 
Amp your site: An intro to accelerated mobile pages
Amp your site: An intro to accelerated mobile pagesAmp your site: An intro to accelerated mobile pages
Amp your site: An intro to accelerated mobile pagesRobert McFrazier
 
Atomic Design – Die Einheit von Frontend und Design im RWD-Zeitalter - webina...
Atomic Design – Die Einheit von Frontend und Design im RWD-Zeitalter - webina...Atomic Design – Die Einheit von Frontend und Design im RWD-Zeitalter - webina...
Atomic Design – Die Einheit von Frontend und Design im RWD-Zeitalter - webina...die.agilen GmbH
 
IMMERSE'16 Intro to Adobe Experience Manager & Adobe Marketing Cloud
IMMERSE'16 Intro to Adobe Experience Manager & Adobe Marketing CloudIMMERSE'16 Intro to Adobe Experience Manager & Adobe Marketing Cloud
IMMERSE'16 Intro to Adobe Experience Manager & Adobe Marketing CloudAdobeMarketingCloud
 
Innovationsmotor Design Thinking - pluswerk
Innovationsmotor Design Thinking - pluswerkInnovationsmotor Design Thinking - pluswerk
Innovationsmotor Design Thinking - pluswerkdie.agilen GmbH
 
Stop using Bootstrap please! - Davide Di Pumpo - Codemotion Milan 2016
Stop using Bootstrap please! - Davide Di Pumpo - Codemotion Milan 2016Stop using Bootstrap please! - Davide Di Pumpo - Codemotion Milan 2016
Stop using Bootstrap please! - Davide Di Pumpo - Codemotion Milan 2016Codemotion
 

Viewers also liked (15)

Smarter Grids with Sass and Susy...and Wordpress!
Smarter Grids with Sass and Susy...and Wordpress!Smarter Grids with Sass and Susy...and Wordpress!
Smarter Grids with Sass and Susy...and Wordpress!
 
Fasten RWD Development with Sass
Fasten RWD Development with SassFasten RWD Development with Sass
Fasten RWD Development with Sass
 
Breaking Free from Bootstrap: Custom Responsive Grids with Sass Susy
Breaking Free from Bootstrap: Custom Responsive Grids with Sass SusyBreaking Free from Bootstrap: Custom Responsive Grids with Sass Susy
Breaking Free from Bootstrap: Custom Responsive Grids with Sass Susy
 
Testing Responsive Webdesign
Testing Responsive WebdesignTesting Responsive Webdesign
Testing Responsive Webdesign
 
Responsive Typography with Sass
Responsive Typography with SassResponsive Typography with Sass
Responsive Typography with Sass
 
Smarter Grids with Sass and Susy
Smarter Grids with Sass and SusySmarter Grids with Sass and Susy
Smarter Grids with Sass and Susy
 
ITCSS: Architettura scalabile a triangolo invertito
ITCSS: Architettura scalabile a triangolo invertitoITCSS: Architettura scalabile a triangolo invertito
ITCSS: Architettura scalabile a triangolo invertito
 
Mobile Web Performance Optimization 1-7-14
Mobile Web Performance Optimization 1-7-14Mobile Web Performance Optimization 1-7-14
Mobile Web Performance Optimization 1-7-14
 
Google AMP - What is it and is it right for your website? SLCSEM, Oct 2016
Google AMP - What is it and is it right for your website? SLCSEM, Oct 2016Google AMP - What is it and is it right for your website? SLCSEM, Oct 2016
Google AMP - What is it and is it right for your website? SLCSEM, Oct 2016
 
WTF is AMP?
WTF is AMP?WTF is AMP?
WTF is AMP?
 
Amp your site: An intro to accelerated mobile pages
Amp your site: An intro to accelerated mobile pagesAmp your site: An intro to accelerated mobile pages
Amp your site: An intro to accelerated mobile pages
 
Atomic Design – Die Einheit von Frontend und Design im RWD-Zeitalter - webina...
Atomic Design – Die Einheit von Frontend und Design im RWD-Zeitalter - webina...Atomic Design – Die Einheit von Frontend und Design im RWD-Zeitalter - webina...
Atomic Design – Die Einheit von Frontend und Design im RWD-Zeitalter - webina...
 
IMMERSE'16 Intro to Adobe Experience Manager & Adobe Marketing Cloud
IMMERSE'16 Intro to Adobe Experience Manager & Adobe Marketing CloudIMMERSE'16 Intro to Adobe Experience Manager & Adobe Marketing Cloud
IMMERSE'16 Intro to Adobe Experience Manager & Adobe Marketing Cloud
 
Innovationsmotor Design Thinking - pluswerk
Innovationsmotor Design Thinking - pluswerkInnovationsmotor Design Thinking - pluswerk
Innovationsmotor Design Thinking - pluswerk
 
Stop using Bootstrap please! - Davide Di Pumpo - Codemotion Milan 2016
Stop using Bootstrap please! - Davide Di Pumpo - Codemotion Milan 2016Stop using Bootstrap please! - Davide Di Pumpo - Codemotion Milan 2016
Stop using Bootstrap please! - Davide Di Pumpo - Codemotion Milan 2016
 

Similar to Responsive and Fast

3 Tips for a better mobile User Experience
3 Tips for a better mobile User Experience3 Tips for a better mobile User Experience
3 Tips for a better mobile User ExperienceKlaus Enzenhofer
 
Optimizing for a faster user experience Pt 2: How-to.
Optimizing for a faster user experience Pt 2: How-to.Optimizing for a faster user experience Pt 2: How-to.
Optimizing for a faster user experience Pt 2: How-to.James Christie
 
The Need for Speed, Optimizing the User Experience pt2 - UXPA Boston 2014 - J...
The Need for Speed, Optimizing the User Experience pt2 - UXPA Boston 2014 - J...The Need for Speed, Optimizing the User Experience pt2 - UXPA Boston 2014 - J...
The Need for Speed, Optimizing the User Experience pt2 - UXPA Boston 2014 - J...Mad*Pow
 
Asset Redux - Front end performance on Rails (Phil Nash)
Asset Redux - Front end performance on Rails (Phil Nash)Asset Redux - Front end performance on Rails (Phil Nash)
Asset Redux - Front end performance on Rails (Phil Nash)Future Insights
 
Edi react fastandbeautiful
Edi react fastandbeautifulEdi react fastandbeautiful
Edi react fastandbeautifulDoug Sillars
 
Its timetostopstalling cambridgemot
Its timetostopstalling cambridgemotIts timetostopstalling cambridgemot
Its timetostopstalling cambridgemotDoug Sillars
 
[convergese] Adaptive Images in Responsive Web Design
[convergese] Adaptive Images in Responsive Web Design[convergese] Adaptive Images in Responsive Web Design
[convergese] Adaptive Images in Responsive Web DesignChristopher Schmitt
 
There Are No “Buts” in Progressive Enhancement [Øredev 2015]
There Are No “Buts” in Progressive Enhancement [Øredev 2015]There Are No “Buts” in Progressive Enhancement [Øredev 2015]
There Are No “Buts” in Progressive Enhancement [Øredev 2015]Aaron Gustafson
 
Building for, perceiving and measuring performance for mobile web
Building for, perceiving and measuring performance for mobile webBuilding for, perceiving and measuring performance for mobile web
Building for, perceiving and measuring performance for mobile webRobin Glen
 
Fastandbeautiful seattlevue
Fastandbeautiful seattlevueFastandbeautiful seattlevue
Fastandbeautiful seattlevueDoug Sillars
 
Fastandbeautiful devdayseu
Fastandbeautiful devdayseuFastandbeautiful devdayseu
Fastandbeautiful devdayseuDoug Sillars
 
Fastandbeautiful yglf
Fastandbeautiful yglfFastandbeautiful yglf
Fastandbeautiful yglfDoug Sillars
 
Snowcamp fastandbeautiful
Snowcamp fastandbeautifulSnowcamp fastandbeautiful
Snowcamp fastandbeautifulDoug Sillars
 
3 Tips to Deliver Fast Performance Across Mobile Web
3 Tips to Deliver Fast Performance Across Mobile Web3 Tips to Deliver Fast Performance Across Mobile Web
3 Tips to Deliver Fast Performance Across Mobile WebDynatrace
 
Designing for The Modern Web
Designing for The Modern WebDesigning for The Modern Web
Designing for The Modern WebSara Cannon
 
Fastandbeautiful mobilewarsaw
Fastandbeautiful mobilewarsawFastandbeautiful mobilewarsaw
Fastandbeautiful mobilewarsawDoug Sillars
 
Ben Seymour "Practical Responsive Images"
Ben Seymour "Practical Responsive Images"Ben Seymour "Practical Responsive Images"
Ben Seymour "Practical Responsive Images"Digital Henley
 
Practical Responsive Images : Digital Henley : May 2015
Practical Responsive Images : Digital Henley : May 2015Practical Responsive Images : Digital Henley : May 2015
Practical Responsive Images : Digital Henley : May 2015Ben Seymour
 
[cssdevconf] Adaptive Images in Responsive Web Design
[cssdevconf] Adaptive Images in Responsive Web Design[cssdevconf] Adaptive Images in Responsive Web Design
[cssdevconf] Adaptive Images in Responsive Web DesignChristopher Schmitt
 

Similar to Responsive and Fast (20)

3 Tips for a better mobile User Experience
3 Tips for a better mobile User Experience3 Tips for a better mobile User Experience
3 Tips for a better mobile User Experience
 
Faster web pages
Faster web pagesFaster web pages
Faster web pages
 
Optimizing for a faster user experience Pt 2: How-to.
Optimizing for a faster user experience Pt 2: How-to.Optimizing for a faster user experience Pt 2: How-to.
Optimizing for a faster user experience Pt 2: How-to.
 
The Need for Speed, Optimizing the User Experience pt2 - UXPA Boston 2014 - J...
The Need for Speed, Optimizing the User Experience pt2 - UXPA Boston 2014 - J...The Need for Speed, Optimizing the User Experience pt2 - UXPA Boston 2014 - J...
The Need for Speed, Optimizing the User Experience pt2 - UXPA Boston 2014 - J...
 
Asset Redux - Front end performance on Rails (Phil Nash)
Asset Redux - Front end performance on Rails (Phil Nash)Asset Redux - Front end performance on Rails (Phil Nash)
Asset Redux - Front end performance on Rails (Phil Nash)
 
Edi react fastandbeautiful
Edi react fastandbeautifulEdi react fastandbeautiful
Edi react fastandbeautiful
 
Its timetostopstalling cambridgemot
Its timetostopstalling cambridgemotIts timetostopstalling cambridgemot
Its timetostopstalling cambridgemot
 
[convergese] Adaptive Images in Responsive Web Design
[convergese] Adaptive Images in Responsive Web Design[convergese] Adaptive Images in Responsive Web Design
[convergese] Adaptive Images in Responsive Web Design
 
There Are No “Buts” in Progressive Enhancement [Øredev 2015]
There Are No “Buts” in Progressive Enhancement [Øredev 2015]There Are No “Buts” in Progressive Enhancement [Øredev 2015]
There Are No “Buts” in Progressive Enhancement [Øredev 2015]
 
Building for, perceiving and measuring performance for mobile web
Building for, perceiving and measuring performance for mobile webBuilding for, perceiving and measuring performance for mobile web
Building for, perceiving and measuring performance for mobile web
 
Fastandbeautiful seattlevue
Fastandbeautiful seattlevueFastandbeautiful seattlevue
Fastandbeautiful seattlevue
 
Fastandbeautiful devdayseu
Fastandbeautiful devdayseuFastandbeautiful devdayseu
Fastandbeautiful devdayseu
 
Fastandbeautiful yglf
Fastandbeautiful yglfFastandbeautiful yglf
Fastandbeautiful yglf
 
Snowcamp fastandbeautiful
Snowcamp fastandbeautifulSnowcamp fastandbeautiful
Snowcamp fastandbeautiful
 
3 Tips to Deliver Fast Performance Across Mobile Web
3 Tips to Deliver Fast Performance Across Mobile Web3 Tips to Deliver Fast Performance Across Mobile Web
3 Tips to Deliver Fast Performance Across Mobile Web
 
Designing for The Modern Web
Designing for The Modern WebDesigning for The Modern Web
Designing for The Modern Web
 
Fastandbeautiful mobilewarsaw
Fastandbeautiful mobilewarsawFastandbeautiful mobilewarsaw
Fastandbeautiful mobilewarsaw
 
Ben Seymour "Practical Responsive Images"
Ben Seymour "Practical Responsive Images"Ben Seymour "Practical Responsive Images"
Ben Seymour "Practical Responsive Images"
 
Practical Responsive Images : Digital Henley : May 2015
Practical Responsive Images : Digital Henley : May 2015Practical Responsive Images : Digital Henley : May 2015
Practical Responsive Images : Digital Henley : May 2015
 
[cssdevconf] Adaptive Images in Responsive Web Design
[cssdevconf] Adaptive Images in Responsive Web Design[cssdevconf] Adaptive Images in Responsive Web Design
[cssdevconf] Adaptive Images in Responsive Web Design
 

More from Sven Wolfermann

RESS – Responsive Webdesign and Server Side Components
RESS – Responsive Webdesign and Server Side ComponentsRESS – Responsive Webdesign and Server Side Components
RESS – Responsive Webdesign and Server Side ComponentsSven Wolfermann
 
Typografie im Responsive Webdesign
Typografie im Responsive WebdesignTypografie im Responsive Webdesign
Typografie im Responsive WebdesignSven Wolfermann
 
Responsive Webdesign Process
Responsive Webdesign ProcessResponsive Webdesign Process
Responsive Webdesign ProcessSven Wolfermann
 
Webmontag karlsruhe – responsive images, maddesigns (sven wolfermann)
Webmontag karlsruhe – responsive images, maddesigns (sven wolfermann)Webmontag karlsruhe – responsive images, maddesigns (sven wolfermann)
Webmontag karlsruhe – responsive images, maddesigns (sven wolfermann)Sven Wolfermann
 
CSS3 im praktischen Einsatz
CSS3 im praktischen EinsatzCSS3 im praktischen Einsatz
CSS3 im praktischen EinsatzSven Wolfermann
 

More from Sven Wolfermann (6)

RESS – Responsive Webdesign and Server Side Components
RESS – Responsive Webdesign and Server Side ComponentsRESS – Responsive Webdesign and Server Side Components
RESS – Responsive Webdesign and Server Side Components
 
Typografie im Responsive Webdesign
Typografie im Responsive WebdesignTypografie im Responsive Webdesign
Typografie im Responsive Webdesign
 
Responsive Images
Responsive ImagesResponsive Images
Responsive Images
 
Responsive Webdesign Process
Responsive Webdesign ProcessResponsive Webdesign Process
Responsive Webdesign Process
 
Webmontag karlsruhe – responsive images, maddesigns (sven wolfermann)
Webmontag karlsruhe – responsive images, maddesigns (sven wolfermann)Webmontag karlsruhe – responsive images, maddesigns (sven wolfermann)
Webmontag karlsruhe – responsive images, maddesigns (sven wolfermann)
 
CSS3 im praktischen Einsatz
CSS3 im praktischen EinsatzCSS3 im praktischen Einsatz
CSS3 im praktischen Einsatz
 

Recently uploaded

Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptxUnit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptxNitish292041
 
Piece by Piece Magazine
Piece by Piece Magazine                      Piece by Piece Magazine
Piece by Piece Magazine CharlottePulte
 
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...Rishabh Aryan
 
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...Associazione Digital Days
 
Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Rndexperts
 
Interior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project StudioInterior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project StudioRMG Project Studio
 
FW25-26 Knit Cut & Sew Trend Book Peclers Paris
FW25-26 Knit Cut & Sew Trend Book Peclers ParisFW25-26 Knit Cut & Sew Trend Book Peclers Paris
FW25-26 Knit Cut & Sew Trend Book Peclers ParisPeclers Paris
 
The spirit of digital place - game worlds and architectural phenomenology
The spirit of digital place - game worlds and architectural phenomenologyThe spirit of digital place - game worlds and architectural phenomenology
The spirit of digital place - game worlds and architectural phenomenologyChristopher Totten
 
Karim apartment ideas 01 ppppppppppppppp
Karim apartment ideas 01 pppppppppppppppKarim apartment ideas 01 ppppppppppppppp
Karim apartment ideas 01 pppppppppppppppNadaMohammed714321
 
simpson-lee_house_dt20ajshsjsjsjsjj15.pdf
simpson-lee_house_dt20ajshsjsjsjsjj15.pdfsimpson-lee_house_dt20ajshsjsjsjsjj15.pdf
simpson-lee_house_dt20ajshsjsjsjsjj15.pdfLucyBonelli
 
10 must-have Chrome extensions for designers
10 must-have Chrome extensions for designers10 must-have Chrome extensions for designers
10 must-have Chrome extensions for designersPixeldarts
 
guest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssssguest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssssNadaMohammed714321
 
CAPITAL GATE CASE STUDY -regional case study.pdf
CAPITAL GATE CASE STUDY -regional case study.pdfCAPITAL GATE CASE STUDY -regional case study.pdf
CAPITAL GATE CASE STUDY -regional case study.pdfAlasAlthaher
 
Niintendo Wii Presentation Template.pptx
Niintendo Wii Presentation Template.pptxNiintendo Wii Presentation Template.pptx
Niintendo Wii Presentation Template.pptxKevinYaelJimnezSanti
 
10 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 202410 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 2024digital learning point
 
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道yrolcks
 
Map of St. Louis Parks
Map of St. Louis Parks                              Map of St. Louis Parks
Map of St. Louis Parks CharlottePulte
 
NBA power point presentation final copy y
NBA power point presentation final copy yNBA power point presentation final copy y
NBA power point presentation final copy ysrajece
 
General Simple Guide About AI in Design By: A.L. Samar Hossam ElDin
General Simple Guide About AI in Design By: A.L. Samar Hossam ElDinGeneral Simple Guide About AI in Design By: A.L. Samar Hossam ElDin
General Simple Guide About AI in Design By: A.L. Samar Hossam ElDinSamar Hossam ElDin Ahmed
 
Karim apartment ideas 02 ppppppppppppppp
Karim apartment ideas 02 pppppppppppppppKarim apartment ideas 02 ppppppppppppppp
Karim apartment ideas 02 pppppppppppppppNadaMohammed714321
 

Recently uploaded (20)

Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptxUnit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
 
Piece by Piece Magazine
Piece by Piece Magazine                      Piece by Piece Magazine
Piece by Piece Magazine
 
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
 
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
 
Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025
 
Interior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project StudioInterior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project Studio
 
FW25-26 Knit Cut & Sew Trend Book Peclers Paris
FW25-26 Knit Cut & Sew Trend Book Peclers ParisFW25-26 Knit Cut & Sew Trend Book Peclers Paris
FW25-26 Knit Cut & Sew Trend Book Peclers Paris
 
The spirit of digital place - game worlds and architectural phenomenology
The spirit of digital place - game worlds and architectural phenomenologyThe spirit of digital place - game worlds and architectural phenomenology
The spirit of digital place - game worlds and architectural phenomenology
 
Karim apartment ideas 01 ppppppppppppppp
Karim apartment ideas 01 pppppppppppppppKarim apartment ideas 01 ppppppppppppppp
Karim apartment ideas 01 ppppppppppppppp
 
simpson-lee_house_dt20ajshsjsjsjsjj15.pdf
simpson-lee_house_dt20ajshsjsjsjsjj15.pdfsimpson-lee_house_dt20ajshsjsjsjsjj15.pdf
simpson-lee_house_dt20ajshsjsjsjsjj15.pdf
 
10 must-have Chrome extensions for designers
10 must-have Chrome extensions for designers10 must-have Chrome extensions for designers
10 must-have Chrome extensions for designers
 
guest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssssguest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssss
 
CAPITAL GATE CASE STUDY -regional case study.pdf
CAPITAL GATE CASE STUDY -regional case study.pdfCAPITAL GATE CASE STUDY -regional case study.pdf
CAPITAL GATE CASE STUDY -regional case study.pdf
 
Niintendo Wii Presentation Template.pptx
Niintendo Wii Presentation Template.pptxNiintendo Wii Presentation Template.pptx
Niintendo Wii Presentation Template.pptx
 
10 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 202410 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 2024
 
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
 
Map of St. Louis Parks
Map of St. Louis Parks                              Map of St. Louis Parks
Map of St. Louis Parks
 
NBA power point presentation final copy y
NBA power point presentation final copy yNBA power point presentation final copy y
NBA power point presentation final copy y
 
General Simple Guide About AI in Design By: A.L. Samar Hossam ElDin
General Simple Guide About AI in Design By: A.L. Samar Hossam ElDinGeneral Simple Guide About AI in Design By: A.L. Samar Hossam ElDin
General Simple Guide About AI in Design By: A.L. Samar Hossam ElDin
 
Karim apartment ideas 02 ppppppppppppppp
Karim apartment ideas 02 pppppppppppppppKarim apartment ideas 02 ppppppppppppppp
Karim apartment ideas 02 ppppppppppppppp
 

Responsive and Fast

  • 1. RESPONSIVE AND FAST ( )Sven Wo fermann @maddesigns
  • 3. MOTO.OAKLEY.COM 85.4MB page weight 471 HTTP requests 2 minutes 45 seconds until loading screen replaced with content 4 minutes 10 seconds until onLoad event http://hawksworx.com/blog/oakleys-monster-page-of-baubles/
  • 5. MOTO.OAKLEY.COM FAIL ok, ok, Oak ey does it better now: JUST 14.2MB, 291 request (more than 70MB ess)
  • 6. with mobi e user-agent? 6.7MB, 114 requests :/ http://hawksworx.com/b og/oak eys-moto-diet/
  • 7.
  • 8. This particu ar page weighs in at 8-9 megabytes inc uding a of its assets and advertising […] starts rendering a er about 10.5s http://www.fi amentgroup.com/ ab/weight-wait.htm
  • 9. ” RWD may make your pages ook better on a variety of devices, but it doesn’t automatica y make your pages oad better on a variety of devices. It’s a about imp ementation. “
  • 10.
  • 11. M dot or RWD. Which is faster? In conc usion, these findings show that RWD sites can indeed compete with m dot sites in terms of oad time! http://bigqueri.es/t/m-dot-or-rwd-which-is-faster/296
  • 12. ”B ame the imp ementation, not the technique“ Tim Kad ec
  • 13. OUR PAGES ARE FAT! 56kb HTML 63kb CSS 97kb Fonts 227kb Videos 329kb Scripts 1.310kb Images ~ 2 MB total http://httparchive.org
  • 14.
  • 15. DAVE RUPERT RWD-TESTS Media queries are responsib e for ~12% (2.8kb) of my CSS weight. For every 8 ines of CSS I write, one more is needed to make it responsive. In Conc usion: Expect RWD to add ~10% It appears that RWD has added 4.8kb (~2%) to my tota page weight. — http://daverupert.com/2014/07/rwd-b oat/
  • 16. 85% of mobi e users expect pages to oad as fast or faster than they oad on the desktop. Kiss Metrics
  • 17. WHEN DO YOU THINK ABOUT PERFORMANCE IN YOUR PROJECT?
  • 18. Path to Performance by Katie Kovalcin
  • 19. Path to Performance by Katie Kovalcin
  • 20. PERFORMANCE CULTURE Performance optimization is a process NOT an event. Performance is a cu tura thing - and starts with design.
  • 21. If you want to “se ” performance, discuss in sa es, not deve opment.
  • 22. Amazon's ca cu ated that a page oad s ow-down of just one second cou d cost it $1.6 bi ion in sa es each year. A 2009 A/B Study Goog e has ca cu ated that by s owing its search resu ts by just four tenths of a second they cou d ose 8 mi ion searches per day. FastCompany
  • 24. TIME & USER PERCEPTION Delay User perception 0–100 ms Instant 100–300 ms Small perceptible delay 300–1000 ms Machine is working 1,000+ ms Likely mental context switch 10,000+ ms Task is abandoned I ya Grigorik – High-Performance Browser Networking
  • 26. BREAKING NEWS AT 1000MS by Patrick Hamann (about )http://www.theguardian.com https://speakerdeck.com/patrickhamann/breaking-news-at-1000ms-ve ocity-eu-2014
  • 29. PERFORMANCE BUDGET METRICS http://timkad ec.com/2014/11/performance-budget-metrics/
  • 30. PERFORMANCE BUDGET GOALS There are a coup e of factors for which a certain metric or KPI can be e aborated: page load time page weight PSI (page speed index) Score load time first paint speed index visually complete number of requests or “time to first tweet”
  • 31. PERFORMANCE BUDGET EXAMPLE €500 month y budget €300 rent €100 groceries €100 clothes
  • 32. PERFORMANCE BUDGET EXAMPLE €400 month y budget €300 rent €50 groceries €50 clothes
  • 33. PERFORMANCE BUDGET EXAMPLE 400kb performance budget 50kb fonts 50kb css 300kb images
  • 34. PERFORMANCE BUDGET EXAMPLE 400kb performance budget 100kb fonts 50kb css 200kb images 50kb javascript
  • 35. YOU CAN’T SPEND WHAT YOU DON’T HAVE!
  • 36. GOOD PERF BUDGETS 600KB total page weight 20 requests 1000 speed index 1s start render time Less than 3 seconds to see something on 3G.
  • 37. MAINTAINING A PERFORMANCE GOAL 3 options: 1. Optimize existing feature 2. Remove existing feature 3. Don’t add
  • 40. WHY IS MY SITE SLOW ON MOBILE? “We’re on rea LTE now?!“
  • 41. BANDWIDTH VS. LATENCY Bandwidth Maximum throughput of a ogica or physica communication path Latency The time from the source sending a packet to the destination receiving it
  • 43. LATENCY ON MOBILE NETWORKS http://www.aosabook.org/en/posa/mobi e-perf-images/figure1.png
  • 44. BANDWIDTH VS. LATENCY http://chimera. abs.orei y.com/books/1230000000545/ch01.htm
  • 45. IT DOESN'T MATTER HOW SMART YOUR PHONE IS, IF YOUR NETWORK IS DUMB — Bruce Lawson (@bruce )
  • 46. LATENCY 1. Latency defines the speed of the how the web loads. 2. Mobile’s growth means average latency is going up. 3. Optimizing for latency means optimizing for request count.
  • 47. PREPARE YOUR SITE FOR THE FIRST 14KB TCP s ow start http://chimera. abs.orei y.com/books/1230000000545/ch02.htm #SLOW_START
  • 49. CONCATENATE concatenate useful chunks of CSS & JavaScript On 3G, a new 10k request equals ~100kb of concatenated content. But only concatenate styles and scripts, that are used on that page
  • 50. MINIFY, COMPRESSION AND SHRINKING Minify CSS & JavaScript And GZIP! Compress Images! (Strip Image Metadata)
  • 52.
  • 53. BASIC IMAGE PERFORMANCE TIPS: CSS Sprites (pixel image sprites) SVG sprites optimize images (JPEGmini, PNGmini, …) more advanced WebP, MozJpeg do not deliver larger files than needed
  • 56.
  • 58. to remember – average size of a images ~1.3 MB!
  • 59. WRAP BACKGROUND-IMAGE IN MEDIA QUERIES /* load only on smaller screens */ @media (max-width: 600px) { .module { background-image: url('images/image-max600.png'); } } /* load on screens larger than 600px */ @media (min-width: 600px) { .module { background-image: url('images/image-min600.png'); } } Browsers oad on y matched background-image -› wrap them in @media query if they change between different viewports
  • 61. RESPONSIVE <IMG> WITH SRCSET + SIZES <img src="https://unsplash.it/16/9" srcset="https://unsplash.it/960/540 960w, https://unsplash.it/640/360 640w, https://unsplash.it/480/270 480w, https://unsplash.it/320/180 320w" sizes="(min-width: 1280px) 480px, (min-width: 1024px) 444px, (min-width: 640px) 325px, 100vw" alt="dummy image"> hint for debugging: c ear cache! for srcset, when a arger image resource is in cache, a sma er image down oad is not triggered
  • 62. srcset/sizes provides information to browsers <picture> provides instructions to browsers.
  • 63. <PICTURE> art direction images and type switching
  • 64. <PICTURE> <picture> <source media="(min-width: 650px)" srcset="kitten-large.png"> <source media="(min-width: 465px)" srcset="kitten-medium.png"> <!-- img tag for browsers that don't support picture element --> <img src="kitten-small.png" alt="a cute kitten"> </picture> use or for cross browser-supportrespimage picturefi
  • 65. LAZY LOAD RESPONSIVE IMAGES - lazysizes is a […] lazyloader for images (including responsive images picture/srcset), iframes, scripts/widgets and much more. - my blog about CSS for lazy loading images (german) - Responsive Images as a Service lazysizes Responsive Images – lazy loading WURFL Image Tailor (WIT)
  • 67.
  • 68. FONT LOADING 101 IE Firefox WebKit Blink Blocking ✗ ✔ ✔ ✔ Timeout - 3s - 3s
  • 69. TIPS FOR USING WEB FONTS todays most supported web font formats: .ttf, .woff, .woff2 use woff2! Google Fonts delivers subsetted fonts (only load a subset of a font file [latin/german/french subset]) to supported browsers (Chrome) but in general: host the fonts by yourself, save DNS requests avoid base64 encoding for faster page rendering http://www.sitepoint.com/improving-font-performance-subsetting- oca -storage/
  • 70.
  • 71. ICON FONTS - CHOSE CAREFULLY! Font Awesome is a fu suite of 519 pictographic icons https://github.com/FortAwesome/Font-Awesome
  • 73. FONT AWESOME ON ICOMOON.IO If you on y use a bunch of icons, strip down the fi es with icomoon.io
  • 75. ICOMOON save as font (or SVG) and save Kb!
  • 76. SVG ICONS (SPRITES) SVG Sprites vs. Icon Fonts
  • 77. using web fonts on y on arger disp ays (“faster connections”)? @media screen and (min-width: 48em) { body { font-family: 'WebFont', Fallback, sans-serif; } }
  • 78. PERFORMANCE BUDGET “Is the extra 135kb worth the aesthetic change?” “Does the heavier font kit better represent the brand?”
  • 79. THE CRITICAL RENDERING PATH The intermediate steps between receiving the HTML, CSS, and JavaScript bytes and the required processing to turn them into rendered pixe s
  • 80. INLINING CRITICAL CSS in ine the most critica CSS & JS to render in this specific viewport (difficu t with RWD - different viewports) <head> <style> /* inline critical CSS */ </style> </head> async who e CSS (with ), maybe use cookies to check if user has cached version of CSS oadCSS.js
  • 81. DON'T TRY TO OUTSMART THE BROWSER!
  • 82. FUTURE OF CRITICAL CSS: async CSS with re ="pre oad" <link rel=preload href=/non-block.css as=stylesheet onload=yourLogic() />
  • 83. More Weight Doesn't Mean More Wait fi amentgroup
  • 84. More Weight Doesn't Mean More Wait Scott Jeh removed ~8s in oading without removing content
  • 85. HTTP/2 todays performance tips can be wrong with HTTP/2
  • 86. PERFORMANCE IS A REQUIREMENT NOT AN EXTRA FEATURE
  • 87. THANKS FOR YOUR ATTENTION! Sven Wo fermann | maddesigns Twitter: @maddesigns Web: maddesigns.de