Discourse Lazy Videos

:discourse2: Summary Discourse Lazy Videos allows lazy loading of videos (Youtube, Vimeo, Tiktok)
:open_book: Install Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately.

Demo

Development History

Highly inspired by the lazyYT jQuery plugin.

Author: @techAPJ

Privacy Note:

With this plugin enabled, your Youtube videos in posts will be lazily rendered in a <div>, as opposed to a Youtube <iframe>.

This plugin ensures that no data will be sent to Youtube prior to the user clicking on the Youtube preview box. We could technically implement a <iframe loading="lazy">, but this method would still automatically send data to Youtube even when the topic loads.

Last edited by @nat 2025-08-21T11:13:49Z

Check documentPerform check on document:
「いいね!」 16