METHOD AND SYSTEM TO PRE-FETCH DATA IN A NETWORK
A system, a computer readable storage medium including instructions, and a computer-implemented method of pre-fetching in a network, are provided. In an example embodiment, computer-implemented method of pre-fetching in a network comprises receiving a request from a user device for a first network-accessible data item in the plurality of network-accessible data items; transmitting the first network-accessible data item to the user device; identifying a second network-accessible data item in the plurality of network-accessible data items; and transmitting the second network-accessible data item to the user device, the second network-accessible data item being transmitted before receiving a request for the second network-accessible data item from the user device. Pre-fetch logic may be embedded in the first network-accessible data item.
1 . A computer-implemented method of pre-fetching, comprising:
receiving a request from a user device for a first web page, the first web page having a first plurality of data elements;
transmitting the first plurality of data elements to the user device;
determining a next web page the user device will likely navigate to, the next web page including a second plurality of data elements;
retrieving at least one of the second plurality of data elements; and
transmitting the at least one of the second plurality of data elements to the user device before receiving a request for the next web page from the user device.
2 . The computer-implemented method of claim 1 , further comprising retrieving a remainder of the second plurality of data elements after receiving the request for the next web page from the user device.
3 . The computer-implemented method of claim 1 , wherein transmitting the at least one of the second plurality of data elements includes transmitting the at least one of the second plurality of data elements to the user device while the first web page is being presented on the user device for browsing.
4 . The computer-implemented method of claim 1 , wherein the first plurality of data elements are embedded in the first web page, and the second plurality of data elements are embedded in the next web page.
5 . The computer-implemented method of claim 1 , wherein the first plurality of data elements includes code to pre-fetch the at least one of the second plurality of data elements for the next web page.
6 . The computer-implemented method of claim 5 , wherein the code to pre-fetch the at least one of the second plurality of data elements for the next web page is triggered for execution when the first web page is being downloaded by a browser on the user device.
7 . The computer-implemented method of claim 1 , wherein receiving the request for the next web page from the user device includes receiving the request only if the user device determines one or more of the second plurality of data elements from the user device is not stored within the user device.
8 . A system including hardware modules, comprising:
a receiving module configured to receive a request from a user device for a first web page, the first web page having a first plurality of data elements; and
a transmitting module, implemented using one or more processors, configured to:
transmit the first plurality of data elements to the user device;
determine a next web page the user device will likely navigate to, the next web page including a second plurality of data elements;
retrieve at least one of the second plurality of data elements; and
transmit the at least one of the second plurality of data elements to the user device before receiving a request for the next web page from the user device.
9 . The system of claim 8 , wherein the transmitting module is configured to retrieve a remainder of the second plurality of data elements after receiving the request for the next web page from the user device.
10 . The system of claim 8 , wherein the transmitting module is configured to transmit the at least one of the second plurality of data elements to the user device including transmitting the at least one of the second plurality of data elements while the first web page is being presented on the user device for browsing.
11 . The system of claim 8 , wherein the first plurality of data elements are embedded in the first web page, and the second plurality of data elements are embedded in the next web page.
12 . The system of claim 8 , wherein the first plurality of data elements includes code to pre-fetch the at least one of the second plurality of data elements for the next web page.
13 . The system of claim 12 , wherein the code to pre-fetch the at least one of the second plurality of data elements for the next web page is triggered for execution when the first web page is being downloaded by a browser on the user device.
14 . The system of claim 8 , wherein the transmitting module is configured to receive the request for the next web page from the user device including receiving the request only if the user device determines one or more of the second plurality of data elements from the user device is not stored within the user device.
15 . A computer readable non-transitory storage medium storing at least one program configured for execution by a computer, the at least one program comprising instructions to:
receive a request from a user device for a first web page, the first web page having a first plurality of data elements;
transmit the first plurality of data elements to the user device;
determine a next web page the user device will likely navigate to, the next web page including a second plurality of data elements;
retrieve at least one of the second plurality of data elements; and
transmit the at least one of the second plurality of data elements to the user device before receiving a request for the next web page from the user device.
16 . The computer readable non-transitory storage medium of claim 15 , further comprising instructions to retrieve a remainder of the second plurality of data elements after receiving the request for the next web page from the user device.
17 . The computer readable non-transitory storage medium of claim 15 , comprising instructions to transmit the at least one of the second plurality of data elements to the user device including transmitting the at least one of the second plurality of data elements to the user device while the first web page is being presented on the user device for browsing.
18 . The computer readable non-transitory storage medium of claim 15 , comprising instructions to receive the request for the next web page from the user device including receiving the request only if the user device determines one or more of the second plurality of data elements from the user device is not stored within the user device.
19 . The computer readable non-transitory storage medium of claim 15 , comprising instructions to include code to pre-fetch the at least one of the second plurality of data elements for the next web page within the first plurality of data elements.
20 . The computer readable non-transitory storage medium of claim 19 , comprising instructions to trigger for execution the code to pre-fetch the at least one of the second plurality of data elements for the next web page when the first web page is being downloaded by a browser on the user device.