Skip to content

Commit cadc7e0

Browse files
committed
Moved inline scripts to the end of page
1 parent ce39324 commit cadc7e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

htmlpreview.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var HTMLPreview = {
5757
}
5858
}
5959
else if(script[i].innerHTML.indexOf('HTMLPreview') < 0) { //Move all inline scripts except HTMLPreview.replaceAssets()
60-
document.body.appendChild(script[i]);
60+
document.write(script[i].outerHTML);
6161
}
6262
}
6363
},

htmlpreview.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)