Patent ID: 8549099

Claim:
A method of parsing a script within an HTML page to identify a URL for prefetching, the method comprising: receiving a script object; parsing the script object with a token list in order to identify a token that indicates a possible URL in the script; parsing before and after the token with a script parser; identifying, by the parsing before and after the token, a plurality of URL strings and a script operator, wherein at least one of the URL strings comprises an expression associated with a variable; constructing a complete URL using the plurality of URL strings and the script operator, wherein the script operator provides instructions for creating at least a portion of the complete URL using the plurality of strings, and wherein the complete URL does not include the script operator or the expression; forwarding the complete URL to a detector, wherein the detector determines whether the complete URL is valid; sending object retrieval requests to websites associated with the valid complete URL; and prefetching data objects from webpages associated with the valid complete URL.