Skip to content

Commit 2471e40

Browse files
committed
Merge pull request webpack#535 from diurnalist/feature/async-jsonp-chunks
Load extra JSONP chunks with async script tags
2 parents 86a403d + b3f0dda commit 2471e40

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎lib/JsonpMainTemplatePlugin.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ JsonpMainTemplatePlugin.prototype.apply = function(mainTemplate) {
5959
"var script = document.createElement('script');",
6060
"script.type = 'text/javascript';",
6161
"script.charset = 'utf-8';",
62+
"script.async = true;",
6263
"script.src = " + this.requireFn + ".p + " +
6364
this.applyPluginsWaterfall("asset-path", JSON.stringify(chunkFilename), {
6465
hash: "\" + " + this.renderCurrentHashCode(hash) + " + \"",

0 commit comments

Comments
 (0)