LOADER AND METHOD FOR PROCESSING A RESOURCE BUNDLE
First Claim
Patent Images
1. A computer-implemented method of processing a resource bundle downloaded from a server to a user device, the method comprising:
- recognizing by a loader a beginning of a download of a resource bundle, the resource bundle comprising a plurality of resources to be loaded for use in a program and wherein a data format for the resource bundle includes;
a header data structure for the resource bundle that includes an indication of a total size of the resource bundle; and
a respective resource data structure for each resource of the plurality of resources, each such resource data structure including an indication of a total size of the resource corresponding to the resource data structure, the indication of the total size of the resource being located in the resource data structure before any data comprising the resource, such that both the total size of the resource bundle and the total size of each resource included in the resource bundle is determinable by the loader before the data comprising the resource is processed;
determining, from the header data structure, the total size of the resource bundle being downloaded;
determining, from the data structure of a first resource included in the resource bundle, a total size of the first resource;
determining, as the resource bundle continues to be downloaded and based on the total size of the resource bundle and the total size of the first resource, that sufficient data has been downloaded to process the first resource, andprocess the first resource while the remainder of the resource bundle continues to be downloaded and before the download of the resource bundle is complete.
2 Assignments
0 Petitions
Accused Products
Abstract
In accordance with some embodiments, a loader is operable to download a resource bundle from a server to a user device and process/load at least one resource included in the resource bundle before the whole resource bundle is downloaded. A novel data structure for the resource bundle header and the resources of the bundle allows the loading of the resources into a program as the resource bundle continues to be downloaded, thus decreasing the time between a start of the download and a time at which the resources included in the resource bundle are available for use by the program.
4 Citations
20 Claims
-
1. A computer-implemented method of processing a resource bundle downloaded from a server to a user device, the method comprising:
-
recognizing by a loader a beginning of a download of a resource bundle, the resource bundle comprising a plurality of resources to be loaded for use in a program and wherein a data format for the resource bundle includes; a header data structure for the resource bundle that includes an indication of a total size of the resource bundle; and a respective resource data structure for each resource of the plurality of resources, each such resource data structure including an indication of a total size of the resource corresponding to the resource data structure, the indication of the total size of the resource being located in the resource data structure before any data comprising the resource, such that both the total size of the resource bundle and the total size of each resource included in the resource bundle is determinable by the loader before the data comprising the resource is processed; determining, from the header data structure, the total size of the resource bundle being downloaded; determining, from the data structure of a first resource included in the resource bundle, a total size of the first resource; determining, as the resource bundle continues to be downloaded and based on the total size of the resource bundle and the total size of the first resource, that sufficient data has been downloaded to process the first resource, and process the first resource while the remainder of the resource bundle continues to be downloaded and before the download of the resource bundle is complete. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A non-transitory computer-readable medium storing instructions comprising a loader mechanism for processing and loading resources to a program, which instructions when executed by a processor cause the processor to:
-
recognize a beginning of a download of a resource bundle, the resource bundle comprising a plurality of resources to be loaded for use m a program and wherein a data format for the resource bundle includes; a header data structure for the resource bundle that includes an indication of a total size of the resource bundle; and a respective resource data structure for each resource of the plurality of resources, each such resource data structure including an indication of a total size of the resource corresponding to the resource data structure, the indication of the total size of the resource being located in the resource data structure before any data comprising the resource, such that both the total size of the resource bundle and the total size of each resource included in the resource bundle is determinable by the loader before the data comprising the resource is processed; determine, from the header data structure, the total size of the resource bundle being downloaded; determine, from the data structure of a first resource included in the resource bundle, a total size of the first resource; determining, as the resource bundle continues to be downloaded and based on the total size of the resource bundle and the total size of the first resource, that sufficient data has been downloaded to process the first resource; and process the first resource while the remainder of the resource bundle continues to be downloaded and before the download of the resource bundle is complete. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
Specification