+ All Categories
Home > Technology > Nobody Wants a Slow Website

Nobody Wants a Slow Website

Date post: 16-Apr-2017
Category:
Upload: sang-min-yoon
View: 1,764 times
Download: 1 times
Share this document with a friend
85
Nobody Wants a Slow Website September 12, 2015
Transcript
Page 1: Nobody Wants a Slow Website

Nobody Wants a Slow Website

September 12, 2015

Page 2: Nobody Wants a Slow Website

Sang-Min YoonFront End Engineer

Page 3: Nobody Wants a Slow Website

Nobody likes anything that is Slow

Page 4: Nobody Wants a Slow Website

Credit: http://www.inklingsnews.com/c/2010/03/30/dmv-delaying-my-voyage-bureaucracy-in-the-department-of-motor-vehicles-2/

Page 5: Nobody Wants a Slow Website

Credit: http://www.dawgshed.com/threads/you-need-to-stop-by-the-dmv-get-in-line-with-the-millions-of-illegals.137874/

Page 6: Nobody Wants a Slow Website

Credit: http://www.etagsdirect.com/blog/goodbye-florida-dmvs-hello-tax-collector/

Page 7: Nobody Wants a Slow Website

Credit: http://www.elkharttruth.com/news/michigan/2015/07/25/DMV-ends-remote-check-in-but-is-it-to-blame-for-long-waits.html

Page 8: Nobody Wants a Slow Website
Page 9: Nobody Wants a Slow Website

Credit: http://www.northernvatimes.com/gainesville/news/i-95-express-lanes-open & https://www.washingtonpost.com/local/trafficandcommuting/virginias-hot-lanes-could-be-the-future-of-us-transportation/2015/01/20/

feaccfc2-973f-11e4-927a-4fa2638cd1b0_story.html

Page 10: Nobody Wants a Slow Website
Page 11: Nobody Wants a Slow Website
Page 12: Nobody Wants a Slow Website

Same for Websites

Page 13: Nobody Wants a Slow Website

Nobody wants to visit a slow website

Page 14: Nobody Wants a Slow Website

“1 in 4 visitors will abandon a website if it takes longer than 4

seconds to load.”

Source: http://loadstorm.com/2014/04/infographic-web-performance-impacts-conversion-rates/

Page 15: Nobody Wants a Slow Website

“1 second delay in page load time could cost Amazon $1.6 billion in

annual sales”

Source: http://www.fastcompany.com/1825005/how-one-second-could-cost-amazon-16-billion-sales

Page 16: Nobody Wants a Slow Website

“Obama’s 2011 fundraising campaign raised an additional $34 million when the Obama for America website shrunk page load time from

5 seconds to 2 seconds”

Source: http://kylerush.net/blog/meet-the-obama-campaigns-250-million-fundraising-platform/

Page 17: Nobody Wants a Slow Website

We know all this but…

Page 18: Nobody Wants a Slow Website
Page 19: Nobody Wants a Slow Website

The average webpage is over 2mb

Source: http://www.soasta.com/blog/page-bloat-average-web-page-2-mb/

Page 20: Nobody Wants a Slow Website

Source: http://www.soasta.com/blog/page-bloat-average-web-page-2-mb/

Page 21: Nobody Wants a Slow Website

Source: https://css-tricks.com/new-poll-on-performance-culture/

Page 22: Nobody Wants a Slow Website

Performance is especially important because….

Page 23: Nobody Wants a Slow Website

Credit: www.flickr.com/photos/lukew

Page 24: Nobody Wants a Slow Website

About 75% of mobile users consider mobile slower than desktop

About 40% of mobile users are unhappy with their experience

Source: https://content.akamai.com/PG1526-PerformanceMatters.html

Page 25: Nobody Wants a Slow Website

About 20% of Americans depend on smartphones almost exclusively for internet

access…

and out of those, 30% frequently reach their Max Monthly Data Allowance

Page 26: Nobody Wants a Slow Website

My Experiences…

Page 27: Nobody Wants a Slow Website
Page 28: Nobody Wants a Slow Website
Page 29: Nobody Wants a Slow Website
Page 30: Nobody Wants a Slow Website

Measuring Performance

Page 31: Nobody Wants a Slow Website

WebPageTesthttp://www.webpagetest.org/

Page 32: Nobody Wants a Slow Website

WebPageTesthttp://www.webpagetest.org/

Page 33: Nobody Wants a Slow Website

PageSpeed Insightshttps://developers.google.com/speed/pagespeed/insights/

Page 34: Nobody Wants a Slow Website

Chrome DevTools

Page 35: Nobody Wants a Slow Website

Minimize Requests Optimize Requests

Reduce Size

Page 36: Nobody Wants a Slow Website

Minimize Request

Page 37: Nobody Wants a Slow Website

Provide only the goods that the users need

Page 38: Nobody Wants a Slow Website

“The fastest HTTP request is the one not made.”

-Steve Sounders

Page 39: Nobody Wants a Slow Website
Page 40: Nobody Wants a Slow Website

ConcatenateCombine Files

Page 41: Nobody Wants a Slow Website

Video Concatenate

JavaScript

Page 42: Nobody Wants a Slow Website

Video Concatenate

CSS… Just use a preprocessor (Sass)

Page 43: Nobody Wants a Slow Website

Use code instead of graphics/images

Page 44: Nobody Wants a Slow Website

Use Icon Fonts or SVGs

Page 45: Nobody Wants a Slow Website

Optimize Requests

Page 46: Nobody Wants a Slow Website

Caching

Page 47: Nobody Wants a Slow Website

Some hosting companies automatically does this for you

Page 48: Nobody Wants a Slow Website

W3 Total Cachehttps://wordpress.org/plugins/w3-total-cache/

Page 49: Nobody Wants a Slow Website

WP Super Cachehttps://wordpress.org/plugins/wp-super-cache/

Page 50: Nobody Wants a Slow Website

GzipTurn on HTTP Compression

Page 51: Nobody Wants a Slow Website

Check GZIP Compressionhttp://checkgzipcompression.com/

Page 52: Nobody Wants a Slow Website

Manually via .htaccess

Source: https://css-tricks.com/snippets/htaccess/active-gzip-compression/

Page 53: Nobody Wants a Slow Website

W3 Total Cache

Page 54: Nobody Wants a Slow Website

WP Super Cache

Page 55: Nobody Wants a Slow Website

Some hosting companies automatically does this for you

Page 56: Nobody Wants a Slow Website

Reduce Size

Page 57: Nobody Wants a Slow Website

Minify

Page 58: Nobody Wants a Slow Website

Video Concatenate

Minifying CSS

Page 59: Nobody Wants a Slow Website

Video Concatenate

Minifying JavaScript

Page 60: Nobody Wants a Slow Website

WordPress Plugins

• Better WordPress Minify https://wordpress.org/plugins/bwp-minify/

• MinQueue https://wordpress.org/plugins/minqueue/

Page 61: Nobody Wants a Slow Website

Images

Page 62: Nobody Wants a Slow Website

Source: http://www.soasta.com/blog/page-bloat-average-web-page-2-mb/

Page 63: Nobody Wants a Slow Website

Average webpage is little over 2mb and 60% is because of Images

Source: http://www.soasta.com/blog/page-bloat-average-web-page-2-mb/

Page 64: Nobody Wants a Slow Website
Page 65: Nobody Wants a Slow Website

ResizeOptimize

Responsive Images

Page 66: Nobody Wants a Slow Website

Resize Images

• Do not upload raw images on the web

• Find the max width of the content area and use that width to resize your images

• Resize them in bulk

Page 67: Nobody Wants a Slow Website
Page 68: Nobody Wants a Slow Website

Optimize (losslessly) Images

• Apps

• Grunt Tasks

• WordPress Plugins

Page 69: Nobody Wants a Slow Website

ImageOptim

Page 70: Nobody Wants a Slow Website

175 KB

Page 71: Nobody Wants a Slow Website

145 KB

Page 72: Nobody Wants a Slow Website

contrib-imagemin Grunt taskhttps://github.com/gruntjs/grunt-contrib-imagemin

Page 73: Nobody Wants a Slow Website
Page 74: Nobody Wants a Slow Website

WordPress Plugins

• Kraken Image Optimizer https://wordpress.org/plugins/kraken-image-optimizer/

• EWWW Image Optimizer https://wordpress.org/plugins/ewww-image-optimizer/

Page 75: Nobody Wants a Slow Website

Responsive Images

Page 76: Nobody Wants a Slow Website

RICG Responsive Imageshttps://wordpress.org/plugins/ricg-responsive-images/

Page 77: Nobody Wants a Slow Website
Page 78: Nobody Wants a Slow Website
Page 79: Nobody Wants a Slow Website

Recap• Measure Performance

• Minimize request (less request, concatenate, and use CSS/svg/icon fonts instead of graphics)

• Optimize request (cache and Gzip)

• Reduce size (minify and resize/optimize images)

• Automate (use tools like Grunt)

Page 80: Nobody Wants a Slow Website

There are more…

Other techniques that I’m currently looking into:

• Critical CSS

• Improving render times (like animation and fonts)

• Prefetching, Preloading and Prebrowsing

Page 81: Nobody Wants a Slow Website

Non-Technical Challenges

Page 82: Nobody Wants a Slow Website

Source: https://css-tricks.com/new-poll-on-performance-culture/

Page 83: Nobody Wants a Slow Website

Non-Technical Challenges

• Hard to measure (what is considered fast for a project?)

• Having a fast website is a given (never on a RFP or SOW)

• Getting buy-ins from client

• Dealing with “pretty” designs

• “Surprises” during development

Page 84: Nobody Wants a Slow Website

Recommendations• Include Performance during discovery

(competitive analysis)

• Performance budget (want something new? kill something else)

• Styleguide driven development

• Keep talking about it

Page 85: Nobody Wants a Slow Website

Thank YouEmail: [email protected]

Twitter: @SMY315


Recommended