#Low Lighthouse Performance Score

15 messages · Page 1 of 1 (latest)

serene forge
#

Seems like the majority of those complaints are because of some youtube code? Did you put an embedded video on your page somewhere

thin blaze
#

I did

#

I've tried to use the astro youtube embed plugin, but when I try it no video appears

serene forge
#

So what are you doing then?

thin blaze
#

Using the iframe embed that youtube provides when you click share --> embed

serene forge
#

You can try the following

#

Basically look at the example code and specifically the srcdoc attribute

#

Oh, there's also just a loading="lazy" that exists on <iframe>, probably easier

#

That should negate most of the startup initial load

#

Unless the video is right in your face when you pull up the page, because then it will still be loaded

serene forge
#

You can still try using srcdoc as outlined in the css-tricks page