We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ae6c7a4 + 9791c0b commit 3f183b5Copy full SHA for 3f183b5
lib/web/JsonpMainTemplatePlugin.js
@@ -173,7 +173,6 @@ class JsonpMainTemplatePlugin {
173
"onScriptComplete({ type: 'timeout', target: script });"
174
]),
175
`}, ${chunkLoadTimeout});`,
176
- "script.onerror = script.onload = onScriptComplete;",
177
"function onScriptComplete(event) {",
178
Template.indent([
179
"// avoid mem leaks in IE.",
@@ -196,7 +195,8 @@ class JsonpMainTemplatePlugin {
196
195
197
"}"
198
199
- "};"
+ "};",
+ "script.onerror = script.onload = onScriptComplete;"
200
]);
201
}
202
);
0 commit comments