DYNAMICALLY LOADING SCRIPTS
First Claim
1. At a computer system connected to a network, the computer system including a Web browser configured to render Web pages at the computer system, a method for dynamically loading scripts at the Web browser, the method comprisingan act of receiving a Web page from a Web server, the Web page sent to the Web browser in response to a request for the Web page from the Web browser, the Web page including a reference to a script loader, the script loader configured to, upon execution, create a data structure for queuing other script references, the script loader also configured to, upon an indication from the Web browser, dynamically load scripts referenced in the Web page in accordance with script loading rules to override the default script loading behavior of the Web browser;
- an act of executing the script loader to create a data structure for queuing script referencesan act of processing the Web page to queue any script references included in the Web page in the data structure;
an act of detecting that no further script references are included in the Web page subsequent to queuing any script references included in the Web page in the data structure;
an act of indicating to the script loader that no further script references are included in the Web page so as to cause the script loader to dynamically load scripts corresponding to the queued script references in accordance with the script loading rules to override the default script loading behavior of the Web browser; and
an act of including any relevant script results in a rendering of the Web page.
2 Assignments
0 Petitions
Accused Products
Abstract
The present invention extends to methods, systems, and computer program products for dynamically loading scripts. Web pages can include references to script loaders that control the loading of other scripts at a Web browser. A script loader can load scripts in accordance with script loading rules that override the default script loading behavior of the Web browser. Script loading rules can cause scripts to load in a different order than encountered in a Web pager, load in parallel, load in a manner that limits cross-domain requests, etc. Script loading rules are configurable such at that a developer can create customized script loading behavior.
55 Citations
20 Claims
-
1. At a computer system connected to a network, the computer system including a Web browser configured to render Web pages at the computer system, a method for dynamically loading scripts at the Web browser, the method comprising
an act of receiving a Web page from a Web server, the Web page sent to the Web browser in response to a request for the Web page from the Web browser, the Web page including a reference to a script loader, the script loader configured to, upon execution, create a data structure for queuing other script references, the script loader also configured to, upon an indication from the Web browser, dynamically load scripts referenced in the Web page in accordance with script loading rules to override the default script loading behavior of the Web browser; -
an act of executing the script loader to create a data structure for queuing script references an act of processing the Web page to queue any script references included in the Web page in the data structure; an act of detecting that no further script references are included in the Web page subsequent to queuing any script references included in the Web page in the data structure; an act of indicating to the script loader that no further script references are included in the Web page so as to cause the script loader to dynamically load scripts corresponding to the queued script references in accordance with the script loading rules to override the default script loading behavior of the Web browser; and an act of including any relevant script results in a rendering of the Web page. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. At a computer system connected to a network, the computer system including a Web browser configured to render Web pages at the computer system and a script loader configured to dynamically load scripts referenced in a Web page to override the default script loading behavior of the Web browser, the method comprising
an act of creating a queue configured to store script references; -
an act populating the queue with script references included a specified Web page; an act of receiving an indication from the Web browser that no further script references are included in the specified Web page; and an act of causing scripts referenced by the queued script references to load in accordance with script loading rules to override the default script loading behavior of the Web browser. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A computer system, the computer system comprising:
-
one or more processors; system memory; one or more computer-readable media having stored thereon computer-executable instructions representing a Web browser that, when executed at one of the processors, cause the Web browser to be configured to; receive a Web page from a Web server, the Web page sent to the Web browser in response to a request for the Web page from the Web browser, the Web page including a reference to computer-executable instructions representing a script loader, the script loader configured to, upon execution, create a data structure for queuing other script references, the script loader also configured to, upon an indication from the Web browser, dynamically load scripts referenced in the Web page in accordance with script loading rules to override the default script loading behavior of the Web browser; executing the computer-executable instructions of the script loader to create a data structure for queuing script references process the Web page to queue any script references included in the Web page in the data structure; detect that no further script references are included in the Web page subsequent to queuing any script references included in the Web page in the data structure; indicate to the script loader that no further script references are included in the Web page so as to cause the script loader to dynamically load scripts corresponding to the queued script references in accordance with the script loading rules to override the default script loading behavior of the Web browser; and upon execution of the computer-executable instructions representing the script loader, storing executable-instructions representing the script loader into system memory that, when executed at one of the processors, cause the script loader to be configured to; create a queue configured to store script references; populate the queue with script references included a specified Web page; receive an indication from the Web browser that no further script references are included in the specified Web page; and cause scripts referenced by the queued script references to load in accordance with script loading rules to override the default script loading behavior of the Web browser. - View Dependent Claims (20)
-
Specification