IDENTIFYING APPROPRIATE CLIENT-SIDE SCRIPT REFERENCES
First Claim
1. At a Web server, a method for identifying appropriate client-side script references, the method comprising:
- an act of receiving a Web page request from the Web browser;
an act of accessing a server side page that corresponds to the Web page;
an act of executing the server side page, including executing a script manager that is included in the server side page;
an act of the script manager receiving a registration request from one or more other controls in the server side page during execution of the server side page, each registration request requesting registration of referenced scripts that are to be used at the Web browser to render the Web page;
for each received registration request, an act of the script manager processing the registration of each referenced script, including;
an act of determining if the referenced script is appropriately optimized for executing in a designated script execution environment at the Web browser;
an act of determining if the referenced script is stored in a location that is an appropriate script source;
an act of determining a new script reference for the referenced script based on the determinations, the new script reference indicating where the Web browser is to obtain an appropriate instance of the script;
an act of determining if the new script reference is already included in the list of script references as a result of processing a prior script reference registration request; and
an act of including the new script reference in the list of script references when the new script reference is not already included in the list of script references; and
an act of rendering the list of script references to the Web browser in response to the Web page request.
2 Assignments
0 Petitions
Accused Products
Abstract
The present invention extends to methods, systems, and computer program products for identifying appropriate client-side script references. Embodiments of the invention facilitate tailoring a list of script references to send to a Web browser based on a list of script references included in a server page. Referenced scripts sent to a Web browser can differ from referenced scripts included in the server page. Script references sent to a Web browser can refer to scripts optimized for the execution environment of the Web browser and to scripts stored at preferred script sources. Further, duplicate script references are removed prior to sending a list of script references to the Web browser. Since script lists sent to Web browsers are tailored for execution environment and duplicates are removed, scripts can be loaded and processed more effectively at Web browsers.
-
Citations
20 Claims
-
1. At a Web server, a method for identifying appropriate client-side script references, the method comprising:
-
an act of receiving a Web page request from the Web browser; an act of accessing a server side page that corresponds to the Web page; an act of executing the server side page, including executing a script manager that is included in the server side page; an act of the script manager receiving a registration request from one or more other controls in the server side page during execution of the server side page, each registration request requesting registration of referenced scripts that are to be used at the Web browser to render the Web page; for each received registration request, an act of the script manager processing the registration of each referenced script, including; an act of determining if the referenced script is appropriately optimized for executing in a designated script execution environment at the Web browser; an act of determining if the referenced script is stored in a location that is an appropriate script source; an act of determining a new script reference for the referenced script based on the determinations, the new script reference indicating where the Web browser is to obtain an appropriate instance of the script; an act of determining if the new script reference is already included in the list of script references as a result of processing a prior script reference registration request; and an act of including the new script reference in the list of script references when the new script reference is not already included in the list of script references; and an act of rendering the list of script references to the Web browser in response to the Web page request. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
-
-
16. A computer program product for use at a Web server, the computer program product for implementing a method for identifying appropriate client-side script references, the computer-program product comprising one or more computer-readable media having stored thereon computer-executable instructions that, when executed at a processor, cause the Web server to perform the method, including the following:
-
receive a Web page request from the Web browser; access a server side page that corresponds to the Web page; execute the server side page, including executing a script manager that is included in the server side page; receive a registration request from one or more controls in the server side page during execution of the server side page, each registration request requesting registration of referenced scripts that are to be used at the Web browser to render the Web page; for each received registration request, process the registration of each referenced script, including the following; determine if the referenced script is appropriately optimized for executing in a designated script execution environment at the Web browser; determine if the referenced script is stored in a location that is an appropriate script source; determine a new script reference for the referenced script based on the determinations, the new script reference indicating where the Web browser is to obtain an appropriate instance of the script; determine if the new script reference is already included in the list of script references as a result of processing a prior script reference registration request; and include the new script reference in the list of script references when the new script reference is not already included in the list of script references; and render the list of script references to the Web browser in response to the Web page request. - View Dependent Claims (17, 18, 19)
-
-
20. A computer system including:
-
one or more processors; system memory; and one or more computer-readable media having stored thereon computer-executable instructions representing a Web server, the Web server configured to; receive a Web page request from the Web browser; access a server side page that corresponds to the Web page; execute the server side page, including executing a script manager that is included in the server side page; and render a list of script references to the Web browser in response to the Web page request. one or more computer-readable media having stored thereon computer-executable instructions representing the script manager, the script manager configured to; receive a registration request from one or more controls in the server side page during execution of the server side page, each registration request requesting registration of referenced scripts that are to be used at the Web browser to render the Web page; and for each received registration request, process the registration of each referenced script, including the following; determine if the referenced script is appropriately optimized for executing in a designated script execution environment at the Web browser; determine if the referenced script is stored in a location that is an appropriate script source; determine a new script reference for the referenced script based on the determinations, the new script reference indicating where the Web browser is to obtain an appropriate instance of the script; determine if the new script reference is already included in the list of script references as a result of processing a prior script reference registration request; and include the new script reference in the list of script references when the new script reference is not already included in the list of script references.
-
Specification