Alternative to before </body> tag inline Javascript
Posted
by Mohammad
on Stack Overflow
See other posts from Stack Overflow
or by Mohammad
Published on 2010-04-22T11:27:43Z
Indexed on
2010/04/22
11:33 UTC
Read the original article
Hit count: 329
I know inline Javascript is frowned upon and with the new on-the-fly Javascript compressors that check for idle/unused function usage and omit the unused code, it seems good practice to have all your Javascript in an external file.
My question is, in situations like FOUC (flash of unstyled content) which usually require little snippets of code right before the closing </body>
tag, is there a JQuery resolution that would serve the same purpose, but from a remote Javascript file linked in the <head>
of the document?
© Stack Overflow or respective owner