Skip to content

Commit ce39324

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

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
@@ -56,7 +56,7 @@ var HTMLPreview = {
5656
HTMLPreview.send(src, 'loadJS'); //Then load it using YQL
5757
}
5858
}
59-
else {
59+
else if(script[i].innerHTML.indexOf('HTMLPreview') < 0) { //Move all inline scripts except HTMLPreview.replaceAssets()
6060
document.body.appendChild(script[i]);
6161
}
6262
}

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)