[WordPress] 外掛分享: WP jQuery Plus

首頁外掛目錄 › WP jQuery Plus
1,000+
安裝啟用
★★★★★
5/5 分(9 則評價)
3872 天前
最後更新
問題解決
WordPress 3.5+ v1.1.2 上架:2012-05-17

內容簡介

透過這個外掛,您可以從 CDN 讀取 jQuery(和 jQuery Migrate),以加快讀取速度,並避免在 CDN 無法使用時使用本地版本。這個外掛程式會自動使用和 WordPress 使用相同的版本,保持同步。

從 cdnjs 讀取 jQuery

預設情況下,jQuery 從 Google 讀取,而 jQuery Migrate 則從 cdnjs 讀取。若您也想從 cdnjs 讀取 jQuery,請在 wp-config.php 中加入以下內容:

define('WPJP_USE_CDNJS', true);

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP jQuery Plus」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Get the speed benefits of loading jQuery (and jQuery Migrate) from a CDN while providing a fallback to the local version in the event the CDN is down. It also uses the same version as WordPress does – automagically, so you’re never out of sync.
Loading jQuery from cdnjs
By default, jQuery is loaded from Google with jQuery Migrate being loaded from cdnjs. If you’d like to also load jQuery from cdnjs, add the following to wp-config.php
define('WPJP_USE_CDNJS', true);

延伸相關外掛

文章
Filter
Apply Filters
Mastodon