script tag js

·

1 min read

where to add a script tag

always add script tage when body is finished because if we add scritpt tag in html head we will not able to access html element

always add script tag bottom of the body

because if we add inside body dom tree will stop generating and it will give some error

in case of dom dom halts in

in case of cssom javascript halts