
內容簡介
Velocity(速度)是 YouTube、Vimeo、Twitch 和 Soundcloud 的替代載入方式,使用懶加載技術取代初始頁面加載,可縮短加載時間,提高網站整體性能。
如需在網站上使用 Velocity,只需使用直觀的短碼生成器選擇預覽圖像和媒體類型,生成代碼後將其添加到頁面即可。
了解更多
短碼參數
type – 選擇媒體類型 [youtube、vimeo、twitch、soundcloud]。
id – 媒體項目的 ID。
options – 為嵌入媒體添加可選樣式和顯示參數,例如 rel=0&controls=0&showinfo=0。
playlist – 是否為 Soundcloud 播放列表 [true/false]。
img – 預覽圖像的路徑。
alt – 附加到預覽圖像的替代文字。
color – 播放按鈕箭頭顏色。
bkg_color – 播放按鈕背景顏色。
短碼示例
[velocity type="youtube" id="239793212" img="http://yourwebsite.com/wp-content/uploads/2016/01/image-1263626715.jpg" alt="Play Video"]
經過測試的瀏覽器
Firefox(Mac、PC)
Chrome(Mac、PC、iOS、Android)
Safari(Mac、iOS)
IE10+
Android(原生)
BB10(原生)
網站
https://connekthq.com/plugins/velocity/
外掛標籤
開發者團隊
② 後台搜尋「Velocity – Video Lazy Loading for YouTube, Twitch and Vimeo」→ 直接安裝(推薦)
原文外掛簡介
Velocity is an alternative loading method to the standard to YouTube, Vimeo, Twitch and Soundcloud iframe embeds.
With Velocity you will decrease the loading time and increase overall performance of your website by lazy loading media on-demand instead of on initial page load.
To add Velocity to your site, simply create a Velocity shortcode by selecting a preview image and media type using the intuitive shortcode builder then add the generated snippet to your page.
Get More Information
Shortcode Parameters
type – Choose a media type [youtube, vimeo, twitch, soundcloud].
id – The ID of the media item.
options – Add optional styling and display parameters for the embedded media – e.g. rel=0&controls=0&showinfo=0.
playlist – Is this a Soundcloud playlist [true/false].
img – The path to the preview image.
alt – The alternative text to be attached to the preview image.
color – Play button arrow color.
bkg_color – Play button background color.
Example Shortcode
[velocity type="youtube" id="239793212" img="http://yourwebsite.com/wp-content/uploads/2016/01/image-1263626715.jpg" alt="Play Video"]
Tested Browsers
Firefox (Mac, PC)
Chrome (Mac, PC, iOS, Android)
Safari (Mac, iOS)
IE10+
Android (Native)
BB10 (Native)
Website
https://connekthq.com/plugins/velocity/
