+ 2
Script Location within HTML
In this example, the script is located in the head. Would this cause functionality issues since itâs not located at the end of the body? With the way itâs set up now, my understanding is that elements on the page wonât be loaded before the script is run.
1 RĂ©ponse
+ 6
Well, if the script loads before the document, if it involves getting some elements, then yes.
Else, no.