Optimized delivery of web application code
AssigneeFacebook, Inc.
InventorRobert Kieffer
Life of this patent
Estimating the term…
Abstract
Application code for deployment to a client over a data link is optimized to minimize download time by supplying only the application code with a particular object that is required by the object. In a web application that includes multiple pages, the HTML and JAVASCRIPT are scanned to identify code resources called by a particular web page. When all called resources are identified, they are extracted and concatenated into a single resource file. When the page is downloaded to the client, the import file is included with the page. The import file may be cached so that it need only be downloaded once, rather than being downloaded every time the page is requested. The invention is suitable for use with other interpreted scripting languages.
Claims22
A method comprising:
- scanning a web page to identify external code referenced by the web page;
- extracting, using at least one processor, the identified external code referenced by the web page from at least one import file associated with the web page;
- concatenating, using the at least one processor, the extracted external code into a new import file;
- and
- sending the new import file and the web page to a client in response to a request from the client to access the web page.
A non-transitory computer-readable storage medium including a set of instructions that, when executed, cause at least one processor to perform steps comprising:
- scanning a web page to identify external code referenced by the web page;
- extracting the identified external code referenced by the web page from at least one import file associated with the web page;
- concatenating the extracted external code into a new import file;
- and
- sending the new import file and the web page to a client in response to a request from the client to access the web page.
A system comprising:
- a communication device for communicating with a client over a network;
- a server system comprising a memory and at least one processor;
- and
- a program stored in the memory and configured to be executed by the at least one processor to:
- scan a web page to identify external code referenced by the web page;
- extract the identified external code referenced by the web page from at least one import file associated with the web page;
- concatenate the extracted external code into a new import file;
- and
- send, via the communication device, the new import file and the web page to the client in response to a request from the client to access the web page.
Dependencies are inferred from the claim text.