Was there a recent change to the way Youtube embeds and thumbnails are handled?
It looks like most videos have lost black bars that were incredibly annoying and forced me to write some additional image processing to remove them.
Also has there been a forced rebake in a recent update?
This is a welcome change, but just wanted some clarity on what happened.
4 Likes
renato
(Renato Atilio)
April 6, 2023, 12:15pm
2
Yes, there’s this recent big change replacing lazy-yt
:
discourse:main
← jancernik:replace-lazy-yt
opened 04:58PM - 17 Mar 23 UTC
- Refactors the old plugin to remove jquery usage
- Adds support for Vimeo vide… os (default on) and Tiktok (experimental and default off)
And this one addressing the annoying black bars:
discourse:main
← jancernik:center-lazy-youtube-thumbnail
opened 11:28AM - 31 Mar 23 UTC
`hqdefault` youtube thumbnails usually have extra black bars on top and bottom
…
<div align="center">
<b>Before / After</b>
![youtube thumbnail](https://user-images.githubusercontent.com/66427541/229107534-1f430223-2fa2-4386-a524-17e7ff8bf0c9.png)
(maybe not the best example as this video already has black bars)
</div>
Not sure about the forced rebake though.
9 Likes
Thanks @renato I should have delved into the source.
@jancernik this is a really great improvement, thanks!
6 Likes
jancernik
(Jan Cernik)
April 6, 2023, 12:33pm
4
I’m glad you liked it! The old plugin that was used to handle lazy loading for YouTube was written in jQuery and had some issues. So, we decided to modernize it. The rebake was needed because we made some slight changes in the way we store attributes for the embed, which now allows us to use this type of lazy loading on other providers like Vimeo.
Feel free to reach out if you have more feedback on it.
10 Likes
system
(system)
Closed
May 6, 2023, 12:34pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.