I’ve always wondered why the embeds don’t do this asynchronously themselves, either as a default or with a flag. The amount of resources these embeds automatically consume is egregious. It seems so odd to tell the world to apply a fix for a platform you own.
Dma54rhs 29 days ago [-]
Part of it tracking to run better ads on YouTube and other Google properties, probably worth it money wise.
There's plenty that can be said about Google, but investing in education and testing around web performance was one of their stand out achievements imo.
I’d recommend using HasShortcode in the head so the script is only loaded if the post has a shortcode.
Also, use {{/* and */}} to stop Hugo from trying to render a template tag so you can include it in a code snippet.
So YT have no motivation to address the issue, you see the same thing across all of Google’s other embeds too
While the Chrome team may care about front end performance there’s little evidence the rest of Google do
It was good then.
There's plenty that can be said about Google, but investing in education and testing around web performance was one of their stand out achievements imo.