[CinVin] Lazy Load YouTube Videos

[CinVin] Lazy Load YouTube Videos 1.1.0

没有下载权限
XF 兼容性
  1. 2.2.x
摘要
A fast-loading YouTube add-on with lazy-loaded previews. Perfect for threads with many embedded videos, improving load times and user experience on slower connections. Supports Google's Privacy-Enhanced Mode and uses webp images for better visuals.
This is a small add-on that defers loading embedded YouTube videos until the user clicks on the play button.

A preview image is shown as a placeholder with the familiar YouTube 'play' button on top. The video is not loaded until the play button is clicked. The image has the 'lazy' property set for browsers that recognize it.

For threads with a lot of embedded YouTube videos, such as the "The Amazing Emporium of Wondrous Tunes (aka: What are you listening to?)" thread at Cameraderie, this allows the thread to load faster and helps users browsing on slower internet connections and/or older devices.

Please note: On some browsers, such as Chrome for Android devices, the video will not auto-play after being clicked. It will load after clicking the 'play' button but the user must then click the 'play' button of the newly loaded video. This is a restriction of the browser and can not be overridden.

1635701151291.png



As of version 1.1.0 there are two new options available in the ACP => System and Performance Settings.

The option Use 'Youtube-Nocookie' Domain When Playing Videos will use the domain "youtube-nocookie.com" instead of the default "youtube.com" when the videos are loaded. This is part of Google's YouTube Privacy-Enhanced Mode.

The option Use YouTube Webp Preview Images will use .webp preview images instead of the default .jpg images. Important to note... not all videos have .webp preview images! Turning this option may result in some videos, especially older ones, having no preview image shown. From our testing, some of the YT .webp images are actually bigger than the .jpg images! Because of that, and that our sites have a lot of older videos, we don't have this option enabled but left it available for anybody that might want to use use .webp everywhere possible.

1635700920743.png
  • 点赞
反应: Bluter
作者
axtona
浏览
857
扩展类型
zip
文件大小
16.4 KB
首次发布
上次更新
评分 5.00 星 1 个评分
链接失效了吗? 发送消息 给 NP 团队,我们会尽快为您处理!
支持开发者 如果您对测试满意或项目已成功盈利,可点击「更多信息」按钮,通过购买来支持开发者!

最新评论

Гуд, плагин супер

来自 axtona 的更多资源

Relevio.ai A
Relevio.ai 1.0.0
这是一个针对XenForo的Relevio插件,它是一个独特的上下文感知、规则驱动的内容管理引擎
AI 论坛BOT A
AI 论坛BOT 1.1.1
论坛bot给你一个训练在你论坛自身内容上的.bot
Persona - 个性化你的论坛身份 A
Persona为论坛上的每一个成员提供了工具,让他们能够打造自己的存在感。

相似的资源

懒加载 [图片] A
用户组懒加载的零查询方法
浏览
410
已更新
Lazy Load Images (PageSpeed improvement) N
This add-on adds 'lazy loading images' to your forum with minimal impact.
浏览
673
已更新
PixVid.org: Upload and Host Images & Videos A
PixVid offers a seamless solution for remote image and video upload and storage
浏览
255
已更新
返回
顶部