
內容簡介
這個外掛會將所有 WP 核心資源替換成由 jsDelivr 提供的版本。
以下的條件必須符合,才能從 jsDeliver 提供外掛資源:
該外掛必須在 wp.org 上托管。商業外掛和其他地方的外掛將不會生效,因為 jsDelivr 只會複製 wp.org 的外掛目錄。
資源 src URL 中必須有 /plugins/plugin-slug/,並以 .js或 .css 結尾(不包括版本控制的 ?ver=1.2.3)。
它需要將其當前版本作為標籤發布在 wp.org 的插件 SVN 上。某些外掛可能只推送到 /trunk/ 上(就像我目前所擁有的),或者其最新版本未發布為標籤。
非常感謝您的捐贈
我花費了很多時間來開發這個外掛,嘗試了多種不同的方法,直到我想出了這個可行的解決方案,並且也不需要太多的代碼。我知道官方外掛已經被放棄了多年,我看到了復雜臃腫的代碼,甚至不想學習它在做什麼,所以才重新開始編寫。 請在此捐贈。
外掛標籤
開發者團隊
原文外掛簡介
It replaces all assets with versions available on jsDelivr. No options, nothing to configure, just works.
The code needs to be openly hosted on NPM, Github or wordpress.org.
This plugin adds a little a invisible button on the admin bar on the top right, left of “Howdy, Name”. You can click that and see the assets loaded from jsDelivr.
Support me
It took me a lot of time to come up with this plugin and I had many iterations over various different approaches how to do this until I came up with this working solution that also does not need much code. I know the official plugin was abandoned years ago and I looked at complicated bloated code and did not even feel like learning what its doing and never looked at it again and started from scratch.
Please check out my commercial plugin and level up your video embeds with ARVE Pro or Donate here
