# US 2017/0286392 A1 · Method and electronic device for displaying a web page

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

- Number: US 2017/0286392 A1
- Document ID: US20170286392A1
- Status: Published application
- Kind: A1
- Application number: 15/504,162
- Filed: 2015-04-21
- Published: 2017-10-05
- Earliest claimed: 2015-04-21
- Assignees: Guangzhou Ucweb Computer Technology Co., Ltd.
- Applicants: Guangzhou Ucweb Computer Technology Co., Ltd.
- Inventors: Xiaozhen WANG
- Web page: https://patentgrep.com/patent/US20170286392A1

## CPC

- G06F 40/205: Parsing
- G06F 8/427: {Parsing}
- G06F 16/907: Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F 16/958: Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F 40/221: Parsing markup language streams (streaming G06F40/149)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and electronic devices for displaying a web page are provided herein. In an exemplary method, metadata of a web page can be obtained. The metadata can specify a first-screen key element and include a first-screen-strategy extended attribute. A value of the first-screen-strategy extended attribute can indicate whether a page-defined first-screen display strategy is mandatory or optional. An element of the web page can be parsed in such a way as to determine whether the element is the first-screen key element. When the element is the first-screen key element, a first screen of the web page can be displayed. When the element is not the first-screen key element and a first-screen display criterion is met, a first screen of the web page can be displayed. The first-screen display criterion can be a function of the value of the first-screen-strategy extended attribute.

## Claims

### Claim 1

A method for displaying a web page, comprising:
obtaining metadata of a web page, the metadata specifying a first-screen key element and including a first-screen-strategy extended attribute, a value of the first-screen-strategy extended attribute indicating whether a page-defined first-screen display strategy is mandatory or optional;
parsing an element of the web page in such a way as to determine whether the element is the first-screen key element;
when the element is the first-screen key element, displaying a first screen of the web page; and
when the element is not the first-screen key element and a first-screen display criterion is met, displaying a first screen of the web page, the first-screen display criterion being a function of the value of the first-screen-strategy extended attribute.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the first-screen display criterion includes:
the value of the first-screen-strategy extended attribute indicating that the page-defined first-screen display strategy is optional.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the first-screen display criterion further includes:
a browser-defined first-screen display strategy being satisfied.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the metadata further includes a first-screen-priority extended attribute, a value of the first-screen-priority extended attribute indicating whether a priority for displaying the first-screen of the web page is high or normal.

### Claim 5 (depends on 4)

The method according to claim 4, wherein, when the element is not the first-screen key element and the first-screen display criterion is not met, the method further includes:
when the value of the first-screen-priority extended attribute indicates that the priority for displaying the first-screen of the web page is high, proceeding to parse a next element of the web page without sending a layout-region-change request; or
when the value of the first-screen-priority extended attribute indicates the priority for displaying the first-screen of the web page is normal, sending a layout-region-change request and parsing a next element of the web page.

### Claim 6 (depends on 4)

The method according to claim 4, wherein, when the value of the first-screen-priority extended attribute indicates the priority for displaying the first-screen of the web page is high, the displaying of the first screen of the web page includes:
painting all of elements of the first screen in one painting process, none of the elements of the first screen being painted prior to the one painting process.

### Claim 7 (depends on 5)

The method according to claim 5, wherein, when the value of the first-screen-priority extended attribute indicates the priority for displaying the first-screen of the web page is normal, and after sending a layout-region-change request, the method further includes:
updating a layout region of the first screen of the web page; and
sending a screen-paint request for painting the updated layout region.

### Claim 8

An electronic device for displaying a web page, comprising a processor, a display system, and a memory, the memory having thereon encoded instructions that causes the electronic device to display a web page on the display system by a process comprising:
obtaining metadata of a web page, the metadata specifying a first-screen key element and including a first-screen-strategy extended attribute, a value of the first-screen-strategy extended attribute indicating whether a page-defined first-screen display strategy is mandatory or optional;
parsing an element of the web page in such a way as to determine whether the element is the first-screen key element;
when the element is the first-screen key element, displaying a first screen of the web page; and
when the element is not the first-screen key element and a first-screen display criterion is met, displaying a first screen of the web page, the first-screen display criterion being a function of the value of the first-screen-strategy extended attribute.

### Claim 9 (depends on 8)

The electronic device according to claim 8, wherein the first-screen display criterion includes:
the value of the first-screen-strategy extended attribute indicating that the page-defined first-screen display strategy is optional.

### Claim 10 (depends on 9)

The electronic device according to claim 9, wherein the first-screen display criterion further includes:
a browser-defined first-screen display strategy being satisfied.

### Claim 11 (depends on 8)

The electronic device according to claim 8, wherein the metadata further includes a first-screen-priority extended attribute, a value of the first-screen-priority extended attribute indicating whether a priority for displaying the first-screen of the web page is high or normal.

### Claim 12 (depends on 11)

The electronic device according to claim 11, wherein, when the element is not the first-screen key element and the first-screen display criterion is not met, the process further includes:
when the value of the first-screen-priority extended attribute indicates drat the priority for displaying the first-screen of the web page is high, proceeding to parse a next element of the web page without sending a layout-region-change request; or
when the value of the first-screen-priority extended attribute indicates the priority for displaying the first-screen of the web page is normal, sending a layout-region-change request and parsing a next element of the web page.

### Claim 13 (depends on 11)

The electronic device according to claim 11, wherein, when the value of the first-screen-priority extended attribute indicates the priority for displaying the first-screen of the web page is high, the displaying of the first screen of the web page includes:
painting all of elements of the first screen in one painting process, none of the elements of the first screen being painted prior to the one painting process.

### Claim 14 (depends on 12)

The electronic device according to claim 12, wherein, when the value of the first-screen-priority extended attribute indicates the priority for displaying the first-screen of the web page is normal, and after sending a layout-region-change request, the process further includes:
updating a layout region of the first screen of the web page; and
sending a screen-paint request for painting the updated layout region.

### Claim 15

A non-transitory computer-readable storage medium having thereon executable computer programs which causes an electronic device to display a web page by a process comprising:
obtaining metadata of a web page, the metadata specifying a first-screen key element and including a first-screen-strategy extended attribute, a value of the first-screen-strategy extended attribute indicates whether a page-defined first-screen display strategy is mandatory or optional;
parsing an element of the web page in such a way as to determine whether the element is the first-screen key element;
when the element is the first-screen key element, displaying a first screen of the web page; and
when the element is not the first-screen key element and a first-screen display criterion is met, displaying a first screen of the web page, the first-screen display criterion being a function of the value of the first-screen-strategy extended attribute.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the first-screen display criterion includes:
the value of the first-screen-strategy extended attribute indicating that the page-defined first-screen display strategy is optional.

### Claim 17 (depends on 16)

The non-transitory computer-readable storage medium according to claim 16, wherein the first-screen display criterion further includes:
a browser-defined first-screen display strategy being satisfied.

### Claim 18 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the metadata further includes a first-screen-priority extended attribute, a value of the first-screen-priority extended attribute indicating whether a priority for displaying the first-screen of the web page is high or normal.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium according to claim 18, wherein, when the element is not the first-screen key element and the first-screen display criterion is not met, the process further includes:
when the value of the first-screen-priority extended attribute indicates that the priority for displaying the first-screen of the web page is high, proceeding to parse a next element of the web page without sending a layout-region-change request; or
when the value of the first-screen-priority extended attribute indicates the priority for displaying the first-screen of the web page is normal, sending a layout-region-change request and parsing a next element of the web page.

### Claim 20 (depends on 18)

The non transitory computer-readable storage medium according to claim 18, wherein, when the value of the first-screen-priority extended attribute indicates the priority for displaying the first-screen of the web page is high, the displaying of the first screen of the web page includes:
painting all of elements of the first screen in one painting process, none of the elements of the first screen being painted prior to the one painting process.
