NGT jsDelivr CDN

وضاحت

It replaces all WP Core assets with versions hosted on jsDelivr.

The following conditions need to be met that plugins assets will be served from jsDeliver:

  1. The plugin needs to be hosted on wp.org. Commercial plugins and plugins from elsewhere will not work because jsDelivr mirrors the wp.org plugin dir and nothing else.
  2. The asset src URL most have /plugins/plugin-slug/ in them and end with .js or .css (excluding cash busting ?ver=1.2.3).
  3. It needs to have its current version published as a tag on the wp.org plugins SVN. Some plugins may only push to /trunk/ (like my own at the time of writing) or do not have their latest version published as tags.

Donations are really appreciated

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 donate here.

جائزا

1 سيپٽمبر 2019
Thank you for amazing plugin, it works like charm! 🙂 Just install and activate the plugin, it automatically replaced all CSS/JS elements with JSdelivr CDN URL. No settings! no customization! no headache!
6 آڪٽوبر 2020
Great plugin, just install it and without settings it’s working. Even stuff from plugins is coming from the CDN.
جمع: سڀ 5 تبصرا پڙهو

تعاون ڪندڙ & ڊولپرز

“NGT jsDelivr CDN” اوپن سورس سافٽ ويئر آهي. ھيٺين ماڻھن ھن پلگ ان ۾ حصو ورتو آھي.

تعاون ڪندڙ

ترجمو ڪريو “NGT jsDelivr CDN” توهان جي ٻولي ۾.

ڊولپمينٽ ۾ دلچسپي؟

ڪوڊ براؤز ڪريو، چيڪ ڪريو SVN مخزن، يا رڪنيت حاصل ڪريو ڊولپمينٽ لاگ پاران RSS.

لاگ تبدیل ڪريو

2024-05-14 1.1.0

  • Modernized the code.

2019-09-07 1.0.0

  • Run only once per page-load.
  • Better function names and some useful comments.
  • Send this plugins url as user-agent to jsDelivr knows how its used. (They asked for this). This also means more privacy as the wp_remote_get referrer sends your site URL (I really do not like that)

2019-08-31 0.9.4

  • Coding standards, some minor things.

2018-09-23 0.9.2

  • Fix: Force the recheck of file hashes when WP gets updated to not end up with core assets.

2018-09-01 0.9.1

  • Release