Patent Document ID: 8424004
Application ID: 11767486

Base Claim:
1. A method for analyzing one or more scripts contained within a document to determine if the one or more scripts perform one or more predefined functions, the method comprising the steps of: from the one or more scripts contained within the document, identifying one or more relevant scripts that perform the one or more predefined functions; interpreting the one or more relevant scripts; intercepting an external function call from the one or more relevant scripts to a document object model of the document while the one or more relevant scripts are being interpreted, wherein the external function call can only be properly responded to with reference to the document object model; generating, independently of the document object model and prior to a construction of a relevant portion of the document object model that would have been required to properly respond to the intercepted external function call, a generic response to the intercepted external function call that was directed to the document object model; providing the generic response to the intercepted external function call; constructing the document object model after the provision of the generic response only if the provision of the generic response did not enable further operation of the relevant scripts; and providing a specific response, obtained with reference to the constructed document object model, to the external function call if the browser was requested to construct the document object model.

---

Claim 3:
3. The method of claim 1 further comprising the steps of: detecting new script added by the interpreting the one or more scripts; and providing the new script to the interpreting the one or more scripts such that the interpreting the one or more scripts comprises interpreting the new script.