A slow site will :
Affect the impression of your brand
Slide 8
Slide 8 text
A slow site will :
Affect the impression of your brand
Increase user frustration
Slide 9
Slide 9 text
A slow site will :
Affect the impression of your brand
Increase user frustration
Cost your user’s money
Slide 10
Slide 10 text
whatdoesmysitecost.com
Slide 11
Slide 11 text
A slow site will :
Affect the impression of your brand
Increase user frustration
Cost your user’s money
Make your user’s use your competitors
Slide 12
Slide 12 text
A slow site will :
Affect the impression of your brand
Increase user frustration
Cost your user’s money
Make your user’s use your competitors
Affect your SEO rankings
Slide 13
Slide 13 text
People != Patience
Slide 14
Slide 14 text
No content
Slide 15
Slide 15 text
Mobile Devices?
Slide 16
Slide 16 text
Mobile
Slide 17
Slide 17 text
is
Mobile
Slide 18
Slide 18 text
Mobile
HUGE
is
Slide 19
Slide 19 text
Mobile commerce
will be 40%
of eCommerce by
the end of 2015
source: criteo.com/resources/mobile-commerce-q1-2015/
Slide 20
Slide 20 text
Mobile
transactions
grew 10%
in the
last 3 months
Slide 21
Slide 21 text
No content
Slide 22
Slide 22 text
So what can we do?
Slide 23
Slide 23 text
No content
Slide 24
Slide 24 text
Understand Mobile Networks
Slide 25
Slide 25 text
RRC
Negotiation
Network Overhead
100ms
Slide 26
Slide 26 text
DNS
Lookup
RRC
Negotiation
Network Overhead
100ms 200ms
★ Combine Styles and Scripts
★ Spriting
★ Caching
★ Do you really need that?
Reduce HTTP Requests
Slide 78
Slide 78 text
Combine
Slide 79
Slide 79 text
Grunt
Gulp
Slide 80
Slide 80 text
Automate all the
things!
yeoman.io/blog/performance-optimization.html
Slide 81
Slide 81 text
Spriting
Slide 82
Slide 82 text
No content
Slide 83
Slide 83 text
No content
Slide 84
Slide 84 text
1 request
Slide 85
Slide 85 text
1 request
many
images
Slide 86
Slide 86 text
- No whitespace
Sprites
Slide 87
Slide 87 text
- No whitespace
- Optimize & cache
Sprites
Slide 88
Slide 88 text
- No whitespace
- Optimize & cache
- Aim for similar palettes
Sprites
Slide 89
Slide 89 text
Caching
Slide 90
Slide 90 text
- Beware of proxies
Caching
Slide 91
Slide 91 text
- Beware of proxies
- Standardize your file
capitalization
Caching
Slide 92
Slide 92 text
- Beware of proxies
- Standardize your file
capitalization
- Determine the best cache lifetime
Caching
Slide 93
Slide 93 text
- Beware of proxies
- Standardize your file
capitalization
- Determine the best cache lifetime
- Minimize churn
Caching
Slide 94
Slide 94 text
Do you really
need that?
Slide 95
Slide 95 text
“When you want to be
fast, you have to give up
the things slowing you
down.”
Addy Osmani
Slide 96
Slide 96 text
CSS instead of images
Consider :
Slide 97
Slide 97 text
CSS instead of images
Social Widgets
Consider :
Slide 98
Slide 98 text
No content
Slide 99
Slide 99 text
“Across the 61 million
mobile sessions we
studied, we found that
only 0.2% of mobile users
do any social sharing.”
source: http://moovweb.com/blog/anyone-use-social-sharing-buttons-mobile/
Slide 100
Slide 100 text
CSS instead of images
Social Widgets
3rd Party Scripts
Consider :
Slide 101
Slide 101 text
CSS instead of images
Social Widgets
3rd Party Scripts
Carousels
Consider :
Slide 102
Slide 102 text
shouldiuseacarousel.com
Slide 103
Slide 103 text
Deliver only the goods
that will be used!
Slide 104
Slide 104 text
No content
Slide 105
Slide 105 text
3. Reduce Blocking
Slide 106
Slide 106 text
3. Reduce Blocking
Load / Idle
Slide 107
Slide 107 text
HTML
Slide 108
Slide 108 text
HTML CSS
Slide 109
Slide 109 text
HTML CSS JS
Slide 110
Slide 110 text
HTML CSS JS
Blocking Blocking
Slide 111
Slide 111 text
“More Weight Doesn't
Mean More Wait”
Scott Jehl
Slide 112
Slide 112 text
Finding the Critical Path
Slide 113
Slide 113 text
No content
Slide 114
Slide 114 text
14 KB
Slide 115
Slide 115 text
No content
Slide 116
Slide 116 text
Grunt
Critical
Critical
Slide 117
Slide 117 text
/* inlined critical CSS */
loadCSS('deferred.css');
...body goes here
Slide 118
Slide 118 text
/* inlined critical CSS */
loadCSS('deferred.css');
...body goes here