Please provide also HTTPS download from jquery !
when using Jquery with google Chrome I ran into following problem:
The Problem:
Chrome does not allow mixing https and http.
So it would be nice, if there will be beside:
also
so I then I may modify the following code:
- function addJQuery(callback) {
- var script
- script = document.createElement("script");
- script.setAttribute("src", "http://code.jquery.com/jquery-1.8.3.min.js");
- ...
just like that:
- ...
- script.setAttribute("src", location.protocol "//code.jquery.com/jquery-1.8.3.min.js");
to make it work also in Google chrome.
504 - Gateway Timeout
Update:
The Fix:
Got it running like this:
- script.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js");
Google provides
http:
and https:
and "//" will make the url protocol independent means js will choose according to current location url what to use.