Event-driven module loading
First Claim
Patent Images
1. A system comprising:
- one or more computers; and
a computer-readable medium coupled to the one or more computers having instructions stored thereon which, when executed by the one or more computers, cause the one or more computers to perform operations comprising;
accessing historical usage data pertaining to one or more past interactions between a user and a resource;
determining, using the historical usage data, that, on average, the user accesses a first feature of the resource that is associated with a first code module more frequently than the user accesses a second feature of the resource that is associated with a second code module, then adjusting a mapping for the resource to associate an initial load event with the first code module, and to associate an event other than an initial load event with the second code module, wherein the mapping identifies one or more events that, upon occurrence, will trigger a dynamic loading of one or more code modules that are referenced by the resource;
determining that a particular event has occurred;
identifying one or more of the code modules that are associated with the particular event, based on the adjusted mapping; and
dynamically loading the identified code modules.
2 Assignments
0 Petitions
Accused Products
Abstract
Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for event-driven module loading. In one aspect, a method includes obtaining a mapping for a resource, wherein the mapping identifies one or more events that, upon occurrence, will trigger a dynamic loading of one or more code modules that are referenced by the resource, determining that an event has occurred, identifying one or more of the code modules that are associated with the event, based on the mapping, and dynamically loading the identified code modules.
-
Citations
14 Claims
-
1. A system comprising:
-
one or more computers; and a computer-readable medium coupled to the one or more computers having instructions stored thereon which, when executed by the one or more computers, cause the one or more computers to perform operations comprising; accessing historical usage data pertaining to one or more past interactions between a user and a resource; determining, using the historical usage data, that, on average, the user accesses a first feature of the resource that is associated with a first code module more frequently than the user accesses a second feature of the resource that is associated with a second code module, then adjusting a mapping for the resource to associate an initial load event with the first code module, and to associate an event other than an initial load event with the second code module, wherein the mapping identifies one or more events that, upon occurrence, will trigger a dynamic loading of one or more code modules that are referenced by the resource; determining that a particular event has occurred; identifying one or more of the code modules that are associated with the particular event, based on the adjusted mapping; and dynamically loading the identified code modules. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A computer-implemented method comprising:
-
accessing, by a client device, historical usage data pertaining to one or more past interactions between a user and a resource; determining, using the historical usage data, that, on average, the user accesses a first feature of the resource that is associated with a first code module more frequently than the user accesses a second feature of the resource that is associated with a second code module, then adjusting, by the client device, a mapping to associate a respective timer firing event with each of the first code module and the second code module, wherein the mapping identifies one or more events that, upon occurrence, will trigger a dynamic loading of one or more code modules that are referenced by a resource, and wherein the timing firing event associated with the first code module has a shorter firing time than the timing firing event associated with the second code module; using the mapping to identify, when a particular event occurs, one or more of the code modules that are associated with the particular event; and dynamically loading the identified code modules.
-
-
14. A computer storage medium encoded with a computer program, the program comprising instructions that when executed by data processing apparatus cause the data processing apparatus to perform operations comprising:
-
generating information that associates one or more events with one or more code modules that are referenced by a resource; accessing historical usage data pertaining to one or more past interactions between a user and the resource; adjusting the information to demote a code module from being associated with an initial load event, to being associated with a data communication event, a control selection event, or a timing firing event; determining that the data communication event, the control selection event, or the timing firing event has occurred; and dynamically loading the code module that the adjusted information indicates is associated with the event.
-
Specification