建议在JavaScript无效之前包含CSS吗?
问题: In countless places online I have seen the recommendation to include CSS prior to JavaScript. 在网上无数的地方,我已经看到了在JavaScript之前包含CSS的建议。 The reasoning is generally, of this form : 一般来说,推理 的形式 如下: When it comes to ordering your CSS and JavaScript, you want your CSS to come first. 在订购CSS和JavaScript时,您希望首先使用CSS。 The reason is that the rendering thread has all the style information it needs to render the page. 原因是渲染线程具有渲染页面所需的所有样式信息。 If the JavaScript includes come first, the JavaScript engine has to parse it all before continuing on to the next set of resources. 如果首先包含JavaScript