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

Lazy load video players

外掛說明

Modifies the HTML output of any video players which have been embedded in the content area or in the site using the oEmbed technique. Any video player which is included on the page will only be loaded if/when it is/becomes visible within the current browser window.

This plugin relies on JavaScript in the frontend. The original player will be displayed (not lazy-loaded) if JavaScript is inactive on the page.

Please note that this plugin will not work in server environments running PHP versions older than 5.3.

安裝方式

  1. Upload the folder mhm-lazyloadvideo to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Lazy load video players〉的開發相關工作。

參與者

將〈Lazy load video players〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.3.5

  • Confirm functionality in WordPress 4.9.8.

1.3.4

  • Confirm functionality in WordPress 4.7.4.

1.3.3

  • Minor amendment to README.

1.3.2

  • Run script on DOMContentLoaded as well, in case window.addEventListener('load') is delayed by slow assets.
  • Confirm functionality in WordPress 4.7.2.

1.3.1

  • Load the script in the header. It’s loaded asynchronously, so there are no performance issues.

1.3.0

  • Load the script in the footer, not in the header.
  • Add console logger command for debugging.
  • Add version number to script-embedding URL.

1.2.0

  • JavaScript syntax improvements.
  • Call initialization on load, to cover a case where direct initialization happens before the page is loaded.

1.1.0

  • Revises code to additionally hook the WordPress oembed_result filter, so that videos pulled in via wp_oembed_get also get parsed.
  • Spellcheck secondary namespace.
  • This README is now .txt, for compatability with the WordPress Plugin Directory.

1.0.2

  • Add a proper README to the plugin.

1.0.1

  • Fix a JavaScript syntax bug which ocurred in Internet Explorer.

1.0

  • Initial version of the plugin.

0.0.1

  • Bare bones of an idea.