File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -352,9 +352,6 @@ class MiniCssExtractPlugin {
352
352
] ) ,
353
353
'}' ,
354
354
'var linkTag = document.createElement("link");' ,
355
- //JG: EDIT
356
- //'linkTag.type = "text/css";',
357
- //'linkTag.rel = "stylesheet";',
358
355
'linkTag.rel = "preload";' ,
359
356
'linkTag.as = "style";' ,
360
357
'linkTag.onload = resolve;' ,
@@ -386,10 +383,10 @@ class MiniCssExtractPlugin {
386
383
'}).then(function() {' ,
387
384
Template . indent ( [
388
385
'var execLinkTag = document.createElement("link");' ,
389
- 'execLinkTag.rel = "stylesheet";' ,
390
386
`execLinkTag.href = ${ mainTemplate . requireFn } .p + ${ linkHrefPath } ;` ,
391
- 'var body = document.getElementsByTagName("body")[0];' ,
392
- 'body.appendChild(execLinkTag);' ,
387
+ 'execLinkTag.rel = "stylesheet";' ,
388
+ 'execLinkTag.type = "text/css";' ,
389
+ 'document.body.appendChild(execLinkTag);' ,
393
390
'installedCssChunks[chunkId] = 0;'
394
391
] ) ,
395
392
'}));' ,
You can’t perform that action at this time.
0 commit comments