On-demand Youtube embedded player

Hugely improves load speed of pages with lots of embedded Youtube videos by instantly showing clickable and immediately accessible placeholders, then the thumbnails are loaded in background.

Per 29-04-2015. Zie de nieuwste versie.

Maker
woxxom
Beoordelingen
0 0 0
Versie
1.0.7
Gemaakt op
16-04-2015
Bijgewerkt op
29-04-2015
Grootte
10,9 KB
Licentie
MIT
Wordt toegepast op
Alle websites

Tested on Chrome 43 and Firefox 38.

The script hugely improves load speed of pages with lots of embedded Youtube videos by instantly showing clickable and immediately accessible placeholders, then the thumbnails are loaded in background.

  1. Click the thumbnail to play the video in a standard Youtube embedded player with a full-screen button
  2. Shift-click to play as HTML5 video directly, 720p is automatically selected if available.
  3. There's also a link to open the video page on Youtube.
  4. The video thumbnail is resized to fit the available width: var resizeToFit = true;