摘要 |
Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for speeding up document loading. In some implementations, a resource of a document is requested from a first source, and metadata for the document is requested from a second source that is different from the first source. The requested metadata is received from the second source, and the requested resource is received from the first source. A first representation of the document based on the received metadata is provided for display. After providing the first representation, a second representation of the document that combines portions of the first representation with additional portions of the document is generated, and the second representation is provided for display. |
主权项 |
1. A method performed by data processing apparatus, the method comprising:
requesting, by a client device and over a network, a resource of a document from a first source; before receiving the requested resource, requesting, by the client device and over the network, metadata for the document from a second source that is different from the first source; receiving, by the client device, the requested metadata for the document from the second source, wherein the received metadata comprises data indicating characteristics of layout or formatting of the document; receiving, by the client device, the requested resource of the document from the first source; providing, for display and by the client device, a first representation of the document based on the received metadata from the second source; and after providing, for display, the first representation of the document based on the metadata from the second source:
generating, by the client device, a second representation that combines portions of the first representation with additional portions of the document; andproviding, for display and by the client device, the second representation that combines portions of the first representation with the additional portions of the document. |