discourse/plugins/lazy-yt/assets/javascripts
David Taylor ac042c2bbe
UX: Fetch higher-resolution youtube thumbnails where available
We have been using YouTube's 'hqdefault.jpg' image which works consistently to provide a 480x360 thumbnail. YouTube does provide larger thumbnails, but not consistently for every video. By using og:image, we will fetch the best resolution YouTube can provide for each video.

This commit also refactors lazy-yt to re-use the thumbnail already existing in the cooked content. This means we get lazy-loading for free, and avoid hotlinking images to YouTube (when download remote images is enabled on the site).
2020-05-15 17:49:27 +01:00
..
initializers DEV: Run prettier 2019-11-12 12:07:19 +01:00
lazyYT.js UX: Fetch higher-resolution youtube thumbnails where available 2020-05-15 17:49:27 +01:00