Skip to content

Conversation

MarcelGeo
Copy link
Contributor

@MarcelGeo MarcelGeo commented Sep 4, 2025

The browser needs to process some content within a specific <script> tag before it can continue loading the rest of the page. By delaying the processing of that script until it’s actually needed, we can improve the loading time of a page.

This problematic script is coming from youtube src.

Another changes:

  • added opengraph title and description - caused Add description to pages #678
    https://merginmaps.com/opengraph.webp

  • added description to YouTube component to use in lite-youtube web component - it's good practice to use it

  • SEO opts for footer Company header

  • links in cookie consent to be with sensible text SEO

  • aria-label for social icons

  • added light-youtube to handle images instead of iframe for youtube videos, which could be expansive

image
  • Before without youtube facade - pagespeed on slow 4g motorola 🔢
image
  • Now with youtube facade - pagespeed on slow 4g motorola 🔢
image

@MarcelGeo MarcelGeo changed the title Load src of youtube iframe, when page is loaded Load src of youtube iframe when page is loaded Sep 4, 2025
@MarcelGeo MarcelGeo marked this pull request as draft September 8, 2025 14:46
@MarcelGeo MarcelGeo marked this pull request as ready for review September 11, 2025 10:16
@MarcelGeo MarcelGeo changed the title Load src of youtube iframe when page is loaded SEO optimizations Sep 11, 2025
@tomasMizera
Copy link
Contributor

Great job, thanks!

@tomasMizera tomasMizera merged commit 63e1cde into main Sep 11, 2025
3 of 4 checks passed
@tomasMizera tomasMizera deleted the youtube-video-lazy-load branch September 11, 2025 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants