When using a script on Firefox, something was not working. Turns out, things were not being loaded across browsers the same. Particularly an SVG was not loaded at the same point in Chrome and FF.
So eventually I came to use the following:
window.addEventListener("load", function(){
setSettings();
}, false);
Rather than:
$(function(){
setSettings();
});
Any idea why this would not work the same…? Do both of these not fire once the document is loaded? Actually… wouldn’t the Jquery fire after the document is loaded, rather than the window?
I have a feeling I’m gonna learn me something here ;)