Hi, the external javascript file, won't be imported when I try that between <head/> tag. Simply, it is ignored. If I try to import it at the begin of <body> tag, it has been partially imported and still have no access to id's of the elements of the page. Only when I put
import statement just before closing </body> tag, everything works fine.
However, I need that javascript file to be loaded before the entire page is rendered, so I need to put .js at first two mentioned places. What is the problem?
I am using xhtml
doc type
thanks!