问题
I've just started using SyntaxHighlighter.
I looked at their HTML source code for this page and noticed that they put some link and script tags between </body>
and </html>
. I guess it helps the page turns up faster plus with their new autoload
function. But is that valid/okay (according to the HTML validator, it is not)? will it cause any weird stuff in some browsers?
Thanks
回答1:
But is that valid
No
/okay?
Subjective
will it cause any weird stuff in some browsers?
Doubtful, but you might as well move the script to just before </body>
as is traditional for end-of-document script loading.
来源:https://stackoverflow.com/questions/9401157/link-script-tags-between-body-and-html