re: Lazy load embedded YouTube videos VIEW POST


Three suggestions:

  • add a title attribute to the <iframe> (excluding it is a WCAG failure, one which Google continues to ignore),
  • consider a method to put a "Play" image over the video thumbnail so users understand it will play a video, and not just send them to a new page or load an image,
  • put an alt attribute on the image.

I mocked one up on CodePen:

Debug view:


Great suggestions! I have edited the article to reflect this change. Thank you!


The video is not autoplaying on my mobile device, a Moto G4 Play. For some reason I have to double click 😞

code of conduct - report abuse