×

Transparently intercepting and optimizing resource requests

  • US 9,825,812 B2
  • Filed: 07/09/2014
  • Issued: 11/21/2017
  • Est. Priority Date: 12/05/2013
  • Status: Active Grant
First Claim
Patent Images

1. A method, comprising:

  • sending a request to a server, wherein the request is sent by software code executing on a computer, wherein the software code includes a browser and a set of functions for obtaining and presenting information, and wherein the set of functions can be invoked by scripts that are retrieved by the browser;

    in response to the request, receiving a first script and at least a second script from the server, wherein the first script includes instructions for adding a proxy software layer to intercept invocations to the set of functions, wherein the second script includes at least one invocation to at least one function in the set of functions, and wherein the first script and at least the second script are received by the browser;

    executing the first script on the computer, thereby adding the proxy software layer to intercept subsequent invocations to each function in the set of functions;

    executing the second script on the computer;

    when the executing second script invokes a function in the set of functions,the proxy software layer intercepting said invocation of the function, andthe proxy software layer invoking a resource optimization handler corresponding to the function instead of invoking the function, wherein the second script invoked the function to retrieve a resource from a remote location;

    wherein in response to determining that an optimized version of the resource is available, the invoked resource optimization handler retrieves the optimized version of the resource, generates a non-optimized version of the resource from the optimized version of the resource, and returns the non-optimized version of the resource to the script; and

    wherein the invoked resource optimization handler determines that the optimized version of the resource is available by performing a lookup on a table using an identifier associated with the resource, wherein the table maps identifiers associated with resources to identifiers associated with optimized resources, wherein the invoked resource optimization handler determines that the optimized version of the resource is available if the lookup succeeds, and wherein the invoked resource optimization handler determines that the optimized version of the resource is not available if the lookup fails.

View all claims
  • 9 Assignments
Timeline View
Assignment View
    ×
    ×