What is speculative parsing?

前端 未结 2 1772
孤城傲影
孤城傲影 2021-02-05 23:02

I\'ve read that Firefox 3.5 has a new feature in its parser ?

Improvements to the Gecko layout engine, including speculative parsing for faster conten

2条回答
  •  粉色の甜心
    2021-02-05 23:32

    I think it means that when the browser would normally block (for example for a script tag), it will continue to parse the HTML. It will not create an actual DOM until the missing pieces are loaded, but it will start fetching script files and stylesheets in the background.

提交回复
热议问题