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'); });
gives
Dygraph not defined
in Firefox 11.0 and
[Dygraph 1.2]
in Chrome 17.0.963.83.
So, it seems that the script loads in both browsers, but does not start in Firefox 11 ... Why? How can I behave as I should?
This script is Dygraph , and from his site it works in Firefox, but my graphs only work on Chrome, perhaps because jQuery $ .getScript can behave differently ...
source share