Jump to content

Topic on Extension talk:YouTube

Lazy loading on iframe

1
Cory (talkcontribs)

Google PageSpeed Insights says too late on process embed YouTube in my site.

This extension has $wgYouTubeEnableLazyLoad option but using non-standard technique.

So, I make a simple patch to append loading="lazy" on <iframe>.

patch→ https://kimagurenote.net/file/YouTube-1.9.3_lazyloading.patch

see details in Japanese 日本語の説明はこちら

Please test it if you were in trouble because of SEO.

Thank you.

Reply to "Lazy loading on iframe"