Lazy Load YouTube Embeds

Use case or problem

Currently YouTube embeds like ![title](https://youtu.be/N117e1Ub39A) are rendered by default when there in on my view.

It’s good if you only have a few, but if you have MANY YouTube embeds in the same note all renders at the same time, causing seriously performance issues (and I didn’t even click on the video yet!)

Proposed solution

Instead of load the YouTube embed, first display a placeholder with the thumbnail of the video, then when I click on the thumbnail the real YouTube embed is loaded.

This would improve the performance a lot (especially on canvas files).

2 Likes

+1. I personally don’t use YouTube, but I do have some .m3u streams linked and they face a similar issue, and it’s hella chaotic.

They also autoplay and that could lead to severe hardware damage. This feature is a must.

1 Like