Asynchronous pre-caching of synchronously loaded resources
First Claim
1. A non-transitory computer readable medium having instructions stored thereon that, when executed by a processor, cause the processor to load resources, the loading comprising:
- determining to load a module by a web browser, wherein loading the module requires a plurality of resources of a first content type to be synchronously loaded in a specific order;
pre-caching, prior to loading the module, the plurality of resources in a browser cache of the web browser, wherein,the pre-caching comprises, prior to loading the module, transmitting, from the web browser to a server, at least one request for a second content type that is not executable and receiving, from the server, at least one of the plurality of resources of the first content type in response to the request for the second content type,the received resource is pre-cached based on the web browser being configured to pre-cache content received in response to requests for the second content type,the received resource in response to the request for the second content type comprises a browser executable script resource, and the web browser is configured to pre-cache the script resource as a non-executable resource, andthe first content type is different from the second content type; and
loading, after the resources are pre-cached, the module by synchronously loading the plurality of resources in the specific order from the browser cache, wherein synchronously loading the script resource from the browser cache comprises executing, by the web browser, the script resource in accordance with the specific order.
1 Assignment
0 Petitions
Accused Products
Abstract
A system loads resources. The system determines to load a module by a web browser, where the module requires a plurality of resources to be synchronously loaded in a specific order. The system asynchronously pre-caches the resources in a browser cache of the web browser and then synchronously loads the resources from the browser cache and according to the specific order. In one embodiment, the system sends a request to a server, where the request is of a request type configured for requesting a first content type, and where the first content type is configured to be pre-cached in the browser cache when received by the web browser. The system then receives content from the server in response to the request, where the content is of a second content type that is different than the first content type, and where the content includes at least one of the resources.
-
Citations
19 Claims
-
1. A non-transitory computer readable medium having instructions stored thereon that, when executed by a processor, cause the processor to load resources, the loading comprising:
-
determining to load a module by a web browser, wherein loading the module requires a plurality of resources of a first content type to be synchronously loaded in a specific order; pre-caching, prior to loading the module, the plurality of resources in a browser cache of the web browser, wherein, the pre-caching comprises, prior to loading the module, transmitting, from the web browser to a server, at least one request for a second content type that is not executable and receiving, from the server, at least one of the plurality of resources of the first content type in response to the request for the second content type, the received resource is pre-cached based on the web browser being configured to pre-cache content received in response to requests for the second content type, the received resource in response to the request for the second content type comprises a browser executable script resource, and the web browser is configured to pre-cache the script resource as a non-executable resource, and the first content type is different from the second content type; and loading, after the resources are pre-cached, the module by synchronously loading the plurality of resources in the specific order from the browser cache, wherein synchronously loading the script resource from the browser cache comprises executing, by the web browser, the script resource in accordance with the specific order. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A method of loading resources, comprising:
-
determining to load a module by a web browser, wherein loading the module requires a plurality of resources of a first content type to be synchronously loaded in a specific order; pre-caching, prior to loading the module, the plurality of resources in a browser cache of the web browser, wherein, the pre-caching comprises, prior to loading the module, transmitting, from the web browser to a server, at least one request for a second content type that is not executable and receiving, from the server, at least one of the plurality of resources in response to the request for the second content type, the received resource is pre-cached based on the web browser being configured to pre-cache content received in response to requests for the second content type, the received resource in response to the request for the second content type comprises a browser executable script resource, and the web browser is configured to pre-cache the script resource as a non-executable resource, and the first content type is different from the second content type; and loading, after the resources are pre-cached, the module by synchronously loading the plurality of resources in the specific order from the browser cache, wherein synchronously loading the script resource from the browser cache comprises executing, by the web browser, the script resource in accordance with the specific order. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18)
-
-
19. A system for loading resources, comprising:
-
a processor coupled to storage, that processor executing instructions to; determine to load a module by a web browser, wherein loading the module requires a plurality of resources of a first content type to be synchronously loaded in a specific order; pre-cache, prior to loading the module, the plurality of resources in a browser cache of the web browser, wherein, the pre-caching comprises, prior to loading the module, transmitting, from the web browser to a server, at least one request for a second content type that is not executable and receiving, from the server, at least one of the plurality of resources of the first content type in response to the request for the second content type, the received resource is pre-cached based on the web browser being configured to pre-cache content received in response to requests for the second content type, the received resource in response to the request for the second content type comprises a browser executable script resource, and the web browser is configured to pre-cache the script resource as a non-executable resource, and the first content type is different from the second content type; and load, after the resources are pre-cached, the module by synchronously loading the plurality of resources in the specific order from the browser cache and according to the specific order, wherein synchronously loading the script resource from the browser cache comprises executing, by the web browser, the script resource in accordance with the specific order.
-
Specification