Please revert decision to replace jQuery loading
-
The change in code to force loading the latest jQuery from https://code.jquery.com causes breakage in HTTPS sites. Google Chrome refuses to load insecure (HTTP) content within HTTPS sites. Thus, every single functionality that relies on jQuery, from WordPress own uses to those of plugins, stops working when WP Google Maps is installed on an HTTPS blog.
Changing the code to detect whether one’s running under HTTPS also won’t work, because the HTTPS version of code.jquery.com has an invalid certificate, thus resulting in the same refusal from Chrome to load that content.
If you really, absolutely MUST load jQuery from a 3rd party site, please do it from “https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js” and “https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js”, taking care with whether the link starts with HTTP or HTTPS depending on the permalink of every URL, otherwise much breakage will follow.
A better approach however, in my opinion, is to simply not do it at all. Those who wish to have jQuery loaded from somewhere other than their own sites can install a specialized plugin that automatically takes care of these issues, such as Use Google Libraries. And those who don’t can have several reasons for this, from not knowing it can be done to actively deciding it must not be done so as not to rely on a 3rd party being available or not for major mission critical functionality.
I hope this helps. Thanks!
- The topic ‘Please revert decision to replace jQuery loading’ is closed to new replies.