product advisor, technical seo,

73

Upload: others

Post on 23-Feb-2022

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Product Advisor, Technical SEO,
Page 2: Product Advisor, Technical SEO,

@patrickstox

Product Advisor, Technical SEO, &

Brand Ambassador at

• I write for Ahrefs blog but have written for many industry

publications in the past

• I speak at a lot of conferences like SMX, Pubcon, UnGagged,

TechSEO Boost

• Organizer for the Raleigh SEO Meetup (most successful in US) and

the Beer & SEO Meetup

• We also run a conference, the Raleigh SEO Conference

• Founder Technical SEO Slack Group

• Moderator /r/TechSEO on Reddit

• Helped define the role of Search Marketing Strategist for the US

Department of Labor

• Lead author for the SEO Chapter of the 2021 Web Almanac

Who is Patrick Stox?

Page 3: Product Advisor, Technical SEO,

@patrickstox

Mid-June to late August rollout

The Page Experience Update Is Done Rolling Out

Page 4: Product Advisor, Technical SEO,

@patrickstox

Is This New?

Page 5: Product Advisor, Technical SEO,

@patrickstox

2010 - Page Speed Desktop

2014 - HTTPS

2015 - Mobile Friendly

2017 - No Intrusive Interstitials

2018 - Page Speed Mobile

2021 – Core Web Vitals (Mobile)

Yes and No

Page 6: Product Advisor, Technical SEO,

@patrickstox

https://twitter.com/jeffjose/status/1394776921121067012

Page 7: Product Advisor, Technical SEO,

@patrickstox

AMP No Longer Required For Top Stories

Page 8: Product Advisor, Technical SEO,

@patrickstox

Should you work on them?

Page Experience Signals Are Small Ranking Signals

Page 9: Product Advisor, Technical SEO,

@patrickstox

Image Credits: Google I/O 2021

Page 10: Product Advisor, Technical SEO,

@patrickstox

Page Experience Report In Google Search Console

Page 11: Product Advisor, Technical SEO,

@patrickstox

Mobile-Friendly

Page 12: Product Advisor, Technical SEO,

@patrickstox

https://almanac.httparchive.org/en/2020/seo

10.84% Of Mobile Sites Are Probably Not Mobile Friendly

Page 13: Product Advisor, Technical SEO,

@patrickstox

Bulk Checker In Google Search ConsoleMobile Usability Report

Page 14: Product Advisor, Technical SEO,

@patrickstox

Mobile-Friendly TestSingle Page Check

Page 15: Product Advisor, Technical SEO,

@patrickstox

In robots.txt add:

User-Agent: Googlebot

Allow: .js

Allow: .css

Don’t Block CSS Or JS Files

Page 16: Product Advisor, Technical SEO,

@patrickstox

Google is shifting how they index content from the desktop

to the mobile version of sites

This started in 2016 and is nearly done

Mobile-First Indexing

Page 17: Product Advisor, Technical SEO,

@patrickstox

HTTPS

• Authentication

• Data Integrity

• Encryption

Page 18: Product Advisor, Technical SEO,

@patrickstox

HTTPS Check

Page 19: Product Advisor, Technical SEO,

@patrickstox

• Source: https://almanac.httparchive.org/en/2020/seo

Page 20: Product Advisor, Technical SEO,

@patrickstox

https://twitter.com/patrickstox/status/1289949065606606857

HTTPS – Uncommon SEO Knowledge

Page 21: Product Advisor, Technical SEO,

@patrickstox

HTTPS Is Required For Many Modern Technologies

• HTTP/2, HTTP/3

• Accelerated Mobile Pages (AMP)

• Progressive Web Apps (PWAs)

• Service Workers

• Geolocation

• Push Notifications

Page 22: Product Advisor, Technical SEO,

@patrickstox

Make sure content on the page is easily accessible to the

user.

No Intrusive Interstitials

Page 23: Product Advisor, Technical SEO,

@patrickstox

Page 24: Product Advisor, Technical SEO,

@patrickstox

Legal notices for cookies or age consent

Banners that use a reasonable amount of screen space and

can be dismissed

What Doesn’t Count Against You

Page 25: Product Advisor, Technical SEO,

@patrickstox

Core Web Vitals

Page 26: Product Advisor, Technical SEO,

@patrickstox

From Google Webmaster Trends Analyst John Mueller

Page 27: Product Advisor, Technical SEO,

@patrickstox

Source: web.dev/vitals

Largest Contentful Paint (LCP)

Page 28: Product Advisor, Technical SEO,

@patrickstox

It’s usually going to be a featured image, text, or maybe the

<h1> tag

LCP Is The Largest Visible Element Loaded In The Viewport

Page 29: Product Advisor, Technical SEO,

@patrickstox

• <img> element

• <image> element inside an <svg> element

• The image inside a <video> element

• Background image loaded with the url() function

• Blocks of text

• <svg> and <video> may be added in the future.

But LCP Can Be Any Of These

Page 30: Product Advisor, Technical SEO,

@patrickstox

How To See The LCP Element In PageSpeed Insights

Page 31: Product Advisor, Technical SEO,

@patrickstox

How To See The LCP Element in DevTools

Performance > check “Screenshots”

Click ‘Start profiling and reload page’

LCP is on the timing graph

Click the node; this is the element for LCP

Page 32: Product Advisor, Technical SEO,

@patrickstoxSource: web.dev/vitals

First Input Delay (FID)

Page 33: Product Advisor, Technical SEO,

@patrickstox

FID is the time from when a user interacts with your page

until the page can respond. You can also think of it as

responsiveness.

What Is FID?

Page 34: Product Advisor, Technical SEO,

@patrickstox

Counted

• Clicking on a link or button

• Inputting text into a blank field

• Selecting a drop-down menu

• Clicking a checkbox

What Counts As An Interaction?

Not Counted

• Scroll

• Zoom

Page 35: Product Advisor, Technical SEO,

@patrickstox

Avoid Long Tasks

Page 36: Product Advisor, Technical SEO,

@patrickstox

How To See Long Tasks In PageSpeed Insights

Page 37: Product Advisor, Technical SEO,

@patrickstoxSource: web.dev/vitals

Cumulative Layout Shift (CLS)

Page 38: Product Advisor, Technical SEO,

@patrickstox

CLS measures how elements move around or how stable the

page layout is.

What Is CLS?

Page 39: Product Advisor, Technical SEO,

@patrickstox

Simply: It's the 5 second timeframe where the most shifting

occurs

https://web.dev/evolving-cls/

Cumulative Layout Shift (CLS) Was Changed Recently

Page 40: Product Advisor, Technical SEO,

@patrickstox

• Images without dimensions

• Ads, embeds, and iframes without dimensions

• Injecting content with JavaScript

• Applying fonts or styles late in the load

Basically things get added during the page load and move

other things around.

What Causes CLS?

Page 41: Product Advisor, Technical SEO,

@patrickstox

How To See CLS in PageSpeed Insights

Page 42: Product Advisor, Technical SEO,

@patrickstox

How To See CLS in WebPageTest Filmstrip View

Options:

Highlight Layout Shifts

Thumbnail Size: Huge

Thumbnail Interval: 0.1 sec

Page 43: Product Advisor, Technical SEO,

@patrickstox

How To See CLS in defaced.dev

Layout Shift GIF Generator

Page 44: Product Advisor, Technical SEO,

@patrickstox

https://ahrefs.com/blog/advanced-pagespeed-guide/

Speed Is A Complex Topic

Page 45: Product Advisor, Technical SEO,

@patrickstox

People Waited Until The Last Minute To Work On This

Data from CrUX - Real user data

Page 46: Product Advisor, Technical SEO,

@patrickstox

Tools To Measure

Page 47: Product Advisor, Technical SEO,

@patrickstox

Both Lab And Field Data For Multiple Pages

Page 48: Product Advisor, Technical SEO,

@patrickstox

https://ahrefs.com/awt

Site Audit, Rankings, Links & More, FREE

Page 49: Product Advisor, Technical SEO,

@patrickstoxCore Web Vitals report in Google Search Console

Easiest Way To See CWV For Your Site

Page 50: Product Advisor, Technical SEO,

@patrickstox

Specific Issues

Page 51: Product Advisor, Technical SEO,

@patrickstox

So How Do I Make My Site Load Faster?

Page 52: Product Advisor, Technical SEO,

@patrickstox

The smallest page:

<!DOCTYPE HTML>

If you need JavaScript:

<!DOCTYPE HTML><html></html>

Basic Concept #1 - Smaller Is Faster

Page 53: Product Advisor, Technical SEO,

@patrickstox

Page 54: Product Advisor, Technical SEO,

@patrickstox

Images: Do you need it? If so, optimize size + quality

CSS: Remove unused CSS, Minify CSS

Fonts: System fonts over custom fonts if possible

JS: Remove unused JS, Minify JS

HTML: Minify

Get Rid Of Unused Things & Make The Rest Smaller

Page 55: Product Advisor, Technical SEO,

@patrickstox

Use a CDN

Basic Concept #2 – Location Matters

Page 56: Product Advisor, Technical SEO,

@patrickstox

Note the delay for each additional connection

Basic Concept #3 – Use The Same Server If Possible

Page 57: Product Advisor, Technical SEO,

@patrickstox

These start the connections earlier if you need to connect to

3rd parties.

<link rel="preconnect" href="https://site.com">

<link rel="dns-prefetch" href="//asset1.com">

Preconnect and DNS-Prefetch

Page 58: Product Advisor, Technical SEO,

@patrickstox

Basic Concept #4 – Caching

1st load 2nd load

Page 59: Product Advisor, Technical SEO,

@patrickstox

AMP pages clicked from search are prefetched and cached.

Now you can do this with Signed Exchanges for any site.

https://web.dev/signed-exchanges/

AMP’s Magic Trick

Page 60: Product Advisor, Technical SEO,

@patrickstox

Goal: Load things people see first, then load other things.

Basic Concept #5 – Prioritization Of Resources

Page 61: Product Advisor, Technical SEO,

@patrickstox

Preload images above the fold

<link rel="preload" as="image" href=“cat.jpg"

imagesrcset=“cat_400px.jpg 400w,

cat_800px.jpg 800w, cat_1600px.jpg 1600w"

imagesizes="50vw">

Images - Early

Page 62: Product Advisor, Technical SEO,

@patrickstox

Set height and width of images

<img src=“cat.jpg" width="640" height="360" alt=“cat with

string" />

Reserve the maximum space needed for ads

CLS Specific – Include Sizes

Page 63: Product Advisor, Technical SEO,

@patrickstox

Lazy Load

<img src=“cat.jpg" alt=“cat" loading="lazy">

Images - Late

Page 64: Product Advisor, Technical SEO,

@patrickstox

Inline Critical CSS

CSS - Early

Page 65: Product Advisor, Technical SEO,

@patrickstox

Inline

Page 66: Product Advisor, Technical SEO,

@patrickstox

Defer non-critical CSS

<link rel="preload" href="stylesheet.css"

as="style" onload="this.rel='stylesheet'">

CSS - Late

Page 67: Product Advisor, Technical SEO,

@patrickstox

Best: System fonts over custom fonts if possible, if not:

Good: font-display: optional

Maybe: font-display: swap

Okay: Preload

Fonts

Page 68: Product Advisor, Technical SEO,

@patrickstox

Prioritize what’s needed for the site to function only, inline

or preload

Pre-render or server-side rendering if needed

JavaScript - Early

Page 69: Product Advisor, Technical SEO,

@patrickstox

Break up long tasks – code splitting

JavaScript Throughout

Page 70: Product Advisor, Technical SEO,

@patrickstox

JavaScript - Late

Page 71: Product Advisor, Technical SEO,

@patrickstox

JavaScript - Late

Normal:

<script src="https://www.domain.com/file.js"></script>

Async:

<script src="https://www.domain.com/file.js"

async></script>

Defer:

<script src="https://www.domain.com/file.js"

defer></script>

Page 72: Product Advisor, Technical SEO,

@patrickstox

Make a static copy on your own server and test performance

improvements of changes

https://youtu.be/ULJ-2AUdZYQ

Estimate Impact Of Changes

Page 73: Product Advisor, Technical SEO,

@patrickstox