Linked Questions

165 votes
10 answers
104k views

I’m using a CDN for the following javascript: https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js http://ajax....
raklos's user avatar
  • 28.6k
37 votes
3 answers
78k views

I want to use Google CDN for jQuery and jQuery UI.. I'm using the answer from here for jQuery. Best way to use Google's hosted jQuery, but fall back to my hosted library on Google fail but i don'...
raklos's user avatar
  • 28.6k
7 votes
6 answers
8k views

How do i load the following in cdn and if they fail i would wnat my local file to load if this fails Google's CDN : jquery.min.js and jquery-ui.min.js. Microsoft's CDN : jQuery.Validate.min.js
aWebDeveloper's user avatar
0 votes
3 answers
3k views

I am using a js file and it is available in cdn. I also have the same js file in my project as fallback. <script src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.3.1/js/swiper.min.js"></...
jayant's user avatar
  • 416
5 votes
1 answer
2k views

After looking up the advantages and disadvantages of using Google's AJAX Libraries API instead of using jQuery locally, I saw that someone wrote in an answer (here on Stack Overflow, of course) that ...
Maxim Zaslavsky's user avatar
1 vote
2 answers
1k views

I am trying to load jquery on to a page that may or may not have jquery. I simply use the typeof to determine if it is loaded. My problem is that I want to check and see if it has been loaded after I ...
ios85's user avatar
  • 2,134
3 votes
1 answer
1k views

I want to use both "Google Hosted Libraries" and "Microsoft Ajax Content Delivery Network" for library scripts like jQuery, so that even if one fails to load (e.g. Google), another one is loaded, and ...
John's user avatar
  • 39
1 vote
1 answer
827 views

Curious if there was a simple way to have a fail-safe on google.load() The likely hood that google can't deliver the file but I can is pretty slim but I thought it might be interesting to have my own ...
tnriverfish's user avatar
1 vote
0 answers
387 views

I'm trying to learn Bootstrap and I was studying this example. I noticed that they include the Jquery library and other scripts at the bottom of the markup just before the end of the body-- this part ...
John Wu's user avatar
  • 52.5k
0 votes
1 answer
167 views

I am new working with Bootstrap v4 and in the footer i see that there are 2 jQuery Scripts. One from a cdn what i understand and one local. What does this line exactly mean: <script>window....
public9nf's user avatar
  • 1,409
0 votes
0 answers
90 views

On my site I have included the google version of jquery like so: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> But of course this fails when I ...
user2667066's user avatar
  • 2,179
6380 votes
72 answers
4.5m views

How do I include a JavaScript file inside another JavaScript file, similar to @import in CSS?
Alec Smart's user avatar
  • 96.2k
1070 votes
15 answers
1.4m views

I wanted to check whether the variable is defined or not. For example, the following throws a not-defined error alert( x ); How can I catch this error?
Jineesh's user avatar
  • 11.4k
101 votes
13 answers
244k views

I'm creating a jquery plugin and I want to verify an external script is loaded. This is for an internal web app and I can keep the script name/location consistent(mysscript.js). This is also an ajaxy ...
AGoodDisplayName's user avatar
87 votes
9 answers
48k views

We're currently pulling jQuery and jQueryUI (and jQueryUI CSS) libraries from the google CDN. I like this because I can call google.load("jquery", "1"); and the latest jQuery 1.x.x will be used. Now ...
orolo's user avatar
  • 3,953

15 30 50 per page
1
2 3 4 5
7