Title: Velocity &#8211; Video Lazy Loading for YouTube, Twitch and Vimeo
Author: connekthq
Published: <strong>2016 年 3 月 3 日</strong>
Last modified: 2020 年 1 月 4 日

---

搜索插件

![](https://ps.w.org/velocity/assets/banner-772x250.jpg?rev=1628616)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/velocity/assets/icon-256x256.png?rev=1628616)

# Velocity – Video Lazy Loading for YouTube, Twitch and Vimeo

 作者：[connekthq](https://profiles.wordpress.org/connekthq/)

[下载](https://downloads.wordpress.org/plugin/velocity.zip)

 * [详情](https://cn.wordpress.org/plugins/velocity/#description)
 * [评价](https://cn.wordpress.org/plugins/velocity/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/velocity/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/velocity/#developers)

 [支持](https://wordpress.org/support/plugin/velocity/)

## 描述

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](https://connekthq.com/plugins/velocity/)**

#### 简码参数

 * **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)

#### 站点

https://connekthq.com/plugins/velocity/

## 屏幕截图

 * [[
 * Settings.
 * [[
 * Velocity shortcode builder.
 * [[
 * Add Velocity (page/post edit screen).
 * [[
 * Velocity lightbox (page/post edit screen).

## 安装

How to install Velocity.

#### Using The WordPress Dashboard

 1. Navigate to the ‘Add New’ in the plugins dashboard
 2. Search for ‘Velocity’
 3. Click ‘Install Now’
 4. Activate the plugin on the Plugin dashboard

#### Uploading in WordPress Dashboard

 1. Navigate to the ‘Add New’ in the plugins dashboard
 2. Navigate to the ‘Upload’ area
 3. Select `velocity.zip` from your computer
 4. Click ‘Install Now’
 5. Activate the plugin in the Plugin dashboard

#### Using FTP

 1. Download `velocity.zip`
 2. Extract the `velocity` directory to your computer
 3. Upload the `velocity` directory to the `/wp-content/plugins/` directory
 4. Activate the plugin in the Plugin dashboard

## 常见问题

  What are the steps to getting Velocity integrated on my website

 1. Create your Velocity shortcode.
 2. Add the shortcode to your page, by adding it through the content editor or placing
    it directly within one of your template files.
 3. Load a page with Velocity in place, click the preview image and load your media.

## 评价

![](https://secure.gravatar.com/avatar/b892919bcf9e97cf5df6968d1a93c5119a1dd08dabef5955da7ecd89d2d24b29?
s=60&d=retro&r=g)

### 󠀁[Merci pour ce plugin !](https://wordpress.org/support/topic/merci-pour-ce-plugin-2/)󠁿

 [maxplateau](https://profiles.wordpress.org/maxplateau/) 2020 年 5 月 28 日

Excellent plugin qui permet un affichage beaucoup plus rapide de la page !

![](https://secure.gravatar.com/avatar/698bbdf8465d26fb7054b19aa2e8663c52a1fa4e8b9363a13700c101a210066d?
s=60&d=retro&r=g)

### 󠀁[works great, missing some key features](https://wordpress.org/support/topic/works-great-missing-some-key-features/)󠁿

 [treeflips](https://profiles.wordpress.org/treeflips/) 2020 年 8 月 22 日

I wish it could manually grab the image thumbnail for me and load locally. The manual
builder is enough work as it is. Thank you for this great plugin, though.

![](https://secure.gravatar.com/avatar/d3d4577494d8bb4522c4e531f30cf85f58c898463d0494c4e2c70154d8bb5a4a?
s=60&d=retro&r=g)

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-4469/)󠁿

 [nullmem](https://profiles.wordpress.org/nullmem/) 2017 年 10 月 23 日 1 回复

This plugin is hands down the best WordPress lazy load plugin there is. Locally 
hosted custom image support makes this lightning fast. Highly recommended.

![](https://secure.gravatar.com/avatar/7dc3e45f4605ae8f5bdd7719968cde941fcb7783569f5efb95b81cf7df637478?
s=60&d=retro&r=g)

### 󠀁[Nice & Smooth](https://wordpress.org/support/topic/nice-smootj/)󠁿

 [zitrusman](https://profiles.wordpress.org/zitrusman/) 2017 年 6 月 14 日 1 回复

It is one if the plugins that “just works”. Awesome. Thanks!

![](https://secure.gravatar.com/avatar/3c2fc5504d72c6140f7f95bbef7ca572221fd35ab4741bad2c13348b235e14fb?
s=60&d=retro&r=g)

### 󠀁[The plugin is fantastic and the support is astounding](https://wordpress.org/support/topic/the-plugin-is-fantastic-and-the-support-is-astounding/)󠁿

 [magoz](https://profiles.wordpress.org/magoz/) 2017 年 3 月 15 日 1 回复

The plugin works great and does everything that promises. But what I appreciate 
the most is that Darren, who develops the plugin, is always listening, helping and
implementing new suggestions. When you choose a plugin for your website, is important
to make sure it’s regularly updated and won’t be abandoned. Darren puts a lot of
effort on this aspect. In fact, all the plugins he creates are pure gold. Thanks
a lot for all your work and effort. Keep up the good work, man!

![](https://secure.gravatar.com/avatar/7df1a64647ca1fe1e842ea391aea99b0767e3dbb5ac7f9402788fe27453da2ba?
s=60&d=retro&r=g)

### 󠀁[Simple, quick and effective.](https://wordpress.org/support/topic/simple-quick-and-effective-1/)󠁿

 [petejrawlings](https://profiles.wordpress.org/petejrawlings/) 2016 年 9 月 3 日
1 回复

An excellent plugin, and one of the easiest to use that I’ve seen. Some people may
want control over additional parameters, in which case look elsewhere, but if you
just want to put lazy loading videos on a page as simply and quickly as possible,
I’d highly recommend this. It also does away with YouTube’s related videos, which
is another huge plus point in my book.

 [ 阅读所有6条评价 ](https://wordpress.org/support/plugin/velocity/reviews/)

## 贡献者及开发者

「Velocity – Video Lazy Loading for YouTube, Twitch and Vimeo」是开源软件。 以下
人员对此插件做出了贡献。

贡献者

 *   [ connekthq ](https://profiles.wordpress.org/connekthq/)
 *   [ Darren Cooney ](https://profiles.wordpress.org/dcooney/)

[帮助将「Velocity – Video Lazy Loading for YouTube, Twitch and Vimeo」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/velocity)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/velocity/)，查看[SVN仓库](https://plugins.svn.wordpress.org/velocity/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/velocity/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/velocity/)。

## 更新日志

#### 1.2.1 – January 4, 2020

 * UPDATE – Update admin CSS styling for issues with new WordPress 5.3 accessibility
   styles.
 * UPDATE – Improved meta data classes.

#### 1.2.0 – July 23, 2019

 * NEW – Added Twitch support.
 * NEW – Added responsive styling for play button.
 * NEW – Added focus state for accessibility.
 * NEW – Add SEO Metadata to YouTube, Vimeo and Twitch embeds. YouTube and Twitch
   metadata is still a work in progress and will be evolving.
 * FIX – Removed issue with `.clearfix` class causing issue with page builders

#### 1.1.1 – March 17, 2017

 * FIX – Patch for PHP warning regarding $soundcloud_type variable.

#### 1.1 – March 14, 2017

 * Added fade out transition from preview image to media embed.
 * Added new `options` shortcode parameter to pass various options to embed video–
   e.g. autoplay=1&loop=1&title=0
 * Added support for Soundcloud playlists – e.g. [velocity type=”soundcloud” playlist
   =”true” id=”1659224″ alt=”Play” color=”#FFFFFF” bkg_color=”#000000″]).
 * UI Updates and enhancements.

#### 1.0.1 – May 10, 2016

 * Adding .min js file
 * Adding support for loading Velocity media with Ajax

#### 1.0 – March 3, 2016

 * Initial Plugin Release

## 额外信息

 *  版本 **1.2.1**
 *  最后更新：**6 年前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **5.3.21**
 *  语言
 * [English (US)](https://wordpress.org/plugins/velocity/)
 * 标签
 * [performance](https://cn.wordpress.org/plugins/tags/performance/)[soundcloud](https://cn.wordpress.org/plugins/tags/soundcloud/)
   [twitch](https://cn.wordpress.org/plugins/tags/twitch/)[vimeo](https://cn.wordpress.org/plugins/tags/vimeo/)
   [youtube](https://cn.wordpress.org/plugins/tags/youtube/)
 *  [高级视图](https://cn.wordpress.org/plugins/velocity/advanced/)

## 评级

 4.8 星（最高 5 星）。

 *  [  5 条 5 星评价     ](https://wordpress.org/support/plugin/velocity/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/velocity/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/velocity/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/velocity/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/velocity/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/velocity/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/velocity/reviews/)

## 贡献者

 *   [ connekthq ](https://profiles.wordpress.org/connekthq/)
 *   [ Darren Cooney ](https://profiles.wordpress.org/dcooney/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/velocity/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://connekthq.com/donate/)