SlideShare ist ein Scribd-Unternehmen logo
1 von 69
Agenda
1. Why should we bother with JS?
2. Indexing JS content
3. What are Core Web Vitals?
4.How to pass Core Web Vitals?
5.Most common JS issues and solutions
6.Example of fixing JS issues and influence on
CWV
7. How to audit Core Web Vitals?
8.How to avoid JS mistakes
Why bother ?
as much as 80% of the popular
eCommerce stores in the USA use
JavaScript for generating main
content or links to similar products.
-Onely
Indexing JavaScript
https://www.youtube.com/watch?v=LXF8bM4g-J4
What are Core Web Vitals?
1.Largest Contentful
Paint
2. First Input
Delay
3. Cumulative
Layout Shift
Metrics related to Speed
Responsiveness and Visual Stability.
1. Largest Contentful Paint
It measures the time a website takes to
show the user the largest content on the
screen.
2. First Input Delay
Measures the time from the first user
interaction to the point when the browser is
able to respond to it.
3. Cumulative Layout Shift
It measures how often user experience
unexpected layout shifts.
Why are core web vitals important ?
Core Web Vitals
are part of page
experience a
new ranking
factor.
How to pass Core Web Vitals?
Analysis of pages across various
industries not passing CWV
No of
pages
Failing
CWV
Failing
LCP
Failing FID Failing
CLS
JavaScript
Issues
22 19 17 2 12 22
The problem is not JS itself, but the
way it is implemented.
Most common JS issues
discovered
1.Unused Javascript
2.Too long JavaScript
execution time
3.Render blocking
resources
4. Legacy javascript served
to modern browsers
How to deal with most common
JS issues?
Unless you are very familiar with dev work…
find a good developer to help you through it
1.Unused JavaScript
By default, JavaScript files are
render-blocking because they
block the browser from dealing
with other page load tasks, thus
delaying your page's First Paint.
Unused JavaScript
unnecessarily increases
browser execution time, slowing
down your page load.
What if browser is loading unused JS resources before your LCP
!?
What if unused JS is loaded
before my LCP???
How to solve unused JS issue?
Code splitting
Separate JS into critical and non-
critical. This will lead to reducing
render blocking behaviour as only
critical JS is loaded first.
This is the process of removing all JS
that your page isn't currently using.
For example pieces of code from
previous site versions, or code used
during tests.
Dead code elimination
2.Too long JavaScript execution
time
Reducing JavaScript execution
time,in general, refers to
decreasing the amount of time
spent parsing, compiling, and
executing JavaScript files.
By default, JavaScript executes
on the main-thread and when
this is happening, the browser
cannot execute other tasks.
Optimising FID is mainly done by
reducing the time during which the
browser's main thread is blocked!
How to reduce JS execution
time?
● Implement code splitting
● Removing unused code
● Caching your code with the PRPL
pattern
● Minifying and compressing JS files
● Push (or preload) the most important
resources.
● Render the initial route as soon as possible.
● Pre-cache remaining assets.
● Lazy load other routes and non-critical assets.
PRPL pattern
Minification - removing whitespace
and anything else that is not
necessary to create smaller but valid
code.
Minifying JS files
Compression - modifying data with
compression algorithm.
● Dynamic - compressing assets on the go
as they get requested by the browser.
● Static- compressing and saving assets.
Compressing JS files
3.Render blocking resources
Render blocking resources are
parts of code in website files that
prevent a page from loading
quickly.
Identifying render blocking resources
Identifying critical resources
How to eliminate render blocking
resources
● JS at the bottom of HTML
● Async or defer attribute
● Custom solutions
● Plugins
JS at the bottom of HTML document,
it's considered best practice as the
higher the code is the sooner it will be
downloaded and executed.
JS at the bottom of the HTML
● Async - load JS asynchronously AND fetch
script when resources become available, once
downloaded HTML is paused to execute JS
● Defer - load JS asynchronously AND wait to
execute JS until the HTML parsing is
complete
Async or defer attribute
4.Legacy javascript served to
modern browsers
Unnecessary legacy code is often being
shipped to modern browsers even
though they have native support for
modern JavaScript features
….this increases
the size of the
JavaScript files
being downloaded,
parsed, and
executed by the
browser.
Adopting a modern script
deployment strategy can reduce
the amount of code shipped to the
majority of your visitors,
improving their page experience.
JS is a fundamental part of the
web.
So should be JS SEO
Properly optimised
JS can lead to way
better performance
and user
experience.
EXAMPLE !!!
Creatos Media Speed lack of performance...
And again
And again
CWV before I started working on this preso
Eliminating render blocking with WP Rocket plugin
Eliminating render blocking with WP Rocket plugin
Unused JavaScript
CWV after WP Rocket
How to audit core web vitals
Screaming
Frog
Sitebulb
How to avoid JS mistakes ?
Write your own code or use
lightweight code instead of using
bloated plugins and addons.
If possible, include only what you
have to
Always minify and compress
JavaScript straight away.
Delete everything that is not
needed in the production
Resources
https://www.searchenginejournal.com/identify-reduce-render-blocking-
resources/316365/
https://web.dev/
https://searchengineland.com/how-to-audit-core-web-vitals-346076
https://www.onely.com/blog/ultimate-guide-javascript-seo/
https://developers.google.com/search/docs/guides/javascript-seo-basics
https://sitebulb.com/resources/guides/how-javascript-rendering-affects-google-
indexing/
Thank you !
Thanks for listening to my talk!
If you have any questions or comments or just want to have a chat,
please contact me !
Email: izabela@creatosmedia.co.uk
Twitter @izzy_cm

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Solving Complex JavaScript Issues and Leveraging Semantic HTML5
Solving Complex JavaScript Issues and Leveraging Semantic HTML5Solving Complex JavaScript Issues and Leveraging Semantic HTML5
Solving Complex JavaScript Issues and Leveraging Semantic HTML5
 
Deep crawl the chaotic landscape of JavaScript
Deep crawl the chaotic landscape of JavaScript Deep crawl the chaotic landscape of JavaScript
Deep crawl the chaotic landscape of JavaScript
 
SEO for Large/Enterprise Websites - Data & Tech Side
SEO for Large/Enterprise Websites - Data & Tech SideSEO for Large/Enterprise Websites - Data & Tech Side
SEO for Large/Enterprise Websites - Data & Tech Side
 
SEO for Large Websites
SEO for Large WebsitesSEO for Large Websites
SEO for Large Websites
 
Three site speed optimisation tips to make your website REALLY fast - Brighto...
Three site speed optimisation tips to make your website REALLY fast - Brighto...Three site speed optimisation tips to make your website REALLY fast - Brighto...
Three site speed optimisation tips to make your website REALLY fast - Brighto...
 
How Googlebot Renders (Roleplaying as Google's Web Rendering Service-- D&D st...
How Googlebot Renders (Roleplaying as Google's Web Rendering Service-- D&D st...How Googlebot Renders (Roleplaying as Google's Web Rendering Service-- D&D st...
How Googlebot Renders (Roleplaying as Google's Web Rendering Service-- D&D st...
 
The New Renaissance of JavaScript
The New Renaissance of JavaScriptThe New Renaissance of JavaScript
The New Renaissance of JavaScript
 
Rendering SEO (explained by Google's Martin Splitt)
Rendering SEO (explained by Google's Martin Splitt)Rendering SEO (explained by Google's Martin Splitt)
Rendering SEO (explained by Google's Martin Splitt)
 
Web Performance & Search Engines - A look beyond rankings
Web Performance & Search Engines - A look beyond rankingsWeb Performance & Search Engines - A look beyond rankings
Web Performance & Search Engines - A look beyond rankings
 
TechSEO Boost 2021 - Rendering Strategies: Measuring the Devil’s Details in C...
TechSEO Boost 2021 - Rendering Strategies: Measuring the Devil’s Details in C...TechSEO Boost 2021 - Rendering Strategies: Measuring the Devil’s Details in C...
TechSEO Boost 2021 - Rendering Strategies: Measuring the Devil’s Details in C...
 
Hey Googlebot, did you cache that ?
Hey Googlebot, did you cache that ?Hey Googlebot, did you cache that ?
Hey Googlebot, did you cache that ?
 
JavaScript Tips & Tricks 2018 - SMX East
JavaScript Tips & Tricks 2018 - SMX EastJavaScript Tips & Tricks 2018 - SMX East
JavaScript Tips & Tricks 2018 - SMX East
 
How Much Content is Not Indexed in Google in 2019?
How Much Content is Not Indexed in Google in 2019?How Much Content is Not Indexed in Google in 2019?
How Much Content is Not Indexed in Google in 2019?
 
How App Indexation Works
How App Indexation WorksHow App Indexation Works
How App Indexation Works
 
Dynamic Rendering - is this really an SEO silver bullet? SMX WEST
Dynamic Rendering - is this really an SEO silver bullet? SMX WESTDynamic Rendering - is this really an SEO silver bullet? SMX WEST
Dynamic Rendering - is this really an SEO silver bullet? SMX WEST
 
Use Google Docs to monitor SEO by pulling in Google Analytics #BrightonSEO
Use Google Docs to monitor SEO by pulling in Google Analytics #BrightonSEOUse Google Docs to monitor SEO by pulling in Google Analytics #BrightonSEO
Use Google Docs to monitor SEO by pulling in Google Analytics #BrightonSEO
 
The State of the Web: Pagination and Infinite Scroll
The State of the Web: Pagination and Infinite ScrollThe State of the Web: Pagination and Infinite Scroll
The State of the Web: Pagination and Infinite Scroll
 
The New Renaissance of JavaScript - SMX London 2019
The New Renaissance of JavaScript - SMX London 2019The New Renaissance of JavaScript - SMX London 2019
The New Renaissance of JavaScript - SMX London 2019
 
How to construct your own SEO a b split tests (for free) - BrightonSEO July 2021
How to construct your own SEO a b split tests (for free) - BrightonSEO July 2021How to construct your own SEO a b split tests (for free) - BrightonSEO July 2021
How to construct your own SEO a b split tests (for free) - BrightonSEO July 2021
 
AMP - SMX München 2018
AMP - SMX München 2018AMP - SMX München 2018
AMP - SMX München 2018
 

Ähnlich wie Brighton SEO July 2021 How JavaScript is preventing you from passing Core Web Vitals ?

Web Client Performance
Web Client PerformanceWeb Client Performance
Web Client Performance
Herea Adrian
 

Ähnlich wie Brighton SEO July 2021 How JavaScript is preventing you from passing Core Web Vitals ? (20)

Search Oxford March 2022 - Most common ecommerce mistakes that are killing yo...
Search Oxford March 2022 - Most common ecommerce mistakes that are killing yo...Search Oxford March 2022 - Most common ecommerce mistakes that are killing yo...
Search Oxford March 2022 - Most common ecommerce mistakes that are killing yo...
 
PrairieDevCon 2014 - Web Doesn't Mean Slow
PrairieDevCon 2014 -  Web Doesn't Mean SlowPrairieDevCon 2014 -  Web Doesn't Mean Slow
PrairieDevCon 2014 - Web Doesn't Mean Slow
 
Web Client Performance
Web Client PerformanceWeb Client Performance
Web Client Performance
 
Java script Session No 1
Java script Session No 1Java script Session No 1
Java script Session No 1
 
wt mod3.pdf
wt mod3.pdfwt mod3.pdf
wt mod3.pdf
 
Javascript & Jquery
Javascript & JqueryJavascript & Jquery
Javascript & Jquery
 
The Superhero’s Method of Modern HTML5 Development by RapidValue Solutions
The Superhero’s Method of Modern HTML5 Development by RapidValue SolutionsThe Superhero’s Method of Modern HTML5 Development by RapidValue Solutions
The Superhero’s Method of Modern HTML5 Development by RapidValue Solutions
 
An Introduction to Pagespeed Optimisation
An Introduction to Pagespeed OptimisationAn Introduction to Pagespeed Optimisation
An Introduction to Pagespeed Optimisation
 
Tips tricks deliver_high_performing_secure_web_pages
Tips tricks deliver_high_performing_secure_web_pagesTips tricks deliver_high_performing_secure_web_pages
Tips tricks deliver_high_performing_secure_web_pages
 
implement lighthouse-ci with your web development workflow
implement lighthouse-ci with your web development workflowimplement lighthouse-ci with your web development workflow
implement lighthouse-ci with your web development workflow
 
Performace optimization (increase website speed)
Performace optimization (increase website speed)Performace optimization (increase website speed)
Performace optimization (increase website speed)
 
JS digest. Decemebr 2017
JS digest. Decemebr 2017JS digest. Decemebr 2017
JS digest. Decemebr 2017
 
Developing high performance and responsive web apps using web worker
Developing high performance and responsive web apps using web workerDeveloping high performance and responsive web apps using web worker
Developing high performance and responsive web apps using web worker
 
DrupalCampLA 2011 - Drupal frontend-optimizing
DrupalCampLA 2011 - Drupal frontend-optimizingDrupalCampLA 2011 - Drupal frontend-optimizing
DrupalCampLA 2011 - Drupal frontend-optimizing
 
How to speed up your website
How to speed up your websiteHow to speed up your website
How to speed up your website
 
Cache is keeping you from reaching the full potential as a developer (word ca...
Cache is keeping you from reaching the full potential as a developer (word ca...Cache is keeping you from reaching the full potential as a developer (word ca...
Cache is keeping you from reaching the full potential as a developer (word ca...
 
Single page applications
Single page applicationsSingle page applications
Single page applications
 
Introduction to Jquery
Introduction to JqueryIntroduction to Jquery
Introduction to Jquery
 
Performance Tuning Web Apps - The Need For Speed
Performance Tuning Web Apps - The Need For SpeedPerformance Tuning Web Apps - The Need For Speed
Performance Tuning Web Apps - The Need For Speed
 
Core Web Vitals in Website Design.pdf
Core Web Vitals in Website Design.pdfCore Web Vitals in Website Design.pdf
Core Web Vitals in Website Design.pdf
 

Kürzlich hochgeladen

Brand experience Peoria City Soccer Presentation.pdf
Brand experience Peoria City Soccer Presentation.pdfBrand experience Peoria City Soccer Presentation.pdf
Brand experience Peoria City Soccer Presentation.pdf
tbatkhuu1
 

Kürzlich hochgeladen (20)

Major SEO Trends in 2024 - Banyanbrain Digital
Major SEO Trends in 2024 - Banyanbrain DigitalMajor SEO Trends in 2024 - Banyanbrain Digital
Major SEO Trends in 2024 - Banyanbrain Digital
 
Enjoy Night⚡Call Girls Dlf City Phase 4 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 4 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 4 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 4 Gurgaon >༒8448380779 Escort Service
 
Situation Analysis | Management Company.
Situation Analysis | Management Company.Situation Analysis | Management Company.
Situation Analysis | Management Company.
 
Creator Influencer Strategy Master Class - Corinne Rose Guirgis
Creator Influencer Strategy Master Class - Corinne Rose GuirgisCreator Influencer Strategy Master Class - Corinne Rose Guirgis
Creator Influencer Strategy Master Class - Corinne Rose Guirgis
 
What is Google Search Console and What is it provide?
What is Google Search Console and What is it provide?What is Google Search Console and What is it provide?
What is Google Search Console and What is it provide?
 
Factors-Influencing-Branding-Strategies.pptx
Factors-Influencing-Branding-Strategies.pptxFactors-Influencing-Branding-Strategies.pptx
Factors-Influencing-Branding-Strategies.pptx
 
Kraft Mac and Cheese campaign presentation
Kraft Mac and Cheese campaign presentationKraft Mac and Cheese campaign presentation
Kraft Mac and Cheese campaign presentation
 
Brand experience Peoria City Soccer Presentation.pdf
Brand experience Peoria City Soccer Presentation.pdfBrand experience Peoria City Soccer Presentation.pdf
Brand experience Peoria City Soccer Presentation.pdf
 
personal branding kit for music business
personal branding kit for music businesspersonal branding kit for music business
personal branding kit for music business
 
Digital Strategy Master Class - Andrew Rupert
Digital Strategy Master Class - Andrew RupertDigital Strategy Master Class - Andrew Rupert
Digital Strategy Master Class - Andrew Rupert
 
Google 3rd-Party Cookie Deprecation [Update] + 5 Best Strategies
Google 3rd-Party Cookie Deprecation [Update] + 5 Best StrategiesGoogle 3rd-Party Cookie Deprecation [Update] + 5 Best Strategies
Google 3rd-Party Cookie Deprecation [Update] + 5 Best Strategies
 
The Future of Brands on LinkedIn - Alison Kaltman
The Future of Brands on LinkedIn - Alison KaltmanThe Future of Brands on LinkedIn - Alison Kaltman
The Future of Brands on LinkedIn - Alison Kaltman
 
Cash payment girl 9257726604 Hand ✋ to Hand over girl
Cash payment girl 9257726604 Hand ✋ to Hand over girlCash payment girl 9257726604 Hand ✋ to Hand over girl
Cash payment girl 9257726604 Hand ✋ to Hand over girl
 
Turn Digital Reputation Threats into Offense Tactics - Daniel Lemin
Turn Digital Reputation Threats into Offense Tactics - Daniel LeminTurn Digital Reputation Threats into Offense Tactics - Daniel Lemin
Turn Digital Reputation Threats into Offense Tactics - Daniel Lemin
 
Defining Marketing for the 21st Century,kotler
Defining Marketing for the 21st Century,kotlerDefining Marketing for the 21st Century,kotler
Defining Marketing for the 21st Century,kotler
 
No Cookies No Problem - Steve Krull, Be Found Online
No Cookies No Problem - Steve Krull, Be Found OnlineNo Cookies No Problem - Steve Krull, Be Found Online
No Cookies No Problem - Steve Krull, Be Found Online
 
Top 5 Breakthrough AI Innovations Elevating Content Creation and Personalizat...
Top 5 Breakthrough AI Innovations Elevating Content Creation and Personalizat...Top 5 Breakthrough AI Innovations Elevating Content Creation and Personalizat...
Top 5 Breakthrough AI Innovations Elevating Content Creation and Personalizat...
 
Netflix Ads The Game Changer in Video Ads – Who Needs YouTube.pptx (Chester Y...
Netflix Ads The Game Changer in Video Ads – Who Needs YouTube.pptx (Chester Y...Netflix Ads The Game Changer in Video Ads – Who Needs YouTube.pptx (Chester Y...
Netflix Ads The Game Changer in Video Ads – Who Needs YouTube.pptx (Chester Y...
 
How to Leverage Behavioral Science Insights for Direct Mail Success
How to Leverage Behavioral Science Insights for Direct Mail SuccessHow to Leverage Behavioral Science Insights for Direct Mail Success
How to Leverage Behavioral Science Insights for Direct Mail Success
 
Social Media Marketing PPT-Includes Paid media
Social Media Marketing PPT-Includes Paid mediaSocial Media Marketing PPT-Includes Paid media
Social Media Marketing PPT-Includes Paid media
 

Brighton SEO July 2021 How JavaScript is preventing you from passing Core Web Vitals ?