Linked Questions

1 vote
3 answers
4k views

Possible Duplicate: How to include multiple js files using jQuery $.getScript() method I need to import multiple files within a .js file, I'm looking at the getScript jQuery method : http://api....
blue-sky's user avatar
  • 54.3k
-2 votes
2 answers
1k views

In my project, I am loading some js and css files by default in index.html file. But I need to load some other js/css files using javascript later (dynamically) and then after those dynamic files are ...
Mr_Green's user avatar
  • 42k
71 votes
18 answers
80k views

I'm using the module pattern, one of the things I want to do is dynamically include an external JavaScript file, execute the file, and then use the functions/variables in the file in the return { } of ...
32 votes
8 answers
77k views

So if I have the following: <script type="text/javascript" src="offsite file I am referencing"></script> and I simply want to delay the execution of calling that file using settimeout, ...
absentx's user avatar
  • 1,427
24 votes
8 answers
35k views

I'm writing an engine that requires the use of getScript quite extensively. I've pushed it into its own function, for ease of use, but now I need to make sure that the function itself is synchronous. ...
8 votes
1 answer
11k views

When i try to upload using blueImp, i get the fllowing error when I open up the console: Uncaught TypeError: Cannot read property 'parseMetaData' of undefined accompanied by a stack trace. It seems I ...
GGomer's user avatar
  • 131
1 vote
1 answer
3k views

I am trying to load the Bing Maps API during runtime of my JavaScript file. Here is what i have got so far, based on this. var bingmap_link = 'https://www.bing.com/api/maps/mapcontrol?callback=...
Torben's user avatar
  • 478
0 votes
4 answers
4k views

I'm having trouble getting jquery's $.getScript to work. Here's a test file, demo.html: <!DOCTYPE html> <script src="/xyz/scripts/jquery-1.11.0.min.js"></script> <script> ...
3 votes
2 answers
2k views

I have five external JavaScript files that are making the page wait to load before these files are finished loading. I've been reading a lot about removing render-blocking javascript and it seems ...
3 votes
1 answer
578 views

I am using jQuery getScript to load X amount of js files into my page. Each of those JS pages has an AJAX call in it that fetches data from the database. I am using the .done method on getScript to ...
SBB's user avatar
  • 9,060
2 votes
4 answers
630 views

Question/Problem: I have several js files (~15) with some functions. To not have to include them all one by one in the html page, I want to create an include file (like in php with include(), require()...
Notsogood13's user avatar
0 votes
1 answer
712 views

So every time I am loading my getScript function on ajax success some of the js are working some of it are not. but if i'm loading trying to load it on my footer.php it's working. but I need to load ...
2 votes
0 answers
841 views

In order to make our application SPA, we have used a third party library Page.js along with ASP.NET MVC. Page.js Reference: https://visionmedia.github.io/page.js/ We perform basically two tasks by ...
1 vote
1 answer
470 views

I am using jQuery's getScript() to load separate javascript files. The files seem to load fine (I know this as when I put an incorrect URL, it throws an error - no error with the correct URL). ...
Fisu's user avatar
  • 3,324
1 vote
3 answers
405 views

I have several scripts I need to dynamically include in a specific order. I have looked at and tried several answers here: How to include multiple js files using jQuery $.getScript() method My ...
Stuart's user avatar
  • 193

15 30 50 per page
1
2