Embedding YouTube Properly: Privacy, Speed, and Markup
Dropping a video onto a page takes one iframe, but embedding youtube properly takes a few decisions most tutorials skip: which domain to load the player from, how to keep half a megabyte of player JavaScript from dragging down your page speed score, and which URL parameters actually do anything. This guide covers the markup, the privacy option, and the loading strategy, with a worked example you can adapt directly to your own pages.