Patent ID: 8407319

Claim:
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: receiving a request to load a web resource; accessing historical usage data pertaining to past interactions between a user and the web resource; generating a mapping for the web resource based on the historical usage data, wherein the mapping identifies (i) one or more core code modules that are to be loaded when the web resource is initially loaded, and (ii) and one or more non-core code modules that are not to be loaded when the web resource is initially loaded, but that are to be dynamically loaded upon occurrence of an event; loading the web resource and the one or more core code modules; after loading the web resource and the one or more core code modules, determining that the event has occurred; and after determining that the event has occurred, dynamically loading the non-core code modules.