Caching core JavaScript bundles
AssigneeWalmart Apollo, LLC
InventorsArpan Y. Nanavati, Jeffrey Jawad McRiffey, Alexander Grigoryan
Life of this patent
Estimating the term…
Abstract
A method including retrieving application code of a webpage comprising a core code JavaScript bundle and a dynamic JavaScript bundle. The method transmitting to a user device of a user a service worker and the core code JavaScript bundle, wherein the core code JavaScript bundle is transmitted from the cache of the content delivery computer and is stored in a long-term cache memory of the user device. Facilitating a display of the webpage in a browser of the user device using the custom application code JavaScript bundle, and the core code JavaScript bundle. Other embodiments are disclosed.
Claims20
A system comprising:
- one or more processors;
- and
- one or more non-transitory computer-readable media storing computing instructions configured, when executed by the one or more processors, to perform:
- retrieving application code of a webpage from a website, the application code comprising a core code JavaScript bundle and a dynamic JavaScript bundle;
- storing the core code JavaScript bundle and the dynamic JavaScript bundle in a cache of a content delivery computer, wherein the dynamic JavaScript bundle comprises custom application code to render the webpage;
- transmitting to a user device of a user (i) a service worker and (ii) the core code JavaScript bundle, wherein the core code JavaScript bundle is transmitted from the cache of the content delivery computer and is stored in a long-term cache memory of the user device;
- receiving, via a main thread from the user device to an application server, a request from the user device to view the webpage on the user device;
- and
- in response to receiving the request:
- concurrently with the main thread from the user device to the application server, determining, using the service worker via a second thread from the service worker to the long-term cache memory of the user device, whether the core code JavaScript bundle for the webpage is stored in the long-term cache memory of the user device;
- when the service worker determines that the core code JavaScript bundle for the webpage is stored in the long-term cache memory of the user device, transmitting, via the main thread from the user device to the content delivery computer, the dynamic JavaScript bundle for the webpage from the content delivery computer to the user device;
- and
- facilitating a display of the webpage in a browser of the user device using (i) the dynamic JavaScript bundle, as transmitted from the content delivery computer to the user device, and (ii) the core code JavaScript bundle, as stored in the long-term cache memory of the user device, wherein the core code JavaScript bundle and the dynamic JavaScript bundle are combined to be used for client-side rendering of the webpage.
A method being implemented via execution of computing instructions configured to run at one or more processors and stored at one or more non-transitory computer-readable media, the method comprising:
- retrieving application code of a webpage from a website, the application code comprising a core code JavaScript bundle and a dynamic JavaScript bundle;
- storing the core code JavaScript bundle and the dynamic JavaScript bundle in a cache of a content delivery computer, wherein the dynamic JavaScript bundle comprises custom application code to render the webpage;
- transmitting to a user device of a user (i) a service worker and (ii) the core code JavaScript bundle, wherein the core code JavaScript bundle is transmitted from the cache of the content delivery computer and is stored in a long-term cache memory of the user device;
- receiving, via a main thread from the user device to an application server, a request from the user device to view the webpage on the user device;
- and
- in response to receiving the request:
- concurrently with the main thread from the user device to the application server, determining, using the service worker via a second thread from the service worker to the long-term cache memory of the user device, whether the core code JavaScript bundle for the webpage is stored in the long-term cache memory of the user device;
- when the service worker determines that the core code JavaScript bundle for the webpage is stored in the long-term cache memory of the user device, transmitting, via the main thread from the user device to the content delivery computer, the dynamic JavaScript bundle for the webpage from the content delivery computer to the user device;
- and
- facilitating a display of the webpage in a browser of the user device using (i) the dynamic JavaScript bundle, as transmitted from the content delivery computer to the user device, and (ii) the core code JavaScript bundle, as stored in the long-term cache memory of the user device, wherein the core code JavaScript bundle and the dynamic JavaScript bundle are combined to be used for client-side rendering of the webpage.
Dependencies are inferred from the claim text.