Optimized delivery of web application code
First Claim
1. A procedure for optimizing application code for deployment to a client over a data link, wherein only the code needed by a first object within said application code is supplied to the client with said first object, wherein said application code comprises a web application, said web application further comprising at least one import file of code, said procedure comprising the steps of:
- analyzing said first object;
without requiring any input from any user, automatically determining all external code needed by said first object in order to implement its functionality, wherein automatically determining all external code needed by said first object in order to implement its functionality further comprises identifying any embedded code blocks and said at least one import file, and identifying all resources needed by said first object in order to implement its functionality contained therein;
extracting all the determined external code needed by the first object in order to implement its functionality from said any embedded code blocks and said at least one import file, wherein said any embedded code blocks and said at least one import file from which the needed code is extracted further contains unneeded code, which is not extracted;
concatenating all the extracted external code needed by the first object in order to implement its functionality into a single file;
wherein said single file contains only the code required by said first object in order to implement its functionality; and
transmitting said single file to the client.
7 Assignments
0 Petitions
Accused Products
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.
83 Citations
42 Claims
-
1. A procedure for optimizing application code for deployment to a client over a data link, wherein only the code needed by a first object within said application code is supplied to the client with said first object, wherein said application code comprises a web application, said web application further comprising at least one import file of code, said procedure comprising the steps of:
-
analyzing said first object; without requiring any input from any user, automatically determining all external code needed by said first object in order to implement its functionality, wherein automatically determining all external code needed by said first object in order to implement its functionality further comprises identifying any embedded code blocks and said at least one import file, and identifying all resources needed by said first object in order to implement its functionality contained therein; extracting all the determined external code needed by the first object in order to implement its functionality from said any embedded code blocks and said at least one import file, wherein said any embedded code blocks and said at least one import file from which the needed code is extracted further contains unneeded code, which is not extracted; concatenating all the extracted external code needed by the first object in order to implement its functionality into a single file; wherein said single file contains only the code required by said first object in order to implement its functionality; and transmitting said single file to the client. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21)
-
-
22. At least one computer readable storage medium containing a computer program product for optimizing application code for deployment to a client over a data link, wherein only the code needed by a first object within said application code is supplied to the client with said first object, wherein said application code comprises a web application, said web application further comprising at least one import file of code, said computer program product comprising:
-
program code for analyzing said first object; program code for, without requiring any input from any user, automatically determining all external code needed by said first object in order to implement its functionality, wherein automatically determining all external code needed by said first object in order to implement its functionality further comprises identifying any embedded code blocks and said at least one import file, and identifying all resources needed by said first object in order to implement its functionality contained therein; program code for extracting all the determined external code needed by the first object in order to implement its functionality from said any embedded code blocks and said at least one import file, wherein said any embedded code blocks and said at least one import file from which the needed code is extracted further contains unneeded code, which is not extracted; program code for concatenating all the extracted external code needed by the first object in order to implement its functionality into a single file; wherein said single file contains only the code required by said first object in order to implement its functionality; and program code for transmitting said single file to the client. - View Dependent Claims (23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42)
-
Specification