let timerId = setInterval(() => { thisisanewguy = "true"; }, 1000);
if (thisisanewguy != "true") {
if (popup == "false") {
if (cancelled2 != "true" && $('[id$=div_contactinfo]').length == 0 && $('[id$=div_specpopup]').length == 0 && $('[id$=familymold]').length == 0 && $('[id$=div_load]').length == 0 &&
$('[id$=painting]').length == 0 && $('[id$=printing]').length == 0 && $('[id$=customprocess]').length == 0 && $('[id$=insert]').length == 0 &&
$('[id$=assembly]').length == 0 && $('[id$=addpart2]').length == 0 && $('#div_background2').css("display") != "block" && $('#div_background').css("display") != "block" && $('#lightbox').css("display") == "none") {
setTimeout(function () {
if (!mouseEnter && cancelled2 != "true" && thisisanewguy != "true") {
$('#alldone').css("display", "block");
$('#div_background2').css("display", "block");
}
}, 5000);
}
else if ($('[id$=div_contactinfo]').length > 0) {
let timerId = setInterval(() => { thisisanewguy = "true"; }, 1000);
// after 10 seconds stop
setTimeout(() => { clearInterval(timerId); thisisanewguy = "false"; }, 10000);
}
}
}
Конечно, в других браузерах все в порядке. Сегодня мы обнаружили, что IE падает здесь. И я так и не понял, как это обойти. 8% наших клиентов все еще используют IE.





Я вижу, что вы используете функции => Arrow в своем коде, которые не поддерживаются в Internet Explorer.
Посмотреть здесь...
Ссылка:
Чтобы решить эту проблему, вам нужно перенести код с ES6 на ES5.
Вы можете использовать Вавилон для переноса кода.
Это пример транспилированного кода с использованием Babel.
"use strict";
if (thisisanewguy != "true") {
if (popup == "false") {
if (cancelled2 != "true" && $('[id$=div_contactinfo]').length == 0 && $('[id$=div_specpopup]').length == 0 && $('[id$=familymold]').length == 0 && $('[id$=div_load]').length == 0 && $('[id$=painting]').length == 0 && $('[id$=printing]').length == 0 && $('[id$=customprocess]').length == 0 && $('[id$=insert]').length == 0 && $('[id$=assembly]').length == 0 && $('[id$=addpart2]').length == 0 && $('#div_background2').css("display") != "block" && $('#div_background').css("display") != "block" && $('#lightbox').css("display") == "none") {
setTimeout(function () {
if (!mouseEnter && cancelled2 != "true" && thisisanewguy != "true") {
$('#alldone').css("display", "block");
$('#div_background2').css("display", "block");
}
}, 5000);
} else if ($('[id$=div_contactinfo]').length > 0) {
var timerId = setInterval(function () {
thisisanewguy = "true";
}, 1000); // after 10 seconds stop
setTimeout(function () {
clearInterval(timerId);
thisisanewguy = "false";
}, 10000);
}
}
}