My website has been having issues with Firefox. This appears to have started recently, I imagine with a newer version of Firefox. We were using esri for javascript 4.25, but we have just updated to 4.30 and are getting the same issue. On loading the map, we get an intermittent error:
TypeError: ua.parentNode is null
This occurs on the require[] call and specifically in the case below, occurs when the SceneView is requested, but on our website where there are many more maps and layers called, removing SceneView doesn't solve the issue. I have hosted an example of the problem here:
https://tobyodonnell-aiau.github.io/StaticSite/
If you view the console, on Chrome/Edge you will get a 'Map module loaded successfully.' message. On Firefox the 'TypeError: ua.parentNode is null' will present itself most of the time. The exact code hosted is below:
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script src="https://js.arcgis.com/4.30/init.js" data-dojo-config="async: true"></script>
<script>
window.onload = function () {
try {
require([
"esri/Basemap",
"esri/views/SceneView"
], function (
Map,
SceneView) {
console.log("Map module loaded successfully.");
// logic here
});
}
catch (e) {
console.log(e);
}
};
</script>
</head>
<body></body>
</html>
This issue happens regularly for Firefox, but not for other browsers. If you put the above code into codepen or another website to test the code, we don't see the issue, but it is easily repeatable with the link above.
Does anyone have any suggestions on how to mitigate this issue, or is this just a bug to raise?
Thanks.