Message from JavaScript discussions

September 2020

— Ctrl+shift+f


You can't search for browser defined globals though. But you can find out if it comes from the browser with fn.toString()

— Thanks

— I really really really hate Safari

— (on iOS)

— Does the load event never fire on that or am I stupid?

— (or both)

— Asked in a different way: Why does this work in every browser except Safari?

var dateien = ['', ''];

function jsOnload() {
for (var i in dateien) {
var element = document.createElement("script");
element.src = dateien[i];
if (window.addEventListener) window.addEventListener("load", jsOnload, false);
else if (window.attachEvent) window.attachEvent("onload", jsOnload);
else window.onload = jsOnload;

Message permanent page

— Http://

— This guy made a quiz with immediate answers to outline which loading behavior is different in which browser

Message permanent page

— It is very interesting

— But it does not include the solution to my problem 😞