Title: Lightweight and Responsive Youtube Embed
Author: wpszaki
Published: <strong>2017 年 10 月 9 日</strong>
Last modified: 2018 年 8 月 27 日

---

搜尋外掛

![](https://ps.w.org/lightweight-and-responsive-youtube-embed/assets/banner-772x250.
png?rev=1743614)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/lightweight-and-responsive-youtube-embed/assets/icon-256x256.
png?rev=1743607)

# Lightweight and Responsive Youtube Embed

 由 [wpszaki](https://profiles.wordpress.org/wpszaki/) 開發

[下載](https://downloads.wordpress.org/plugin/lightweight-and-responsive-youtube-embed.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/lightweight-and-responsive-youtube-embed/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/lightweight-and-responsive-youtube-embed/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/lightweight-and-responsive-youtube-embed/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/lightweight-and-responsive-youtube-embed/#developers)

 [技術支援](https://wordpress.org/support/plugin/lightweight-and-responsive-youtube-embed/)

## 外掛說明

If you are embedding Youtube video(s) into your site then you will need this plugin.
As you may (or may not) know the default Youtube embed code is not responsive and
in order to load the player itself your browser has to download more than 1MB of
data from Youtube’s servers. That is way too much and this is the reason why we 
made this plugin. A video player has to be lightweight and responsive. Period.

This plugin is replacing the default Youtube player with the video’s high quality
thumbnail and a play button. The real player and the video won’t load until you 
click on the play button or the thumbnail itself. With this easy trick you will 
have a much lighter and faster website and the thumbnail + the actual player will
be responsive too.

Our plugin is only 60KB without any extra library or unnecessary function.

If you are speed-optimizing your site or if you want to reduce the loading times
of your pages then you are at the right place.

### This plugin will:

 * Make all of the embedded Youtube videos responsive automatically
 * Will reduce the size of your pages (where you have embedded videos)
 * Will make your site faster
 * Will improve the user experience

### You can also:

 * Manually insert a different thumbnail for each embedded video with the ‘thumb_url’
   parameter.
 * [youtube_embed url=”video_url” thumb-url=”custom_thumb_url”]
 * Manually set a different width for each video with the ‘width’ parameter.
 * [youtube_embed url=”video_url” width=”50″]
 * Manually align each video to left, right or center with the ‘align’ parameter.
 * [youtube_embed url=”video_url” align=”center”]
 * Disable the related videos
 * Disable the video controls
 * Disable the fullscreen option
 * Align the videos globally or individually
 * Set the custom video width for all videos or to just a single video with a shortcode
   parameter

### Comparison

Here’s a quick comparison with the built-in TwentySeventeen theme (without any other
plugin).

We placed a default Youtube video embed code in a new and empty page, ran the tests
and then replaced it with our solution before running the tests again.

Total page size with the traditional Youtube embed code: 2.18MB
 Total page size
with our lightweight & responsive embedder: 472KB

Page load time with the traditional Youtube embed code: 5.33s
 Page load time with
our lightweight & responsive embedder: 2.52s

## 螢幕擷圖

[⌊The code in action.⌉⌊The code in action.⌉[

The code in action.

[⌊The options panel.⌉⌊The options panel.⌉[

The options panel.

[⌊The basic shortcode.⌉⌊The basic shortcode.⌉[

The basic shortcode.

## 安裝方式

This section describes how to install the plugin and get it working.

e.g.

 1. Upload the plugin folder to the /wp-content/plugins/ directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Place the [youtube_embed url=”https://youtube_video_url_comes_here”] shortcode 
    in your post/page to embed a video

## 常見問題集

Nothing at the moment.

## 使用者評論

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

### 󠀁[Working perfectly!](https://wordpress.org/support/topic/working-perfectly-60/)󠁿

 [szepesif](https://profiles.wordpress.org/szepesif/) 2018 年 8 月 27 日

The plugin does it's job perfectly, it speeds up the sites and reducing load times
by replacing the default Youtube player with a lightweight solution.

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

### 󠀁[Não Funciona!](https://wordpress.org/support/topic/nao-funciona-27/)󠁿

 [albertcorbett](https://profiles.wordpress.org/albertcorbett/) 2018 年 3 月 18 
日

Instalei, ativei, configurei e alterei o código de vários vídeos em meu blog, porém
ele não aparece nada, fica apenas um quadrado preto no lugar do vídeo. É uma pena,
pois precisava diminuir o uso de transferência de meu blog, e isso ajudaria muito.
A ideia é excelente, mas não funcionou!

 [ 閱讀全部 2 則使用者評論 ](https://wordpress.org/support/plugin/lightweight-and-responsive-youtube-embed/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Lightweight and Responsive Youtube Embed〉的開發相關工作。

參與者

 *   [ wpszaki ](https://profiles.wordpress.org/wpszaki/)

[將〈Lightweight and Responsive Youtube Embed〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/lightweight-and-responsive-youtube-embed)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/lightweight-and-responsive-youtube-embed/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/lightweight-and-responsive-youtube-embed/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/lightweight-and-responsive-youtube-embed/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/lightweight-and-responsive-youtube-embed/)。

## 變更記錄

#### 1.0

 * Initial release of the plugin.

## 中繼資料

 *  版本 **1.0.0**
 *  最後更新 **8 年前**
 *  啟用安裝數 **30+**
 *  WordPress 版本需求 ** 3.0.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.9.35**
 *  語言
 * [English (US)](https://wordpress.org/plugins/lightweight-and-responsive-youtube-embed/)
 * 標籤:
 * [embed](https://tw.wordpress.org/plugins/tags/embed/)[lightweight](https://tw.wordpress.org/plugins/tags/lightweight/)
   [responsive](https://tw.wordpress.org/plugins/tags/responsive/)[video](https://tw.wordpress.org/plugins/tags/video/)
   [youtube](https://tw.wordpress.org/plugins/tags/youtube/)
 *  [進階檢視](https://tw.wordpress.org/plugins/lightweight-and-responsive-youtube-embed/advanced/)

## 評分

 3 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/lightweight-and-responsive-youtube-embed/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/lightweight-and-responsive-youtube-embed/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/lightweight-and-responsive-youtube-embed/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/lightweight-and-responsive-youtube-embed/reviews/?filter=2)
 *  [  1 個 1 星使用者評論     ](https://wordpress.org/support/plugin/lightweight-and-responsive-youtube-embed/reviews/?filter=1)

[撰寫評分](https://wordpress.org/support/plugin/lightweight-and-responsive-youtube-embed/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/lightweight-and-responsive-youtube-embed/reviews/)

## 參與者

 *   [ wpszaki ](https://profiles.wordpress.org/wpszaki/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/lightweight-and-responsive-youtube-embed/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://wpszaki.hu)