link, script tags between </body> and </html>
Asked Answered
B

1

1

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

Bousquet answered 22/2, 2012 at 18:55 Comment(0)
B
3

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.

Biogen answered 22/2, 2012 at 19:2 Comment(4)
will it slow down the site though?Bousquet
By starting the script loading 9 bytes earlier? No.Biogen
if you look at the very last script tag /SyntaxHighlighter/scripts/main.js. It looks like it has to be called at the end of the page anyway. If I put it on top it won't workBousquet
Nobody said anything about putting it at the top.Biogen

© 2022 - 2024 — McMap. All rights reserved.