JavaScript标签,性能和W3C [英] JavaScript tags, performance and W3C
本文介绍了JavaScript标签,性能和W3C的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我了解到,所有的JavaScript都必须放在head标签内...
谢谢。
解决方案
从文档:
这个元素可能出现在HTML文档的HEAD或BODY中任何次数。
Today I was looking for website optimization content and I found an article talking about move JavaScript scripts to the bottom of the HTML page. Is this valid with W3C's recommendations? I learned that all JavaScript must be inside of head tag... Thank you.
解决方案
From the documentation:
This element may appear any number of times in the HEAD or BODY of an HTML document.
这篇关于JavaScript标签,性能和W3C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文