external js file

I need to have my external projectjs.js file placed after the opening body tag I usually place it before the closing body tag. If I place it after the opening body tag my program fails to load
Thank you for your help!

Hi @asparker - do you see any errors in your browser DevTools Console? Is your external JS file relying on the contents of the page to function? If so, then having your code at the top of your document (after the opening body tag) may cause problems.

Just out of curiosity, why do you have to have your JS file be placed at the top instead of the bottom? :slight_smile:


It is part of my final project requirements

Gotcha! That’s understandable :slight_smile:

What errors do you see when you view your browser’s devtools console?