Google Chrome loads the javascript first even I put the script tag before the end of the body tag

后端 未结 5 1199
刺人心
刺人心 2021-02-11 06:19


I have a problem with loading JavaScript in Google Chrome.
I\'ve created the separate js file with a simple alert message and then linked it before the end of the body

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-11 06:38

    I also had this problem and realized that my Google chrome was just loading the cached version of page(the one before putting my script tag near bottom). Closing the window and reopening the page worked fine.

提交回复
热议问题