Deferred/Lazy loading of YouTube embeds
MrBougo created issue #1718 on 2013-07-06T21:45:06Z:
The What I Am Listening To! thread in Off Topic is full of YouTube embeds. I personally don’t mind it because I have a flash blocker (NoScript), but I have received complaints that the pages with many embeds are truly a pain to load.
To reduce the unwelcome loading times and resource hogging, we could use some sort of deferred loading of the embedded player. Such a system would display a static screen capture as a regular image embed (that makes it clear that it is clickable), which gets substituted with the player in-place when clicked.
Ideally, when JS is not loaded (because of NoScript or other reasons), the embed should be loaded directly or the image should link to the YouTube URL.
Currently, [yt][/yt] is implemented using regex substitution as a custom MyBB “MyCode”, replacing the tag with the standard YouTube iframe.