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.