
內容簡介
這個外掛改善了頁面加載時間,提高了你的 Google PageSpeed 指數。它與 oEmbed 配合使用,可以將嵌入的 YouTube 和 Vimeo 視頻替換為可點擊的預覽圖片。
通過僅在用戶點擊預觀圖像時才加載視頻,可以避免加載不必要的 JavaScript。特別是對於嵌入了許多視頻的網站,這會讓你的訪問者感到滿意。此外,所有 YouTube 視頻都是使用「https://www.youtube-nocookie.com」嵌入 URL 加載以增強隱私保護功能的。
此插件適用於現有的 YouTube 和 Vimeo 區塊。沒有供應商限制和沒有自定義短代碼:您可以隨時輕鬆地打開和關閉該插件。
開發者網站上的演示:www.kweber.com/lazy-load-videos/
你想增強這個外掛嗎?請在 Github 上貢獻意見。
一些其他功能:
在預覽圖像上顯示視頻標題
在預覽圖像上顯示隱私聲明(例如符合 GDPR)
開始播放前和結束後的廣告:將所有視頻轉換為播放列表,自動添加公司視頻、產品預告片或其他視頻廣告。(非常適用於品牌推廣和視頻廣告!)
隱藏註釋,例如「訂閱頻道」,以避免分散注意力
通過插件管理面板添加自定義 CSS
為您的 Vimeo 播放器選擇自定義顏色
隱藏 YouTube 播放器的控件
當視頻開始播放時隱藏視頻標題和上傳者等信息
甚至在文本 Widgets 中懶加載視頻(僅適用於 YouTube)
在標準或封面缩略图尺寸之間選擇
從幾種播放按鈕樣式中選擇
為 YouTube 視頻播放器選擇傳統紅色或替代白色進度條
不顯示與你的視頻有關的相關視頻
與 WordPress 多站點和許多插件(如 TablePress)兼容
未來的功能:
為每個視頻設置自定義預覽圖像
跟踪使用 Google Analytics 加載視頻的次數
...你現在想要一個新功能嗎?請自行實現並在 Github 上貢獻,我將將你的增強功能發佈到官方 WordPress 目錄中。
翻譯人員
塞爾維亞(sr_RS)- Ogi Djuraskovic
西班牙語(es_ES)- Carlos Villavicencio
如果您已創建自己的語言包或有現有語言包的更新版本,您可以發送給我您的 gettext PO 和 MO,以便我將其捆綁到自己的外掛中。你可以從這裡下載最新的 POT 文件。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
This plugin improves page load time and increases your Google PageSpeed Score. It works with oEmbed and replaces embedded Youtube and Vimeo videos with a clickable preview image.
By loading videos only when the user clicks on the preview image, no unnecessary JavaScript is loaded. Especially on sites with many embedded videos this will make your visitors happy. Additionally, all Youtube videos are loaded in a privacy-enhanced mode using the “https://www.youtube-nocookie.com” embed URL.
This plugin works for your existing YouTube and Vimeo blocks. No vendor lock-in and no custom shortcodes: Easily turn the plugin on and off anytime.
Plugin review with speed test results on WP Tavern.
Developers can contribute on Github.
More about the author: on kweber.com.
Some additional features:
Display video titles on preview images
Display privacy disclaimer on top of preview images (e.g. for GDPR compliance)
Pre-roll and post-roll advertisements: Convert all videos into a playlist and automatically add your corporate video, product teaser or another video advertisement to every video. (Great for branding and video ads!)
Hide annotations such as “subscribe to channel” to avoid distractions
Add custom CSS via the plugin’s admin panel
Choose custom colour for your Vimeo player
Hide controls from Youtube player
Hide information like the video title and uploader when the video starts playing
Even lazy load videos in text widgets (Youtube only)
Choose between thumbnail sizes (standard or cover)
Choose from several play button styles
Choose the traditional red or the alternative white progress bar for the Youtube video player
Don’t show related videos at the end of your videos
Works with WordPress Multisite and many plugins such as TablePress
Future features:
Set a custom preview image per video
Track how often the videos have been loaded with Google Analytics
… YOU want a new feature RIGHT NOW? Please implement it yourself and contribute on Github, and I’ll publish your enhancements to the official WordPress directory.
Translators
Serbian (sr_RS) – Ogi Djuraskovic
Spanish (es_ES) – Carlos Villavicencio
If you have created your own language pack, or have an update of an existing one, you can send me your gettext PO and MO so that I can bundle it into my plugin. You can download the latest POT file from here.
