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 = ['https://www.example.de/_Resources/Static/Packages/Example.Site/news/newsHome.js', 'https://www.example.de/_Resources/Static/Packages/Example.Site/calendar/calendar2M-mapbox.js'];

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

Message permanent page

— Http://jakearchibald.github.io/request-quest/

— 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 😞