Do external stylesheets get loaded before the HTML?

后端 未结 4 1140
夕颜
夕颜 2021-01-07 21:30

If I have external stylesheets being included in the section of my HTML page, will they be loaded before the HTML and immediately appl

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-07 22:15

    If you include the CSS in the head section, you can be confident that the label will not show.

    The HTML is downloaded first. The browser starts reading the html from the top, and starts fetching all CSS and JavaScript files referenced in the HEAD section. The page will not be painted (shown) until all the CSS and JavaScript files in the HEAD have been downloaded and evaluated.

提交回复
热议问题