Patent ID: 8181107

Claim:
A system comprising: an optimization server configured to receive from a content server response data that corresponds to request data transmitted by a mobile device, wherein: the request data includes a request for the response data and identification data of the mobile device, to adapt the response data to the mobile device based on the identification data, and to transmit the adapted response data to the mobile device, wherein the adapted response data is based on the optimization server extracting a first global JavaScript object from a data structure and an associated JavaScript file to a global object map, wherein: the data structure and the associated JavaScript file represent the response data, executing, without invocation from the mobile device, JavaScript functions to be executed by the mobile device upon receiving and loading the response data, wherein: the execution updates the data structure, determining whether a node of the updated data structure includes an attribute whose value is associated with the first global JavaScript object to be included in the adapted response data, parsing the attribute value for any reference to the first global JavaScript object based on the determination, creating a dependency set for the first global JavaScript object based on the parsing, wherein: the dependency set provides a second global JavaScript object on which the first global JavaScript object relies, decompiling the first global JavaScript object of the dependency set and the second global JavaScript object into source code, and constructing a final JavaScript source code based on the decompilation.