Patent ID: 8438474

Claim:
A method comprising: storing, in a memory associated with a computer device, cached content associated with a document; receiving, by the computer device, a request to access the document; determining, by the computer device, that the cached content needs to be revalidated before being rendered; sending, by the computer device and after determining that the cached content needs to be revalidated before being rendered, a request to revalidate the cached content to a server device associated with the document; performing, by the computer device and while waiting for a response to the request to revalidate the cached content, a speculative rendering of the document by using the cached content, the speculative rendering being performed as a plurality of work items that include one or more processes associated with displaying content of the document on a screen surface; receiving, by the computer device, revalidated content associated with the document as the response to the request to revalidate the cached content; determining, by the computer device, invalid work items of the plurality of work items based on the revalidated content; discarding, by the computer device, the invalid work items; and performing, by the computer device, a rendering of the document based on one or more of the plurality of work items that are not discarded and the revalidated content.