Stylesheets load in parallel, but if you have a stylesheet followed by an inline script, parallel downloads are broken.
样式表并行加载,但是如果您有一个行内脚本跟随着样式表,并行下载规则被破坏。
To do so, add additional code to the inline script block you created earlier (see Listing 4). Listing 9 shows the inline script block.
为此,需要在前面创建的内联脚本块(见清单4)中添加代码。
In fact, there's an argument that perhaps this should be included as an inline script, seeing as it's not going to be used on other pages.
实际上,是否应该将其作为内联脚本,还有争论,这取决与它是否会被其他页面使用。
应用推荐