diff --git a/index.html b/index.html
index d8453ed83..e6a5839fd 100644
--- a/index.html
+++ b/index.html
@@ -113,6 +113,11 @@
window.setTimeout(
function () { window.location.replace(href); }, delay);
+
+ // Call extra handler if defined.
+ if (typeof postLoadErrorHandler === "function") {
+ postLoadErrorHandler();
+ }
};
window.removeEventListener(
'error', loadErrHandler, true /* capture phase */);