The following code
$.getScript("/js/dygraph-combined.js")
.done(function(script, textStatus) {
console.log(Dygraph);
})
.fail(function(jqxhr, settings, exception) {
console.error('it failed to load');
});
yields
Dygraph is not defined
in Firefox 11.0, and
[Dygraph 1.2]
on Chrome 17.0.963.83.
So it seems that the script loads on both browsers but doesn't get executed in Firefox 11... Why would that be ? How do I get this behaving like it should ?
This script is Dygraph and from it's website it works on Firefox, but my graphs only work on Chrome possibly because jQuery's $.getScript might be behaving differently...