# US 2020/0004889 A1 · Usage-based predictive prefetching and caching of component-based web pages for performance optimization

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0004889 A1
- Document ID: US20200004889A1
- Status: Published application
- Kind: A1
- Application number: 16/023,346
- Filed: 2018-06-29
- Published: 2020-01-02
- Earliest claimed: 2018-06-29
- Assignees: salesforce.com, inc.
- Applicants: salesforce.com, inc.
- Inventors: Ashraya Raj MATHUR
- Web page: https://patentgrep.com/patent/US20200004889A1

## CPC

- G06F 16/9574: {of access to content, e.g. by caching}
- G06F 16/986: {Document structures and storage, e.g. HTML extensions}
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/5682: Policies or rules for updating, deleting or replacing the stored data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method is described for intelligently prefetching a web page of a web application for a user. The method includes loading, by a client device, a current web page of the web application in a web browser of the client device; determining a predicted web page based on the current web page and usage patterns of the user, wherein the predicted web page is a web page the user is predicted to navigate to from the current web page; prefetching, by the client device, metadata and content data describing the predicted web page from a web server prior to the user requesting the predicted web page; and caching, by the client device, the metadata and content data describing the predicted web page in a multi-level caching structure.

## Claims

### Claim 1

A method for intelligently prefetching a web page of a web application for a user, the method comprising:
loading, by a client device, a current web page of the web application in a web browser of the client device;
determining a predicted web page based on the current web page and usage patterns of the user, wherein the predicted web page is a web page the user is predicted to navigate to from the current web page;
prefetching, by the client device, metadata and content data describing the predicted web page from a web server prior to the user requesting the predicted web page; and
caching, by the client device, the metadata and content data describing the predicted web page in a multi-level caching structure.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
receiving, by the client device, a request from the user for the predicted web page;
determining whether a web page cache of the multi-level caching structure includes one or more files representing the predicted web page; and
loading the one or more files from the web page cache into the web browser of the client device in response to determining that the web page cache includes the one or more files representing the predicted web page.

### Claim 3 (depends on 2)

The method of claim 2, wherein in response to determining that the web page cache does not include the one or more files representing the predicted web page, the method further comprises:
generating, by the client device, the one or more files representing the predicted web page based on the metadata and content data cached in the metadata and content cache;
caching, by the client device, the one or more files in the web page cache; and
loading, by the web browser of the client device, the one or more files from the web page cache.

### Claim 4 (depends on 3)

The method of claim 3, wherein the metadata and content cache is associated with a first time-to-live and the web page cache is associated with a second time-to-live.

### Claim 5 (depends on 4)

The method of claim 4, wherein the first time-to-live is shorter than the second time-to-live.

### Claim 6 (depends on 3)

The method of claim 3, wherein the one or more files include one or more Hypertext Markup Language (HTML) files.

### Claim 7 (depends on 1)

The method of claim 1, wherein the metadata represents a layout of one or more components in the predicted web page and the content data represents record data for presentation in the one or more components.

### Claim 8 (depends on 1)

The method of claim 1, wherein the usage patterns include one or more of historic click interactions in the current web page, historic click paths in the current web page, and historic navigation patterns from the current web page to one or more other web pages, including the predicted web page.

### Claim 9 (depends on 1)

The method of claim 1, wherein the determining a predicted web page is further based on performance metrics associated with prefetching the predicted web page and loading the predicted web page on-demand.

### Claim 10

A non-transitory machine-readable medium that stores instructions, which when executed by an electronic device, cause the electronic device to:
load a current web page of a web application in a web browser;
determine a predicted web page based on the current web page and usage patterns of a user of the web browser, wherein the predicted web page is a web page the user is predicted to navigate to from the current web page;
prefetch metadata and content data describing the predicted web page from a web server prior to the user requesting the predicted web page; and
cache the metadata and content data describing the predicted web page in a multi-level caching structure.

### Claim 11 (depends on 10)

The non-transitory machine-readable medium of claim 10, wherein the instructions further cause the electronic device to:
receive a request from the user for the predicted web page;
determine whether a web page cache of the multi-level caching structure includes one or more files representing the predicted web page; and
load the one or more files from the web page cache into the web browser in response to determining that the web page cache includes the one or more files representing the predicted web page.

### Claim 12 (depends on 11)

The non-transitory machine-readable medium of claim 11, wherein in response to determining that the web page cache does not include the one or more files representing the predicted web page, the instructions further cause the electronic device to:
generate the one or more files representing the predicted web page based on the metadata and content data cached in the metadata and content cache;
cache the one or more files in the web page cache; and
load, in the web browser, the one or more files from the web page cache.

### Claim 13 (depends on 12)

The non-transitory machine-readable medium of claim 12, wherein the metadata and content cache is associated with a first time-to-live and the web page cache is associated with a second time-to-live.

### Claim 14 (depends on 13)

The non-transitory machine-readable medium of claim 13, wherein the first time-to-live is shorter than the second time-to-live.

### Claim 15 (depends on 12)

The non-transitory machine-readable medium of claim 12, wherein the one or more files include one or more Hypertext Markup Language (HTML) files.

### Claim 16 (depends on 10)

The non-transitory machine-readable medium of claim 10, wherein the metadata represents a layout of one or more components in the predicted web page and the content data represents record data for presentation in the one or more components.

### Claim 17 (depends on 10)

The non-transitory machine-readable medium of claim 10, wherein the usage patterns include one or more of historic click interactions in the current web page, historic click paths in the current web page, and historic navigation patterns from the current web page to one or more other web pages, including the predicted web page.

### Claim 18 (depends on 10)

The non-transitory machine-readable medium of claim 10, wherein the determining a predicted web page is further based on performance metrics associated with prefetching the predicted web page and loading the predicted web page on-demand.

### Claim 19

An electronic device for intelligently prefetching a web page of a web application for a user, the electronic device comprising:
a web browser to load a current web page of the web application; and
a prefetcher to determine a predicted web page based on the current web page and usage patterns of the user, wherein the predicted web page is a web page the user is predicted to navigate to from the current web page, prefetch metadata and content data describing the predicted web page from a web server prior to the user requesting the predicted web page, and cache the metadata and content data describing the predicted web page in a multi-level caching structure.

### Claim 20 (depends on 19)

The electronic device of claim 19, wherein the web browser is to receive, by the client device, a request from the user for the predicted web page;
wherein the prefetcher is to determine whether a web page cache of the multi-level caching structure includes one or more files representing the predicted web page; and
wherein the web browser is to load the one or more files from the web page cache into the web browser of the client device in response to determining that the web page cache includes the one or more files representing the predicted web page.
