diff --git a/app/assets/javascripts/discourse/app/lib/load-script.js b/app/assets/javascripts/discourse/app/lib/load-script.js index 38d2710e1f6..8aca0d5f95b 100644 --- a/app/assets/javascripts/discourse/app/lib/load-script.js +++ b/app/assets/javascripts/discourse/app/lib/load-script.js @@ -20,6 +20,11 @@ function loadWithTag(path, cb) { registerWaiter(() => finished); } + // Don't leave it hanging if something goes wrong + s.onerror = function () { + finished = true; + }; + s.onload = s.onreadystatechange = function (_, abort) { finished = true; if (