I am checking if jQuery is included in the document. If not I want create an element after the closing body tag.
If I do this with the body tag it appends it to the top. I wanna either append it to the end of the body tag or right after closing it.
document.body.appendChild(). It will append the element at the end of the body tag.
I'm assuming you want to do this because everbody is telling that it is important to put
<script> nodes at the buttom from
But in your case, no problem at all.
You can't have any other tags after the body closing tag (maybe head but that should be at the top). http://www.w3.org/TR/html401/struct/global.html#edef-HTML
©2020 All rights reserved.