A 3-screen approach to Web performance optimization

17
A 3-Screen Approach to Website Performance Optimization Robert Castley Keynote Systems Anthony Drewery Hotels.com

description

Users are now browsing the Web across smartphones, tablets and the desktop. Find out how performance differs for each screen and what to consider in order to deliver a great online experience.

Transcript of A 3-screen approach to Web performance optimization

Page 1: A 3-screen approach to Web performance optimization

A 3-Screen Approach to

Website Performance

Optimization Robert Castley

Keynote Systems

Anthony Drewery

Hotels.com

Page 2: A 3-screen approach to Web performance optimization

The 3-screen Web is here, now

Page 3: A 3-screen approach to Web performance optimization

Source: Keynote Mobile User Study, 2012

Page 4: A 3-screen approach to Web performance optimization

Source: Keynote Mobile User Study, 2012

Page 5: A 3-screen approach to Web performance optimization

Source: Keynote Mobile User Study, 2012. Internet Retailer Mobile Commerce Guide, 2012.

Page 6: A 3-screen approach to Web performance optimization

Source: Yankee Group and Keynote Systems, 2012

Verizon and AT&T wireless connections were used for the smartphone and tablet device measurements

DESKTOP SMARTPHONE TABLET

Page 7: A 3-screen approach to Web performance optimization

Site performance across 3-screens varies… Dramatically

Desktop performance does not

carry over to smartphones and

tablets

No website was in the top 3

across all the different screens

Most websites send the same

content to smartphones and

tablets

Source: Yankee Group and Keynote Systems, 2012

Verizon and AT&T wireless connections were used for the smartphone and tablet device measurements

Page 8: A 3-screen approach to Web performance optimization

Site performance across 3-screens varies… Dramatically

Desktop performance does not

carry over to smartphones and

tablets

No website was in the top 3

across all the different screens

Most websites send the same

content to smartphones and

tablets

Source: Yankee Group and Keynote Systems, 2012

Verizon and AT&T wireless connections were used for the smartphone and tablet device measurements

Page 9: A 3-screen approach to Web performance optimization

Smartphones & tablets: Why so much difference?

Source: Yankee Group and Keynote Systems, 2012

Page 10: A 3-screen approach to Web performance optimization

3-screen approach: Optimize with mobile in mind

Connection

- Assume 3G, not PC… even for tablets

Design

- Screen size and touch

Page Construction

- Minimize HTTP requests

- Data URIs

- Minimize redirects

- Manage third parties carefully

Page 11: A 3-screen approach to Web performance optimization

Responsive design, custom sites… which one?

Responsive

approach

Custom sites /

progressive

enhancement

approach

Page 12: A 3-screen approach to Web performance optimization

Be direct

Latency of mobile is 5X to 10X Web

- TCP connection 100MS -300MS

- First Packet 300MS to 700MS

- Each roundtrip really counts!

Avoid redirections whenever possible

(exception: HTTP to HTTPS)

Limit DNS lookup per page to 1

Always use HTTP Keep Alive

CVS improved their load time 13% by

eliminating 2 redirects

Page 13: A 3-screen approach to Web performance optimization

Keep it light

Try to limit number of

elements per page to <10

new HTTP requests

Audit image content for

appropriate resolution,

quality settings and

compression

Bytes downloaded 97 KB

Images 15

Page elements 20

Bytes downloaded 2318 KB

Images 32

Page elements 57

Page 14: A 3-screen approach to Web performance optimization

Data URIs: Caution

Embedded content strategy

Good solution for reducing

HTTP requests/round-trips

Bad for content used in

subsequent pages

(not cached)

Results may vary! Test and

monitor.

Page “1”

Data URIs improve performance

after change…

Keynote Performance Consulting case study

Page “2”

…but subsequent page impacted

due to images not cached

Page 15: A 3-screen approach to Web performance optimization

Watch third parties

More requests/round trips

Load after point of initial

render

Asynchronous loading

Limit to 1 – 2 calls per

page… at most

Audit continuously

Page 16: A 3-screen approach to Web performance optimization

Find your own path

There is NO one-size-fits-all solution

Commit to accurately & consistently

measure performance

- Baseline and compare

Optimize based on where you have

issues/latency

Acknowledge and work within your

technical constraints

Learn from the Hotels.com journey

Top of the World by Izzard, on Flickr

Page 17: A 3-screen approach to Web performance optimization

Thank you

keynote.com/kms