I had to give up on using the YouTube API, so I've gone back to embedding with iframes. But, of course, on a page with 20+ of them that's pretty slow.
I added the
loading="lazy" attribute, which I guess works well? It's hard to tell, really. But of course support for that is limited:
[
caniuse.com...]
Any suggestions for an alternative for IE or older browsers?