发明名称 Style sheet speculative preloading
摘要 Methods for preloading for a web page externally specified resources of a style sheet are provided. In one aspect, a method includes identifying at least one externally specified resource specified by a style sheet for a web page during download of at least one of the style sheet or the web page. The at least one externally specified resource includes at least one of an image, font, audio data, or video data. The method also includes determining whether the web page includes instructions to load the at least one externally specified resource, and loading the at least one externally specified resource specified by the style sheet for the web page when the determination indicates the web page includes instructions to load the at least one externally specified resource. Systems and machine-readable media are also provided.
申请公布号 US9330074(B2) 申请公布日期 2016.05.03
申请号 US201314069311 申请日期 2013.10.31
申请人 GOOGLE INC. 发明人 Simonsen James;Gentilcore Anthony Charles
分类号 G06F17/00;G06F17/22;G06F17/30 主分类号 G06F17/00
代理机构 McDermott Will & Emery LLP 代理人 McDermott Will & Emery LLP
主权项 1. A computer-implemented method for preloading for a web page externally specified resources of a style sheet, the method comprising: identifying each externally specified resource specified by a style sheet for a web page after completing download of the style sheet and prior to completion of download of the web page, each externally specified resource comprising at least one of an image, font, audio data, or video data, and the style sheet and the web page being separate files; constructing a Document Object Model (DOM) and render tree while the web page is being downloaded; determining whether the web page includes instructions to load the at least one externally specified resource by comparing the render tree as the render tree is constructed while the web page is being downloaded against each externally specified resource from the completed download of the style sheet for the web page to determine whether the render tree includes instructions to load at least one of the externally specified resources, and loading the at least one externally specified resource specified by the style sheet for the web page when the determination indicates the web page includes instructions to load the at least one externally specified resource.
地址 Mountain View CA US