forget amp – make fast sites!

81
Jon Henshaw Forget AMP – Make Fast Sites! @henshaw https://www.slideshare.net/jonhenshaw

Upload: jon-henshaw

Post on 22-Jan-2018

1.249 views

Category:

Marketing


0 download

TRANSCRIPT

Page 1: Forget AMP – Make Fast Sites!

Jon Henshaw

ForgetAMP–MakeFastSites!

@henshawhttps://www.slideshare.net/jonhenshaw

Page 2: Forget AMP – Make Fast Sites!

Al Gore invented the internet

1983

A brief history of the internet

Page 3: Forget AMP – Make Fast Sites!

Al Gore invented the internet

1983

1999

goatse.cx launched and made us question everything we knew

A brief history of the internet

Page 4: Forget AMP – Make Fast Sites!

Al Gore invented the internet

1983 2003ish

Fast internet!

1999

goatse.cx launched and made us question everything we knew

A brief history of the internet

Page 5: Forget AMP – Make Fast Sites!

Al Gore invented the internet

1983 2003ish

Fast internet!

1999

goatse.cx launched and made us question everything we knew

2010ishgive or take 5 years…I’m not good with dates

Marketers and advertisers began their campaign to ruin the internet

A brief history of the internet

Page 6: Forget AMP – Make Fast Sites!

Al Gore invented the internet

1983 2003ish

Fast internet!The ruining of the internet is almost complete

Nowish

1999

goatse.cx launched and made us question everything we knew

2010ishgive or take 5 years…I’m not good with dates

Marketers and advertisers began their campaign to ruin the internet

A brief history of the internet

Page 7: Forget AMP – Make Fast Sites!
Page 8: Forget AMP – Make Fast Sites!

🐴💩

Page 9: Forget AMP – Make Fast Sites!

AMP is Google-centric

Page 10: Forget AMP – Make Fast Sites!

Do you get traffic from sites other than Google?

Page 11: Forget AMP – Make Fast Sites!

✅ Do you get traffic from sites other than Google?

Do you get direct traffic and share your URL offline?

Page 12: Forget AMP – Make Fast Sites!

✅ Do you get traffic from sites other than Google? ✅ Do you get direct traffic?

Do you like having control of your site?

Page 13: Forget AMP – Make Fast Sites!

✅ Do you get traffic from sites other than Google? ✅ Do you get direct traffic? ✅ Do you like having control of your site?

You need a fast site, not AMP

Page 14: Forget AMP – Make Fast Sites!

AMP vs Open Web

Page 15: Forget AMP – Make Fast Sites!
Page 16: Forget AMP – Make Fast Sites!

Forbes AMP post hosted on Google

Page 17: Forget AMP – Make Fast Sites!

Ads

Page 18: Forget AMP – Make Fast Sites!

Persistent overlay ad

Page 19: Forget AMP – Make Fast Sites!

More Ads Every single screen view is interrupted with ads

Page 20: Forget AMP – Make Fast Sites!

MOR ads!!!

😱

Page 21: Forget AMP – Make Fast Sites!
Page 22: Forget AMP – Make Fast Sites!

Simple CTA to signup for email newsletter

Page 23: Forget AMP – Make Fast Sites!

Only one ad after the introduction

Page 24: Forget AMP – Make Fast Sites!

Uninterrupted reading 😍

Page 25: Forget AMP – Make Fast Sites!

“Google’s AMP doesn’t fix bad UX, but it’s great at delivering more ads, FASTER!”

@henshaw #BrightonSEO

Page 26: Forget AMP – Make Fast Sites!

Good UX is a conscious decision

Page 27: Forget AMP – Make Fast Sites!

Why fast sites?

Page 28: Forget AMP – Make Fast Sites!

Fast sites get more traffic and make more money

Page 29: Forget AMP – Make Fast Sites!

How do I make my site fast?

Page 30: Forget AMP – Make Fast Sites!

☑ Refactor the code

Page 31: Forget AMP – Make Fast Sites!

Identify and test which JS and CSS code is actually being used

Page 32: Forget AMP – Make Fast Sites!

Conditionally serve code only on the pages that need it

Page 33: Forget AMP – Make Fast Sites!

Consolidate code that’s used on all pages into one JS and CSS file

Page 34: Forget AMP – Make Fast Sites!

Use inline CSS

Page 35: Forget AMP – Make Fast Sites!

Use inline JS (put at end of page)

Page 36: Forget AMP – Make Fast Sites!

☑ Use System Fonts

Page 37: Forget AMP – Make Fast Sites!

Google’s fonts are great, but they can also slow down your site

Page 38: Forget AMP – Make Fast Sites!

Lato = 1.2MB

😲

Page 39: Forget AMP – Make Fast Sites!

Linked fonts should be used sparingly or not at all

Page 40: Forget AMP – Make Fast Sites!

Use system fonts instead with this CSS code

body { font-family:-apple-system, BlinkMacSystemFont,"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell","Fira Sans", "Droid Sans", "Helvetica Neue",sans-serif; }

Page 41: Forget AMP – Make Fast Sites!

System fonts look great and are optimized for screens

Page 42: Forget AMP – Make Fast Sites!

☑ Optimize images

Page 43: Forget AMP – Make Fast Sites!

Responsive images are not optimized images

Page 44: Forget AMP – Make Fast Sites!

Optimization is serving a different image

Page 45: Forget AMP – Make Fast Sites!

Do it with the SRCSET IMG attribute

Page 46: Forget AMP – Make Fast Sites!

SRCSET can deliver smaller and different images to improve speed and UX

Page 47: Forget AMP – Make Fast Sites!

Smaller versions for mobile

1024px800px

550px360px

Page 48: Forget AMP – Make Fast Sites!

Different versions for mobile

Page 49: Forget AMP – Make Fast Sites!

Versions optimized for UX

Mobile Desktop

Page 50: Forget AMP – Make Fast Sites!

Regular IMG code

<img src=“cat.png” alt="my cat">

Page 51: Forget AMP – Make Fast Sites!

SRCSET is an IMG attribute

<img src="cat.png"alt="my cat" srcset="cat-hd.png 2x, cat-sm.png 320w, cat-sm-hd.png 320w 2x, cat-med.png 768w, cat-med-hd.png 768w 2x" />

Page 52: Forget AMP – Make Fast Sites!

Specify device width

<img src="cat.png"alt="my cat" srcset="cat-hd.png 2x, cat-sm.png 320w, cat-sm-hd.png 320w 2x, cat-med.png 768w, cat-med-hd.png 768w 2x" />

Page 53: Forget AMP – Make Fast Sites!

Specify High DPI

<img src="cat.png"alt="my cat" srcset="cat-hd.png 2x, cat-sm.png 320w, cat-sm-hd.png 320w 2x, cat-med.png 768w, cat-med-hd.png 768w 2x" />

Page 54: Forget AMP – Make Fast Sites!

SRCSET Responsive Images raven.link/srcsetwp

Page 55: Forget AMP – Make Fast Sites!

Reduce and compress image size

Page 56: Forget AMP – Make Fast Sites!

Use SVG for simple images

and icons

Page 57: Forget AMP – Make Fast Sites!

Use PNG for screenshots and

non-complex images

Page 58: Forget AMP – Make Fast Sites!

Use JPG for photos and

complex images

Page 59: Forget AMP – Make Fast Sites!

Compress with ImageOptim raven.link/imageoptim

Page 60: Forget AMP – Make Fast Sites!

Compress with FileOptim raven.link/fileoptim

Page 61: Forget AMP – Make Fast Sites!

EWWW Image Optimizer raven.link/imgoptwp

Page 62: Forget AMP – Make Fast Sites!

☑ Cache, Gzip & HTTP/2

Page 63: Forget AMP – Make Fast Sites!

WP Rocket raven.link/rocket

Page 64: Forget AMP – Make Fast Sites!

Gzip via .htaccess

Page 65: Forget AMP – Make Fast Sites!

Gzip via PHP

Page 66: Forget AMP – Make Fast Sites!

Test Gzip raven.link/gtest

Page 67: Forget AMP – Make Fast Sites!

Gzip Resource raven.link/gzip

Page 68: Forget AMP – Make Fast Sites!

CDN and HTTP/2

Page 69: Forget AMP – Make Fast Sites!

HTTP/1 versus HTTP/2

Page 70: Forget AMP – Make Fast Sites!

HTTP/1 versus HTTP/2

Page 71: Forget AMP – Make Fast Sites!

HTTP/2, CDN, Security, SSL raven.link/freessl

Page 72: Forget AMP – Make Fast Sites!

☑ Improve UX

Page 73: Forget AMP – Make Fast Sites!

A good UX is clear, focused and doesn't overwhelm the visitor

Page 74: Forget AMP – Make Fast Sites!

Pages overloaded with content and numerous ads disorients the visitor

Page 75: Forget AMP – Make Fast Sites!

Focus on the primary purpose and consider a linear presentation of content

Page 76: Forget AMP – Make Fast Sites!

Use Resource Hints to speed up navigation

Page 77: Forget AMP – Make Fast Sites!

Use prefetch to load resources in the background

Page 78: Forget AMP – Make Fast Sites!

<link rel=“prefetch” href=“/js/important.js“ >

Page 79: Forget AMP – Make Fast Sites!

Use prerender for pages you’re confident the user will visit next

Page 80: Forget AMP – Make Fast Sites!

<link rel=“prerender” href=“/tutorial/4/“ >

Page 81: Forget AMP – Make Fast Sites!

Adapted from

makefastsites.com