I’m working with a client to improve their site speed. The biggest culprit right now is the YouTube embed code.
I implemented Lazy Load for the YouTube videos using the method documented at https://www.labnol.org/internet/light-youtube-embeds/27941/
The issue is, this code isn’t responsive, therefore it doesn’t work on mobile devices.
Any hints or ideas? This change alone saves 1mb and about 3-4 seconds loading the client’s homepage.