# US 2023/0068090 A1 · Performance perception when browser's main thread is busy

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

- Number: US 2023/0068090 A1
- Document ID: US20230068090A1
- Status: Published application
- Kind: A1
- Application number: 17/464,365
- Filed: 2021-09-01
- Published: 2023-03-02
- Earliest claimed: 2021-09-01
- Assignees: salesforce.com, inc.
- Applicants: Salesforce.com, Inc.
- Inventors: Sembian MANI
- Web page: https://patentgrep.com/patent/US20230068090A1

## CPC

- G06F 40/154: Tree transformation for tree-structured or markup documents, e.g. XSLT, XSL-FO or stylesheets
- G06F 9/541: {via adapters, e.g. between incompatible applications}
- G06F 40/14: Tree-structured documents (parsing G06F40/205; validation G06F40/226)
- G06T 13/80: Two-dimensional [2D] animation, e.g. using sprites
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

An HTML file transmitted to a client device is configured to call JavaScript code, where the JavaScript code is configured to call a requestAnimationFrame browser application programming interface (API) with an argument identifying a callback function. The callback function is configurable to cause the web browser to: 1) reset a first Cascading Style Sheets (CSS) animation of a first DOM element, the first CSS animation being configured to cause the first DOM element to transition from a hidden state to a visible state during a first time duration specified by a first animation-duration property of the first element using a specific set of CSS properties; and 2) call the requestAnimationFrame browser API with the argument identifying the callback function. Thus, the first DOM element remains hidden as long as the browser performs frame refreshes at an optimal rate. However, when the browser's main thread is busy, the first DOM element transitions to a visible state.

## Claims

### Claim 1

A system comprising:
a database system implemented using a server system, the database system configured to cause:
processing, by a server, a request received from a client device;
responsive to the request, transmitting, by the server to the client device, a response including a HyperText Markup Language (HTML) file, the HTML file configured to call JavaScript code, the JavaScript code configured to call a requestAnimationFrame browser application programming interface (API) with an argument identifying a callback function, the callback function being configured to cause a web browser of the client device to:
reset a first Cascading Style Sheets (CSS) animation of a first DOM element, the first CSS animation being configured to cause the first DOM element to transition from a hidden state to a visible state during a first time duration specified by a first animation-duration property of the first element; and
call the requestAnimationFrame browser API with the argument identifying the callback function.

### Claim 2 (depends on 1)

The system of claim 1, the first DOM element having one or more CSS properties, the CSS properties including a first CSS property having a first level in the hidden state and having a second level in the visible state.

### Claim 3 (depends on 2)

The system of claim 2, the first CSS property including at least one of: an opacity property, a visibility property, or a transform property.

### Claim 4 (depends on 1)

The system of claim 1, the first DOM element being defined by a first class having a CSS animation-name property specifying an animation name of the first animation, the first animation being controlled by a @keyframes rule, the @keyframes rule defining an animation sequence from the hidden state to the visible state.

### Claim 5 (depends on 4)

The system of claim 4, the @keyframes rule defining a first set of CSS styles for the hidden state and a second set of CSS styles for the visible state.

### Claim 6 (depends on 4)

The system of claim 4, the @keyframes rule further defining a third set of CSS styles for an intermediate state between the hidden state and the visible state, a keyframe selector of the @keyframes rule specifying a particular percentage associated with the intermediate state.

### Claim 7 (depends on 4)

The system of claim 4, the animation name being associated with a source of data for the first animation.

### Claim 8

A method, comprising:
transmitting, by a web browser of a client device, a request for a web page;
processing, by the web browser of the client device, a response received from a server responsive to the request, the response including a HyperText Markup Language (HTML) file;
processing by the web browser of the client device, the HTML file, the HTML file configured to call JavaScript code, the JavaScript code configured to call a requestAnimationFrame browser application programming interface (API) with an argument identifying a callback function, the callback function being configured to cause the web browser to:
reset a first Cascading Style Sheets (CSS) animation of a first DOM element, the first CSS animation being configured to cause the first DOM element to transition from a hidden state to a visible state during a first time duration specified by a first animation-duration property of the first element; and
call the requestAnimationFrame browser API with the argument identifying the callback function; and
executing, by the web browser of the client device, the JavaScript code.

### Claim 9 (depends on 8)

The method of claim 8, the first DOM element having one or more CSS properties, the CSS properties including a first CSS property having a first level in the hidden state and having a second level in the visible state.

### Claim 10 (depends on 9)

The method of claim 9, the first CSS property including at least one of: an opacity property, a visibility property, or a transform property.

### Claim 11 (depends on 8)

The method of claim 8, the first DOM element being defined by a first class having a CSS animation-name property specifying an animation name of the first animation, the first animation being controlled by a @keyframes rule, the @keyframes rule defining an animation sequence from the hidden state to the visible state.

### Claim 12 (depends on 11)

The method of claim 11, the @keyframes rule defining a first set of CSS styles for the hidden state and a second set of CSS styles for the visible state.

### Claim 13 (depends on 11)

The method of claim 11, the @keyframes rule further defining a third set of CSS styles for an intermediate state between the hidden state and the visible state, a keyframe selector of the @keyframes rule specifying a particular percentage associated with the intermediate state.

### Claim 14

A computer program product comprising a non-transitory computer-readable storage medium including computer-readable program code that, when executed by one or more processors, cause the processors to:
transmit, by a web browser of a client device, a request for a web page;
process, by the web browser of the client device, a response received from a server responsive to the request, the response including a HyperText Markup Language (HTML) file;
process by the web browser of the client device, the HTML file, the HTML file configured to call JavaScript code, the JavaScript code configured to call a requestAnimationFrame browser application programming interface (API) with an argument identifying a callback function, the callback function being configured to cause the web browser to:
reset a first Cascading Style Sheets (CSS) animation of a first DOM element, the first CSS animation being configured to cause the first DOM element to transition from a hidden state to a visible state during a first time duration specified by a first animation-duration property of the first element; and
call the requestAnimationFrame browser API with the argument identifying the callback function; and
executing, by the web browser of the client device, the JavaScript code.

### Claim 15 (depends on 14)

The computer program product of claim 14, the first DOM element having one or more CSS properties, the CSS properties including a first CSS property having a first level in the hidden state and having a second level in the visible state, the first CSS property including at least one of: an opacity property, a visibility property, or a transform property.

### Claim 16 (depends on 14)

The computer program product of claim 14, the first DOM element being defined by a first class having a CSS animation-name property specifying an animation name of the first animation, the first animation being controlled by a @keyframes rule, the @keyframes rule defining an animation sequence from the hidden state to the visible state.

### Claim 17 (depends on 16)

The computer program product of claim 16, the @keyframes rule defining a first set of CSS styles for the hidden state and a second set of CSS styles for the visible state.

### Claim 18 (depends on 16)

The computer program product of claim 16, the @keyframes rule further defining a third set of CSS styles for an intermediate state between the hidden state and the visible state, a keyframe selector of the @keyframes rule specifying a particular percentage associated with the intermediate state.

### Claim 19 (depends on 16)

The computer program product of claim 16, the animation name being associated with a source of data for the first animation.

### Claim 20 (depends on 14)

The computer program product of claim 14, the callback function being configured to reset the first CSS animation by:
removing a first class that defines the first element; and
adding the first class that defines the first element.
