CPC G06F 16/9577 (2019.01) | 19 Claims |
1. A method comprising:
receiving a first request, at a shared worker that is shared among a plurality of different web workers in a plurality of different browsing contexts, from a first web worker corresponding to a portion of a first web page, to update a first piece of data maintained by a web server,
wherein the shared worker is contained in a single browsing context of a plurality of browsing contexts that share a same origin, and
wherein the shared worker is configured to process all data requests provided by the first web worker that involves the web server;
transmitting, by the shared worker, the first request to the web server;
generating a second request to update at least a portion of the first piece of data maintained by the web server from a second web worker,
wherein the shared worker is configured to process all data requests provided by the second web worker that involve the web server;
registering, by the shared worker, the second request;
receiving, by the shared worker, an updated version of the first piece of data from the web server that maintains the first piece of data;
in response to receiving the updated version, identifying a web worker in each of at least two of the plurality of different browsing contexts, including the first web worker and the second web worker, that have previously requested at least a portion of the first piece of data; and
sending the updated at least a portion of the first piece of data to each of the identified web workers.
|