Pipfrosch JQuery Wordpress Plugin - Rating, Reviews, Demo & Download

Pipfrosch JQuery Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Follow for free plugins, new theme releases and theme news

Plugin Description

The jQuery that current ships as part of WordPress is (as of WP 5.4.1) an older
version of jQuery. As in ancient. This plugin allows you to instead use a much
more modern of jQuery, with optional compatibility for scripts that need the
older jQuery calls.

This plugin also optionally allows you to securely select a public CDN for
jQuery including the appropriate Subresource Integrity (SRI) and CrossOrigin
attributes. Using a CDN can speed up the loading of your website as there is a
good chance a client visiting your website already has the identical file
in their browser cache and does not need to fetch it again.

When a CDN is used, a small amount of code is added to your pages to provide a
fallback where jQuery and the jQuery Migrate plugin are served from your site
if either the CDN can not be reached by the client or if the SRI check fails.

The updated jQuery will not replace the core jQuery for administration pages.
This is to avoid potential breakage of administrative pages.

The options for this plugin are managed from the WordPress ‘Dashboard’ in the
‘Settings’ area, using the ‘jQuery Settings’ menu option within the ‘Settings’

Plugin Options

There are four configurable options you can customize.

‘Use Migrate Plugin’ option

Enabled by default.

You may disable compatibility with scripts that require older versions of
jQuery. This is not recommended. Plugins and themes and quite possibly WP Core
scripts that use jQuery may require features that are no longer supported in the
current version of jQuery without the Migrate plugin.

You can disable compatibility completely if you so desire by disabling the
jQuery Migrate plugin.

The jQuery Migrate plugin provides compatibility with jQuery 1.9 through 3.0.
It is enabled by default and provides compatibility with the version of jQuery
that currently (WP 5.4.1) ships in WordPress, which is version jQuery 1.12.4.

If some jQuery scripts break even with the default compatibility mode, they are
likely written for jQuery prior to 1.9. The only option is to not use this
plugin until you have upgraded that very old code.

It is highly recommended you update that code as soon as possible, whether or
not you plan to use this plugin.

Please note that WordPress has loaded jQuery by default for years, this results
in many plugins and themes using jQuery out of convenience when they really did
not need to.

Rumor is that a future release of WordPress may only use native JavaScript for
everything in WP Core. If hiring a JavaScript developer to update old jQuery
code, make sure the JavaScript developer is wise enough to know when porting
the code to native JavaScript makes more sense than continuing to use jQuery
and when using jQuery really is the best approach. In other words, do not hire
someone like me, I pretty much only use jQuery but that is admittedly not
always the best approach, just the convenient approach.

‘Use Content Distribution Network’ option

Disabled by default.

By default, the updated jQuery scripts are served from within this WordPress
plugin. This is because responsible plugin and theme developers do not (in my
opinion) utilize third party resources by default.

I recommend you enable this option however doing so will result in frontend
pages being served that reference a Third Party Resource. Links to those
services and their privacy policies follows the section on Plugin Options.

‘Use Subresource Integrity’ option

Enabled by default.

This option only has meaning when the ‘Use Content Distribution Network’ option
is enabled.

This option will add a Subresource Integrity hash that browsers can use to
verify the resource retrieved is valid opposed to a modified possible trojan.

The only logical reason I can think of to disable this option is if you already
have a different plugin that manages Subresource Integrity.

‘Select Public CDN Service’ option

Set to ‘jQuery.com CDN’ by default.

This option only has meaning when the ‘Use Content Distribution Network’ option
is enabled.

This option lets you select which public CDN you wish to use from a list of
five Public CDN services that are listed at

For many websites, the default ‘jQuery.com CDN’ is probably the best choice
but it may not be the best choice for all websites, depending upon where the
majority of your users are located geographically and which public CDN has a
better response time in that geographical region.

External Third Party Services

When you enable the CDN option (recommended but disabled by default) a third
party service will be used. You should make sure your website Privacy Policy
makes users are aware of this. In the current version of WordPress (WP 5.4.1),
the default Privacy Policy does make users aware of this, but you have to
actually publish that policy and you should check it yourself in case it has
been modified or in case the policy you have predates that policy and does
not include a Third Party Resource notice.

This plugin always sets the
attribute in association with the Third Party Service, which instructs the
browser not to send cookies or any other authentication information to the third
party when retrieving the resource.

It is possible another plugin or your theme runs its own filter on the
jquery-core or jquery-migrate script handles that results in that attribute
no longer being set. Make sure to check by viewing the HTML output of a non-
administrative frontend page.

By default, the plugin will set the
integrity=”[[expected base64 encoded hash]]”
attribute in association with the Third Party Service, which instruct the
browser not to use the downloaded resource if the hatch does not match,
protecting your users from trojans.

The previously mentioned note about other plugins or themes running a filter
on the jquery-core or jquery-migrate script handles applies here as well.

This plugin uses the hashes associated with the files as provided by

These are the potential third party services:

jQuery.com CDN

The default CDN used by this plugin when a CDN is enabled.

Link to service: https://code.jquery.com/

jQuery.com CDN is actually powered by StackPath.

Link to service: https://www.stackpath.com/
Privacy Policy: https://www.stackpath.com/legal/privacy-statement/

CloudFlare CDNJS

When you have a CDN enabled and have selected the CloudFlare CDNJS option then
the CloudFlare CDNJS service will be used.

Link to service: https://cdnjs.com/libraries/jquery/

For jQuery, CDNJS is powered by CloudFlare.

Link to service: https://www.cloudflare.com/
Terms of Use: https://www.cloudflare.com/website-terms/
Privacy Policy: https://www.cloudflare.com/privacypolicy/

jsDelivr CDN

When you have a CDN enabled and have selected the jsDelivr option then the
jsDelivr CDN will be used.

Link to service: https://www.jsdelivr.com/
Privacy Policy: https://www.jsdelivr.com/privacy-policy-jsdelivr-net

Microsoft CDN

When you have a CDN enabled and have selected the Microsoft CDN option then the
Microsoft CDN will be used.

Link to service: https://docs.microsoft.com/en-us/aspnet/ajax/cdn/overview
Terms of Use: https://docs.microsoft.com/en-us/legal/termsofuse
Privacy Policy: https://privacy.microsoft.com/en-us/privacystatement

Google CDN

When you have a CDN enabled and have selected the Google CDN option then the
Google CDN will be used.

Link to service: https://developers.google.com/speed/libraries
Terms of Use: https://developers.google.com/terms/site-terms
Privacy Policy: https://policies.google.com/privacy

The Google CDN does not host the jQuery Migrate plugin. When you have a CDN
enabled and the Migrate option enabled and have selected the Google CDN
option then the jQuery.com CDN will be used for the jQuery Migrate plugin.
The Privacy Policy for that CDN is listed earlier in this readme.txt file.

Hard-coded SRI Hashes

This plugin includes hard-coded Subresource Identity public hashes for the
minified versions of the jQuery core library and the jQuery Migrate Plugin.

For a better understanding of what SRI is and why hard-coding the hashes is
a necessary security feature, please see the file SubResourceIntegrity.md
in this directory.

The hard-coded hashes can be verified against what is published at the
https://code.jquery.com/ website.

Click on the minified link for the same version of jQuery (3.5.1) and a window
will pop up with a script tag including the same SRI as what is defined by the
PIPJQVSRI constant in versions.php.

Click on the minified link for the same version of jQuery Migrate (3.3.0) and
a window will pop up with a script tag including the same SRI as what is
defined by the
PIPJQMIGRATESRI constant in versions.php.

CloudFlare CDNJS and jdDeliver CDN

The minified jQuery Migrate plugin hosted at CloudFlare CDNJS and jsDelivr CDN
have the following addition at the end of the JS file:

//# sourceMappingURL=jquery-migrate.min.map

For this reason, an SRI specific to them is used when CloudFlare CDNJS or
jsDelivr CDN is the selected Public CDN.

This SRI value can be obtained from https://cdnjs.com/libraries/jquery-migrate

Mouse over the minified version and from the menu that appears select Copy
and the SRI that matches the file they serve will be copied to your
clipboard and if the version is the same, it will match what is defined by the
PIPJQMIGRATESRI_CDNJS constant in versions.php.

Public CDN Notes

As of May 20th, 2020 the following notes apply.

The Microsoft CDN does not yet have current versions of either the core jQuery
library or the Migrate plugin. If you select that CDN, the files will be served
from your host until the Microsoft CDN has them.

The Google CDN does not host any version of the jQuery Migrate plugin. If you
select that option and have the Migrate plugin enabled, that plugin will be
served from the jQuery.com CDN.

Plugin / Theme Compatibility

This plugin does not set the version for jQuery. Doing so greatly reduces the
odds that a browser will recognize it already has the scripts cached. Some
plugins and themes may query for the version of jQuery being used. They should
not do that, but some do. They will not get an answer if this plugin has run
before they run and they will get the wrong answer if they run before this
script has run.

Update Policy

I will try to update this plugin when new versions of jQuery are released but
it may not be as fast as some may like. You can bug me by leaving sending an
e-mail to pipfroshpress[AT]gmail[DOT]com.

Please note updates to this plugin with new versions of jQuery will not be
pushed until that majority of the supported CDNs have the file.

For the included jQuery Migrate plugin, I am less likely to notice when new
versions are available but I do check whenever a new version of jQuery itself
is released. Again you can bug me if needed.

Development takes place on github. The master branch will usually be exactly
the same as what is distributed through WordPress except it will have a small
README.md file. The branch pipjq is where I develop and may not always be
stable. When a new release ready and tested from the pipjq branch, it will
be merged with master and then repacked for distribution through WordPress.

Please use the distribution from WordPress rather than from github. The version
from WordPress is audited by more eyes than my github.

Versioning Scheme

Versions use an Major.Minor.Tweak schemeusing integers for each. Code in
github may have a
pre` appended at the end to indicate is not a released
version and should not be used on production systems.

Tweak bump

Tweak is incremented by one when a minor change is made, such as adding a new

language to the translation support. Generally you can ignore upgrading this
plugin when there is just a Tweak bump.

Minor bump

Minor is incremented by one when a functional bug is fixed or when an update

to jQuery or the jQuery Migrate plugin is made that is not a substantial jQuery
change. When Minor is bumped, Tweak will reset to 0. Generally you should
upgrade when Minor is bumped.

Major bump

Major will be incremented when there is an upgrade to jQuery that is

significant in nature. Both Minor and Tweak are reset to 0 when Major
is bumped.

Generally you should test an update to Major before updating on a production
system just in case some of your jQuery code needs tweaks before deployment.


This plugin is ready for translations but so far does not actually have any.
Note that the only strings where translations are beneficial require
administrative privileges to see (the Settings). Hopefully translations will
soon be made for the benefit of WordPress administrators who have a preferred
written language other than English.


  1. The settings menu.

    The settings menu.

  2. Generated WordPress HTML source code showing the failed CDN fallback code.

    Generated WordPress HTML source code showing the failed CDN fallback code.

Reviews & Comments