Patent ID: 7937405

Claim:
A computer-implemented method comprising: a) accepting a request for content-relevant advertisements for rendering with a document for presentation to a user, the request including a document identifier of the document; b) responsive to the request and using the document identifier, determining whether or not document information of the document is available locally; c) when it is determined that the document information of the document is not available locally, performing one of: (i) using a script to have a content rendering application provide document information of the document, (ii) retrieving document information of the document immediately, or (iii) saving the document identifier for later retrieval of document information of the document, otherwise, when it is determined that the document information of the document is available locally, performing at least one of (i) extracting document relevance information using the document information, or (ii) generating document relevance information using the document information; and d) targeting the serving of content-relevant advertisements to the content of the document, identified by the document identifier, using the document information of the document, wherein the act of using a script to have a content rendering application provide document information of the document is performed and includes returning executable instructions for reading document information of the document to the content rendering application; and setting, with the content rendering application, a document identifier, to address desired document information of the document.