Skip to main content
6 events
when toggle format what by license comment
May 23, 2017 at 12:34 history edited URL Rewriter Bot
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Dec 10, 2014 at 16:32 comment added Laurens Rietveld I've taken this approach as well, but I recommend using cache:true for the $.getScript call (this is off by default). This way, for most requests, it automatically uses the cached version for the getScript call (saving you latency)
May 7, 2014 at 9:04 comment added Pacerier The problem with using jQuery (or another library) is that you need to first load that library. So how do you check if that library failed to load?
Nov 14, 2013 at 0:47 comment added Sergey Orshanskiy Yes. As I recall, this approach does have limitations: you won't be able to load many scripts in this way --- if I remember correctly, because of cross-domain scripting restrictions.
Nov 13, 2013 at 18:24 comment added jjwdesign Nice Sergey! So, you're using .get() to check if the file exists and .getScript() to check to see if it can be executed/loaded without errors?
Oct 14, 2013 at 3:24 history answered Sergey Orshanskiy CC BY-SA 3.0