performance and ux

87
WebTechCon 2015 Performance and UX Image: flickr.com/.../projectapolloarchive/ @webinterface

Upload: peter-rozek

Post on 22-Jan-2018

27.937 views

Category:

Design


0 download

TRANSCRIPT

Page 1: Performance and UX

WebTechCon 2015

Performance and UX

Image: flickr.com/.../projectapolloarchive/@webinterface

Page 2: Performance and UX

Peter Rozek

Work at ecx.io (Digital Agency)

Skills: UX

Usability Accessibility

Frontend

@webinterface

Page 3: Performance and UX

@webinterface

We have slow connection

speeds Image: http://conservativepost.com/

Page 4: Performance and UX

@webinterface

Slow pages lose users!

„If a page load takes more than two seconds, 40% are likely to abandon that site.“

Source: Data Monday: E-commerce Performance

Page 5: Performance and UX

@webinterface

„When Shopzilla decreased load time by 4 sec, they saw a 25% increase in page views, and conversion rates went up 7-12%.“

Source: Mobilism: High Performance Mobile

Page 6: Performance and UX

@webinterface

1007 kb86 Resources

1354 kb108 Resources

Spring 2013 Spring 2015

grown by 26%

Source: Radware_SOTU_Report_Spring_2015.pdf

Page 7: Performance and UX

@webinterface

Houston we have a problem!

Bild: http://jasonrenshaw.typepad.com/

Page 8: Performance and UX

@webinterface

Knowing your destination and

being lost

Page 9: Performance and UX

@webinterface

Do you know your why?

Does your client know its why?

Source: The Six Elements of Focus to Improve Your Craft

Page 10: Performance and UX

@webinterface

Clarity Focus

Source: The Six Elements of Focus to Improve Your Craft

Page 11: Performance and UX

@webinterface

Performance is a essential

design feature

Page 12: Performance and UX

@webinterface

Performance is design´s best friend, not its enemy

Page 13: Performance and UX

@webinterface

Performance is everyone’s problem1. Understand the importance

2. Advocate with clients

3. Help maintain the performance budget

Page 14: Performance and UX

@webinterface

Performance!

BuildSales Concept/Design Roll-out

Project Timeline

Strategy

Page 15: Performance and UX

@webinterface

Performance!

Performance is a part of conception and design

BuildSales Concept/Design Roll-outStrategy

Page 16: Performance and UX

@webinterface

Performance are not simply a development issue

Page 17: Performance and UX

@webinterface

Discuss performance in sales not development1. What is the performance budget?

2. What is this project budget?

Page 18: Performance and UX

@webinterface

Performance!

Where performance need to happens

BuildSales Concept/Design Roll-outStrategy

Page 19: Performance and UX

@webinterface

Client understands the benefits

BuildSales Concept/Design Roll-outStrategy

Page 20: Performance and UX

@webinterface

Advocate performance as a priority

BuildSales Concept/Design Roll-outStrategy

Page 21: Performance and UX

@webinterface

Concept and Design is committed within a performance budget

BuildSales Concept/Design Roll-outStrategy

Page 22: Performance and UX

@webinterface

Development is prepared to successfully integrate performance as a priority

BuildSales Concept/Design Roll-outStrategy

Page 23: Performance and UX

@webinterface

Everyone must be envolved by baking performance into your workflow from day one.

Page 24: Performance and UX

@webinterface

Set one goalwith metrics

Page 25: Performance and UX

@webinterface

Communicatewhat, how and why

Page 26: Performance and UX

@webinterface

The perception of fast What is fast?

Image: www.srf.ch

Page 27: Performance and UX

Chuck Norris doesn’t wear a watch. He decides what time it is.

@webinterface Image: http://www.mrctv.org/

Page 28: Performance and UX

No one likes to suffer the frustration of waiting.

@webinterface

Page 30: Performance and UX

@webinterface

User’s perception of time

Time to interactLoad Time

Objective time or

Clock time

Psychological time or

Brain timevs.

Page 31: Performance and UX

@webinterface

Jacob Nielsen: Website Response Times

Page 32: Performance and UX

@webinterface

0,1 - 0,2s 0,5 - 1s

2 - 5s 5 - 10sInstant Immediate User Flow Keeping the user´s

attention

Page 33: Performance and UX

@webinterface

Load the page mobile within

5 seconds

Page 34: Performance and UX

@webinterface

Important Metrics: Page weight Start render Fully loaded

Page 35: Performance and UX

@webinterface Source: Radware_SOTU_Report_Spring_2015.pdf

Page 36: Performance and UX

@webinterface Source: http://www.webpagetest.org/

WebPageTest.org

Page 37: Performance and UX

@webinterface

Above the fold criterion

Page 38: Performance and UX

@webinterface

Make the page usable within less 1 seconds

Page 39: Performance and UX

@webinterface Source: https://developers.google.com/speed/docs/insights....

Page 40: Performance and UX

@webinterface

49% use there Mobilephone everyday and everytime.

Page 41: Performance and UX

@webinterface Image: bradfrost.com

Page 42: Performance and UX

@webinterface

Responsive web design requirement: Support broad range of devices.

Page 43: Performance and UX

@webinterface

Set a perfomance budget

Image: https://en.wikipedia.org/wiki/Lunar_Roving_Vehicle

Page 44: Performance and UX

@webinterface

Work as a team and determine the budget

Page 45: Performance and UX

@webinterface

5SECONDS ON EDGE

150 kb

220 kb

SOMEWHERE BETWEEN

AND

EDGE

=

Page 46: Performance and UX

@webinterface

5SECONDS

ON 3G

350 kb

400 kb

SOMEWHERE BETWEEN

AND

3G

=

Page 47: Performance and UX

@webinterface

400 kb =

Performance budget example:

100 kb fonts 50 kb css 200 kb images 50 kb javascript

Page 48: Performance and UX

@webinterface

Core Experience

JS Experience

Page 49: Performance and UX

@webinterface

Core Experience

Mobile First

Content First

Accessibility First

Device First

Responsive First

Performance First

Page 50: Performance and UX

@webinterface

Core experience has the priority

Page 51: Performance and UX

@webinterface

1. Core Content should be delivered first

2. Core Content should render with 1000ms

3. Every feature must fail gracefully

Page 52: Performance and UX

@webinterface

Performance design reviews What value does this provide?

Page 53: Performance and UX

@webinterface

Identify core content

Page 54: Performance and UX

@webinterface

Red Flags

Carousel

Video Video

What has priority?

Alternate solutions?

Page 55: Performance and UX

@webinterface

1. Mockup designs in code

2. Run performance tests early

3. Quick iterations

4. Enhance

5. Work as a team

Prototype early

Page 56: Performance and UX

@webinterface

Do not block the page rendering

Page 57: Performance and UX

@webinterface

Make fewer HTTP Requests

Source: http://www.sitepoint.com/

Page 58: Performance and UX

@webinterface

Use CDN (Content Delivery Network)

Source: http://www.sitepoint.com/

Page 59: Performance and UX

@webinterface

Load Balancing

Source: http://www.sitepoint.com/

Page 60: Performance and UX

@webinterface

Do not add JS Files into the head

<html><head>

<link href=“styles.css“/><script src=“script-lib.js“></script><script src=“script-custom.js“></script>

</head><body>

… Content …</body>

</html>

Page 61: Performance and UX

@webinterface

Javascipt Files at the bottom of body<html>

<head><link href=“styles.css“/>

</head><body>

… Content …<script src=“script-lib.js“></script><script src=“script-custom.js“></script>

</body></html>

Page 62: Performance and UX

@webinterface

Minify CSS and JavaScript GZIP (13% - 25%) Compress Images (Strip Image Metadata)

Page 63: Performance and UX

@webinterface

Development concept: Ajax content in to anhance page.

Page 64: Performance and UX

@webinterface

On mobile redirects are more painful.

Page 65: Performance and UX

@webinterface

Load Javascript Asynchronous

Page 66: Performance and UX

@webinterface

Font Performance with Subsetting and Local Storage

Source: http://www.sitepoint.com/

Page 67: Performance and UX

@webinterface

Local Storagewindows.localStorage:setItem()getItem()removeItem()clear()

all popular browsers, 5MB max http://dev.w3.org/html5/webstorage/ http://diveintohtml5.org/storage.html

Page 68: Performance and UX

@webinterface

Web / Icon fonts using web/icon fonts on larger displays

Page 69: Performance and UX

@webinterface

@media screen and (min-width: 48em) {

body { font-family: webfont, fallback, sans-serif;

}

}

Faster connection

Page 70: Performance and UX

@webinterface

Most sites fail to take advantage of core image optimization techniques.

Page 71: Performance and UX

@webinterface

Images typically comprise between 50% to 60% of a page’s total weight

Page 72: Performance and UX

@webinterface

Responsive Image

<picture>

<source media="(min-width: 1024px)" srcset="large.jpg 1x, [email protected] 2x">

<source media="(min-width: 768px)" srcset="medium.jpg 1x, [email protected] 2x">

<source srcset="small.jpg 1x, [email protected] 2x">

<img src="fallback.jpg">

</picture>

„respimage“ or „picturefill" for cross browser-support

Page 73: Performance and UX

@webinterface

Lazy load for responsive imagelazysizes is a lazyloader for responsive images

Source: https://github.com/aFarkas/lazysizes

Page 74: Performance and UX

@webinterface

Last words

Page 75: Performance and UX

@webinterface

Everyone must be envolved by baking performance into your workflow from day one.

Page 76: Performance and UX

@webinterface

Set goal Communicate

Repeat

Page 77: Performance and UX

@webinterface

Include performance into the project documents

Page 78: Performance and UX

@webinterface

Deviler core content first, then progressively enhance the extras.

Page 79: Performance and UX

@webinterface

Measure Optimise Repeat

Page 80: Performance and UX

@webinterface

Leadership in Performance

Page 81: Performance and UX

@webinterface

„Great minds discus principles. Average minds discus technologies. Small minds discus tools.“

Brad Frost

https://www.youtube.com/watch?v=nE0CRMm59BY

Page 82: Performance and UX

Design the Priority not the Layout

@webinterface

Page 83: Performance and UX

@webinterface

The goal is to create a stunning, flexible, lightning-fast experience.

Page 84: Performance and UX

Performance and UX is a requirement

Bild: flickr.com/.../projectapolloarchive/@webinterface

Page 85: Performance and UX

@webinterface

Page 86: Performance and UX

Thanks

@webinterface

…dear Ellen