# US 10,956,498 B2 · Scanning for bindings in webpage markup

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

- Number: US 10,956,498 B2
- Document ID: US10956498B2
- Status: Granted
- Kind: B2
- Application number: 15/720,832
- Filed: 2017-09-29
- Published: 2019-04-04
- Granted: 2021-03-23
- Earliest claimed: 2017-09-29
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: William Chou; Malte Ubl
- Web page: https://patentgrep.com/patent/US10956498B2

## CPC

- G06F 40/143: Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
- G06F 16/81: Indexing, e.g. XML tags; Data structures therefor; Storage structures
- G06F 16/86: {Mapping to a database}
- G06F 16/9577: {Optimising the visualization of content, e.g. distillation of HTML documents}
- G06F 16/986: {Document structures and storage, e.g. HTML extensions}
- G06F 40/14: Tree-structured documents (parsing G06F40/205; validation G06F40/226)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for scanning bindings in a webpage. In one aspect, a method includes obtaining, at a browser of a client device, markup for a webpage, initiating a scan of the markup for the webpage to identify bindings in the markup, in response to a time threshold being satisfied during the scan of the markup for the webpage, pausing the scan of the markup and storing location data corresponding to a location in the markup reached by the scan at pause time, rendering, by the browser, a next frame for the webpage, and in response to completion of the rendering of the next frame for the webpage, resuming the scan of the markup for the webpage at the location in the markup.

## Claims

### Claim 1

A computer-implemented method, the method comprising:
obtaining, at a browser of a client device, markup for an entire webpage;
after the markup for the entire webpage is obtained, initiating a scan of the markup for the webpage to identify bindings in the markup,
where each of the bindings is a markup tag that includes (i) a default value for an attribute before completion of the scan of the markup for the webpage to identify bindings in the markup and (ii) a textual description of a link between the attribute of the webpage and an expression that defines a value of the attribute is an output of the expression according to a current state of the webpage after completion of the scan of the markup for the webpage to identify bindings in the markup;
in response to a time threshold being satisfied during the scan of the markup for the webpage, pausing the scan of the markup and storing location data corresponding to a location in the markup reached by the scan at a pause time;
rendering, by the browser and before enabling an appearance of the webpage to dynamically change based on the values of the attributes output from the expressions in accordance with the bindings, a next frame for the webpage based on the default values for the attributes in accordance with the markup;
in response to completion of the rendering of the next frame for the webpage by the browser, resuming the scan of the markup for the webpage from the location in the markup reached by the scan at the pause time; and
in response to completion of the scan to identify the bindings in the webpage, enabling the appearance of the webpage to dynamically change based on the values of the attributes output from the expressions instead of the default values in accordance with the bindings that were identified.

### Claim 2 (depends on 1)

The method of claim 1, wherein the time threshold comprises ten through fifty milliseconds.

### Claim 3 (depends on 1)

The method of claim 1, wherein the time threshold comprises a predetermined length of time that is less than a length of time that the browser has to render any next frame of a webpage.

### Claim 4 (depends on 1)

The method of claim 1, wherein rendering the next frame for the webpage comprises:
generating a screen, to be displayed on the client device, showing the webpage.

### Claim 5 (depends on 1)

The method of claim 1, wherein the markup for the webpage comprises text of a markup language and text of a scripting language.

### Claim 6 (depends on 1)

The method of claim 1, wherein an attribute of the webpage comprises a Hypertext Markup Language attribute of the webpage.

### Claim 7 (depends on 1)

The method of claim 1, comprising:
in response to the time threshold being satisfied during the scan of the markup for the webpage that is resumed, pausing the scan of the markup and storing second location data corresponding to a second location in the markup reached by the resumed scan at pause time;
rendering, by the browser, a second next frame for the webpage; and
in response to completion of the rendering of the second next frame for the webpage, resuming the scan of the markup for the webpage at the second location in the markup.

### Claim 8 (depends on 1)

The method of claim 1, comprising in response to identifying each binding, determining whether the binding is included in a predetermined list of bindings.

### Claim 9 (depends on 8)

The method of claim 8, comprising in response to determining that the binding is included in the predetermined list of bindings, processing the binding and continuing the scan of the markup.

### Claim 10 (depends on 8)

The method of claim 8, comprising in response to determining that the binding is not included in the predetermined list of bindings, not processing the binding and continuing the scan of the markup.

### Claim 11 (depends on 1)

The method of claim 1, wherein the scan of the markup for the webpage begins at the beginning of a document including the markup and moves sequentially through the document to the end of the document.

### Claim 12 (depends on 1)

The method of claim 1, wherein in response to completion of the scan to identify the bindings in the webpage, enabling the appearance of the webpage to dynamically change based on the values of the attributes output from the expressions instead of the default values in accordance with the bindings that were identified comprises:
in response to completion of the scan to identify the bindings in the webpage, evaluating the expressions and updating attributes linked to the expressions through the bindings;
determining that a change in the state affects the expression of a particular binding of the bindings n the markup;
evaluating the expression that is determined to be affected by the state change; and
updating the attribute linked to the expression through the particular binding.

### Claim 13 (depends on 1)

The method of claim 1, wherein in response to completion of the rendering of the next frame for the webpage by the browser, resuming the scan of the markup for the webpage from the location in the markup reached by the scan at the pause time comprises:
resuming the scan of the markup for the webpage from midway through the markup, where the markup that is before the location has already been scanned, the markup after the location has not yet been scanned, and before the scan was paused the markup had been obtained in its entirety by the client device.

### Claim 14

A system comprising:
a data processing apparatus; and
a non-transitory computer readable storage medium in data communication with the data processing apparatus and storing instructions executable by the data processing apparatus and upon such execution cause the data processing apparatus to perform operations comprising:
obtaining, at a browser of a client device, markup for an entire webpage;
after the markup for the entire webpage is obtained, initiating a scan of the markup for the webpage to identify bindings in the markup,
where each of the bindings is a markup tag that includes (i) a default value for an attribute before completion of the scan of the markup for the webpage to identify bindings in the markup and (ii) a textual description of a link between the attribute of the webpage and an expression that defines a value of the attribute is an output of the expression according to a current state of the webpage after completion of the scan of the markup for the webpage to identify bindings in the markup;
in response to a time threshold being satisfied during the scan of the markup for the webpage, pausing the scan of the markup and storing location data corresponding to a location in the markup reached by the scan at a pause time;
rendering, by the browser and before enabling an appearance of the webpage to dynamically change based on the values of the attributes output from the expressions in accordance with the bindings, a next frame for the webpage based on the default values for the attributes in accordance with the markup;
in response to completion of the rendering of the next frame for the webpage by the browser, resuming the scan of the markup for the webpage from the location in the markup reached by the scan at the pause time; and
in response to completion of the scan to identify the bindings in the webpage, enabling the appearance of the webpage to dynamically change based on the values of the attributes output from the expressions instead of the default values in accordance with the bindings that were identified.

### Claim 15 (depends on 14)

The system of claim 14, wherein the time threshold comprises ten through fifty milliseconds.

### Claim 16 (depends on 14)

The system of claim 14, wherein the time threshold comprises a predetermined length of time that is less than a length of time that the browser has to render any next frame of a webpage.

### Claim 17 (depends on 14)

The system of claim 14, wherein rendering the next frame for the webpage comprises:
generating a screen, to be displayed on the client device, showing the webpage.

### Claim 18 (depends on 14)

The system of claim 14, wherein the markup for the webpage comprises text of a markup language and text of a scripting language.

### Claim 19

A non-transitory computer readable storage medium storing instructions executable by a data processing apparatus and upon such execution cause the data processing apparatus to perform operations comprising:
obtaining, at a browser of a client device, markup for an entire webpage;
after the markup for the entire webpage is obtained, initiating a scan of the markup for the webpage to identify bindings in the markup,
where each of the bindings is a markup tag that includes (i) a default value for an attribute before completion of the scan of the markup for the webpage to identify bindings in the markup and (ii) a textual description of a link between the attribute of the webpage and an expression that defines a value of the attribute is an output of the expression according to a current state of the webpage after completion of the scan of the markup for the webpage to identify bindings in the markup;
in response to a time threshold being satisfied during the scan of the markup for the webpage, pausing the scan of the markup and storing location data corresponding to a location in the markup reached by the scan at a pause time;
rendering, by the browser and before enabling an appearance of the webpage to dynamically change based on the values of the attributes output from the expressions in accordance with the bindings, a next frame for the webpage based on the default values for the attributes in accordance with the markup;
in response to completion of the rendering of the next frame for the webpage by the browser, resuming the scan of the markup for the webpage from the location in the markup reached by the scan at the pause time; and
in response to completion of the scan to identify the bindings in the webpage, enabling the appearance of the webpage to dynamically change based on the values of the attributes output from the expressions instead of the default values in accordance with the bindings that were identified.
