Staying in the fast lane - tools to keep your site speedy and light

71

Transcript of Staying in the fast lane - tools to keep your site speedy and light

Page 1: Staying in the fast lane - tools to keep your site speedy and light
Page 2: Staying in the fast lane - tools to keep your site speedy and light

STAYING IN THE FAST LANETOOLS TO KEEP YOUR SITE SPEEDY AND LIGHT

@stefanjudis

Page 3: Staying in the fast lane - tools to keep your site speedy and light

DOING NERDY STUFF FOR 4 YEARSMOSTLY ECOMMERCENOW ENTERING THE WORLD OF SPA’S

Page 4: Staying in the fast lane - tools to keep your site speedy and light

https://github.com/stefanjudis

Page 5: Staying in the fast lane - tools to keep your site speedy and light

http://4waisenkinder.de/

Page 6: Staying in the fast lane - tools to keep your site speedy and light

USING IT EVERYWHEREAND ALL THE TIME

Page 7: Staying in the fast lane - tools to keep your site speedy and light

MOBILE IS A THINGhttps://www.flickr.com/photos/31004024@N04/15248248489/in/photostream/

https://www.flickr.com/photos/johnragai/16173931605 https://www.flickr.com/photos/kk/6863172432

Page 8: Staying in the fast lane - tools to keep your site speedy and light

DATA LIMIT IN GERMANY CURRENTLY1GB PER MONTH

DAILY MADNESSIN A FOREIGN COUNTRY

Page 9: Staying in the fast lane - tools to keep your site speedy and light

PERFORMANCE IS A HOT TOPIC

NOT ONLY ON MOBILE BUT ESPECIALLYON MOBILE

Page 10: Staying in the fast lane - tools to keep your site speedy and light

FIREFOX REDUCED AVERAGE LOAD TIME BY 2.2 SECONDSAND INCREASEDDOWNLOADS BY 15.4%10.28 MILLION ADDITIONALDOWNLOADS PER YEAR

http://blog.mozilla.org/metrics/2010/04/05/firefox-page-load-speed-%E2%80%93-part-ii/

Page 11: Staying in the fast lane - tools to keep your site speedy and light

GOOGLE INCREASED PAGE LOAD TIME BY 500 MILLISECONDSGOT 25% FEWER SEARCHES

http://glinden.blogspot.de/2006/11/marissa-mayer-at-web-20.html

Page 12: Staying in the fast lane - tools to keep your site speedy and light

THE GUARDIAN SURVEYED 3000 USERSAND THEY RATED SPEEDSECOND MOST IMPORTANT, ONLY AFTER EASY TO FIND CONTENT

https://speakerdeck.com/patrickhamann/breaking-news-at-1000ms-front-trends-2014

Page 13: Staying in the fast lane - tools to keep your site speedy and light

PERFORMANCE AFFECTS

YOUR BOTTOM LINE

Page 14: Staying in the fast lane - tools to keep your site speedy and light

BUILD UP A PERFORMANCE CULTURE

SET A BUDGETBECOME FASTSTAY FAST

Page 15: Staying in the fast lane - tools to keep your site speedy and light

HOW TOSET A BUDGET

Page 16: Staying in the fast lane - tools to keep your site speedy and light

EVERBODYHAS TO BEON BOARD

Page 17: Staying in the fast lane - tools to keep your site speedy and light

DEFINE YOUR KPI’SPAGE LOAD TIMEPAGE WEIGHTNUMBER OF REQUESTSFIRST PAINTSPEED INDEXGOOGLE PSI SCOREVISUALLY COMPLETE

Page 18: Staying in the fast lane - tools to keep your site speedy and light

SPEED INDEX

Page 19: Staying in the fast lane - tools to keep your site speedy and light

YOU KNOW BESTWHAT IS IMPORTANTFOR YOUR USERS

TWITTER KPI:TIME TO FIRST TWEET

Page 20: Staying in the fast lane - tools to keep your site speedy and light

CHECK WHAT YOU HAVEDON’T MAKE IT WORSE

Page 21: Staying in the fast lane - tools to keep your site speedy and light

MY ANSWER TO HOWFAST IS FAST ENOUGH?

A SPEED INDEXOF UNDER 1000.

@paul_irish

Page 22: Staying in the fast lane - tools to keep your site speedy and light

WHAT HAPPENSIF SOMETHINGDOES NOT FITWITHIN THEBUDGET

Page 23: Staying in the fast lane - tools to keep your site speedy and light

OPTIMIZE AN EXISTING FEATURE OR ASSET ON THE PAGE

Page 24: Staying in the fast lane - tools to keep your site speedy and light

REMOVE AN EXISTING FEATURE OR ASSET ON THE PAGE

Page 25: Staying in the fast lane - tools to keep your site speedy and light

DO NOT ADD THE NEWFEATURE OR ASSET

Page 26: Staying in the fast lane - tools to keep your site speedy and light

http://vimeo.com/108328247

Page 27: Staying in the fast lane - tools to keep your site speedy and light

HOW TOBECOME FAST

Page 28: Staying in the fast lane - tools to keep your site speedy and light

CONCAT MINIFYABOVE THE FOLD UGLIFY COMPRESSSPRITE INLINE

Page 29: Staying in the fast lane - tools to keep your site speedy and light
Page 30: Staying in the fast lane - tools to keep your site speedy and light

BUILD ALLTHE THINGS

Page 31: Staying in the fast lane - tools to keep your site speedy and light

“YAY, WE SAVED 200KBDOING THIS AND THAT!”

“HMM, WE’VE GOT A SUPER SLOW LANDING PAGE THERE.WHEN DID THAT HAPPEN?”

IT’S A NEVER ENDING STORY!

Page 32: Staying in the fast lane - tools to keep your site speedy and light

HOW TOSTAY FAST

Page 33: Staying in the fast lane - tools to keep your site speedy and light

AUTOMATEMONITORVISUALIZE

Page 34: Staying in the fast lane - tools to keep your site speedy and light

REAL USERMEASUREMENT

- RUM -SYNTHETIC PERFORMANCETESTING

vs

http://www.soasta.com/the-performance-beacon/synthetic-real-user-measurement-monitoring-rum/

Page 35: Staying in the fast lane - tools to keep your site speedy and light

- RUM -

Page 36: Staying in the fast lane - tools to keep your site speedy and light

WHAT ARE YOUR USERS’ ENVIRONMENTS?HOW DO USERS MOVETHROUGH YOUR SITE?WHAT IMPACT DOES PERFORMANCE HAVE ON YOUR ACTUAL BUSINESS?

Page 37: Staying in the fast lane - tools to keep your site speedy and light

http://www.google.com/analytics/

RUM

Page 38: Staying in the fast lane - tools to keep your site speedy and light

RUM

Page 39: Staying in the fast lane - tools to keep your site speedy and light

YOU CAN’T MEASURE COMPETITORS

YOU CAN’T MEASUREPRE-PRODUCTION SITESDIVING DEEP INTOPERFORMANCE ANALYSISCAN BE TRICKY

Page 40: Staying in the fast lane - tools to keep your site speedy and light

SYNTHETIC PERFORMANCE

TESTING

Page 41: Staying in the fast lane - tools to keep your site speedy and light

HOW DO YOU COMPARE TO YOUR COMPETITORS?HOW DOES THE NEWEST VERSION OF YOUR SITE COMPARE TO PREVIOUS VERSIONS?HOW WELL ARE YOU STICKINGTO YOUR PERFORMANCE BUDGET?

Page 42: Staying in the fast lane - tools to keep your site speedy and light

PERFECT FOR

AUTOMATION!

Page 43: Staying in the fast lane - tools to keep your site speedy and light

https://developers.google.com/speed/pagespeed/insights/

SPT

Page 44: Staying in the fast lane - tools to keep your site speedy and light

SPT

Page 45: Staying in the fast lane - tools to keep your site speedy and light

http://www.webpagetest.org/

SPT

Page 46: Staying in the fast lane - tools to keep your site speedy and light

SPT

Page 47: Staying in the fast lane - tools to keep your site speedy and light

SPT

Page 48: Staying in the fast lane - tools to keep your site speedy and light

https://github.com/tkadlec/grunt-perfbudget

SPT

Page 49: Staying in the fast lane - tools to keep your site speedy and light

SPT

Page 51: Staying in the fast lane - tools to keep your site speedy and light

THERE IS ONETHING TO MENTIONTHE PUBLIC WEBPAGETEST

API IS LIMITED

Page 52: Staying in the fast lane - tools to keep your site speedy and light

http://calendar.perfplanet.com/2014/free-webpagetest-api-keys/

Page 53: Staying in the fast lane - tools to keep your site speedy and light

http://speedcurve.com

SPT

Page 54: Staying in the fast lane - tools to keep your site speedy and light

SPT

Page 55: Staying in the fast lane - tools to keep your site speedy and light

https://calibreapp.com/

SPT

Page 56: Staying in the fast lane - tools to keep your site speedy and light

SPT

Page 57: Staying in the fast lane - tools to keep your site speedy and light

http://www.sitespeed.io/

SPT

Page 58: Staying in the fast lane - tools to keep your site speedy and light

SPT

Page 59: Staying in the fast lane - tools to keep your site speedy and light

SPT

Page 60: Staying in the fast lane - tools to keep your site speedy and light

SPT

Page 61: Staying in the fast lane - tools to keep your site speedy and light

$ sitespeed.io -u http://www.smashingmagazine.com -b firefox --budget budget.json

SPT

Page 62: Staying in the fast lane - tools to keep your site speedy and light

SPT

Page 63: Staying in the fast lane - tools to keep your site speedy and light

SPT

http://www.peterhedenskog.com/blog/2015/04/open-source-performance-dashboard/

Page 64: Staying in the fast lane - tools to keep your site speedy and light

https://github.com/stefanjudis/grunt-phantomas

SPT

Page 65: Staying in the fast lane - tools to keep your site speedy and light

SPT

Page 66: Staying in the fast lane - tools to keep your site speedy and light

THERE ARE TONS OFRESOURCES OUT THEREAND IT IS HARD TO KEEP

TRACK OF ALL OF THEM

Page 67: Staying in the fast lane - tools to keep your site speedy and light

http://perf-tooling.today/

Page 68: Staying in the fast lane - tools to keep your site speedy and light

WE ARE EXCITEDABOUT YOUR CONTRIBUTIONS.

Page 69: Staying in the fast lane - tools to keep your site speedy and light

GO STEP BY STEPSTART MONITORING

IMPROVE

Page 70: Staying in the fast lane - tools to keep your site speedy and light

DON’T RELY ON WHATYOU THINK YOU KNOW.

PROVE IT.“

@benschwarz@stefanjudis

&

SHARE IT.SHOW IT.

Page 71: Staying in the fast lane - tools to keep your site speedy and light

THANKS.QUESTIONS?

http://bit.ly/staying-in-the-fast-lane