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

后端 未结 5 1201
刺人心
刺人心 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:26

    That is a problem with Chrome. The developers of chrome for some reason have still not corrected that. If you have alert or a prompt pop-up, which is the first thing that user has to interact with in your website, chrome will not load HTML until after the pop-up has been closed.

提交回复
热议问题