15. 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 of claim 1 .
1. At a Web server, a method for identifying appropriate client-side script references, the method comprising: an act of receiving, at a Web server, a Web page request from a Web browser; an act of accessing a server side page that corresponds to the requested Web page, the server side page including a script manager reference that references a script manager script; an act of executing the server side page, including executing the script manager referenced by the script manager reference to load the script manager; an act of the script manager receiving a list of client-side script references that are to be included in the Web page to be sent to the Web browser; an act of the script manager determining, based on script selection rules, whether the list of client-side script references is to be modified prior to sending the list to the Web browser, including, for at least one client-side script reference in the list: (i) a first act of determining, based on the script selection rules, if the client-side script referenced by the client-side script reference is appropriately optimized for executing in a designated script execution environment at the Web browser; or (ii) a second act of determining, based on the script selection rules, if the client-side script referenced by the client-side script, reference is stored in a location that is an appropriate source; an act of the script manager modifying the list of client-side script references by replacing at least one client-side script reference in the list with a different client-side script reference that was selected as a more appropriate client-side script reference based on the script selection rules, wherein modifying the list includes replacing a client-side script reference that references a release version of a client-side script with a client-side script reference that references a debug version of a client-side script; and an act of sending the modified list of client-side script references to the browser to be used in rendering the Web page.