When css and js files are introduced into html, what is the difference between head or body?

CSS is introduced into the head because the styles need to be loaded in advance to give customers a good visual experience

JS is introduced at the end of the body as much as possible, because it can relieve the pressure of the browser and enhance the loading speed of the web page

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reward the sharer

          If this sharing has helped you, then reward me. If you have money, you can support a money field (support Alipay and WeChat donations), but if you don’t have money, you can support a personal field. With everyone’s support, we will be more motivated and will do better, thank you.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326695414&siteId=291194637