IP Library Granted Patent US 12,651,111
Granted Patent B2
US 12,651,111 · App. 18/621,647 · Granted Jun 9, 2026

Page display method, apparatus, electronic device and storage medium

Inventors: Tao Cheng (Beijing, CN); Long Zhang (Beijing, CN)
Assignee: BEIJING ZITIAO NETWORK TECHNOLOGY CO., LTD.
G06F40/106G06F40/205
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,651,111
App. No.
18/621,647
Granted
Jun 9, 2026
Kind
B2
Abstract

Embodiments of the present disclosure provide a page display method, apparatus, electronic device, and storage medium, comprising acquiring a layout file of a target page, which is used to characterize a page layout of the target page; according to the layout file, obtaining view data of the target page, which is used to characterize view attributes of view objects within the target page; based on the view data, asynchronously generating a target view tree corresponding to the target page via at least two processing threads; and displaying the target page based on the target view tree.

Claims (69)

1 . A page display method, comprising:

acquiring a layout file of a target page, which is used to characterize a page layout of the target page;

according to the layout file, obtaining view data of the target page, which is used to characterize view attributes of view objects within the target page;

asynchronously generating a target view tree corresponding to the target page via at least two processing threads based on the view data; and

displaying the target page based on the target view tree,

wherein the view data comprises an encapsulated view tree, the encapsulated view tree having the same tree structure as the target view tree, the encapsulated view tree comprising at least two encapsulated view objects, the encapsulated view object being used to store view attributes of a view object at a corresponding position on the target view tree.

2 . The method of claim 1 , wherein asynchronously generating a target view tree corresponding to the target page via at least two processing threads based on the view data, comprising:

asynchronously loading each encapsulated view object in the encapsulated view tree and creating a corresponding view object via at least two processing threads;

after all of the encapsulated view objects in the encapsulated view tree have been loaded, based on the tree structure of the encapsulated view tree, splicing the view objects corresponding to respective encapsulated view objects together into a target view tree.

3 . The method of claim 2 , wherein the asynchronously loading each encapsulated view object in the encapsulated view tree and creating a corresponding view object via at least two processing threads, comprises:

determining a target number of processing threads based on a tree structure of the encapsulated view tree;

creating the target number of processing threads;

asynchronously loading each encapsulated view object in the encapsulated view tree and creating a corresponding view object via the target number of processing threads.

4 . The method of claim 2 , wherein the encapsulated view object has a state attribute, the state attribute being used to characterize whether or not the encapsulated view object is loaded by a processing thread; wherein the at least two processing threads include a first processing thread,

wherein the asynchronously loading each encapsulated view object in the encapsulated view tree via at least two processing threads, comprising:

for a current encapsulated view object, reading, via the first processing thread, the state attribute of the current encapsulated view object;

if the state attribute of the current encapsulated view object is a first state, then loading the current encapsulated view object via the first processing thread, wherein the first state characterizes that the current encapsulated view object has not been loaded by any of the at least two processing threads.

5 . The method of claim 3 , wherein the encapsulated view object has at least one of a parent view attribute or a child view attribute, wherein the parent view attribute is used to characterize the encapsulated view object corresponding to at least one parent encapsulated view object; and the child view attribute is used to characterize the encapsulated view object corresponding to at least one child encapsulated view object;

wherein the method further comprises:

determining a tree structure of the encapsulated view tree based on at least one of parent view attributes or child view attributes of the encapsulated view tree.

6 . The method of claim 1 , wherein the layout file is an Extensible Markup Language file, wherein the according to the layout file, obtaining view data of the target page, comprises:

acquiring a parsing tool corresponding to the layout file;

performing fie compiling on the layout file based on the parsing tool, to obtain view data of the target page.

7 . The method of claim 6 , wherein the performing fie compiling on the layout file based on the parsing tool, to obtain view data of the target page, comprises:

converting the layout file into layout codes based on the parsing tool;

creating a mapping identifier corresponding to the layout codes, wherein the mapping identifier is used to indicate the target page; and

based on the layout codes and the corresponding mapping identifier, obtaining view data of the target page.

8 . An electronic device, comprising a processor, and a memory communicatively connected to the processor;

wherein the memory stores computer executable instructions;

wherein the processor executes the computer-executable instructions stored in the memory to implement:

acquiring a layout file of a target page, which is used to characterize a page layout of the target page;

according to the layout file, obtaining view data of the target page, which is used to characterize view attributes of view objects within the target page;

asynchronously generating a target view tree corresponding to the target page via at least two processing threads based on the view data; and

displaying the target page based on the target view tree,

wherein the view data comprises an encapsulated view tree, the encapsulated view tree having the same tree structure as the target view tree, the encapsulated view tree comprising at least two encapsulated view objects, the encapsulated view object being used to store view attributes of a view object at a corresponding position on the target view tree.

9 . The electronic device of claim 8 , wherein the asynchronously generating a target view tree corresponding to the target page via at least two processing threads based on the view data, comprising:

asynchronously loading each encapsulated view object in the encapsulated view tree and creating a corresponding view object via at least two processing threads;

after all of the encapsulated view objects in the encapsulated view tree have been loaded, based on the tree structure of the encapsulated view tree, splicing the view objects corresponding to respective encapsulated view objects together into a target view tree.

10 . The electronic device of claim 9 , wherein the asynchronously loading each encapsulated view object in the encapsulated view tree and creating a corresponding view object via at least two processing threads, comprises:

determining a target number of processing threads based on a tree structure of the encapsulated view tree;

creating the target number of processing threads;

asynchronously loading each encapsulated view object in the encapsulated view tree and creating a corresponding view object via the target number of processing threads.

11 . The electronic device of claim 9 , wherein the encapsulated view object has a state attribute, the state attribute being used to characterize whether or not the encapsulated view object is loaded by a processing thread; wherein the at least two processing threads include a first processing thread,

wherein the asynchronously loading each encapsulated view object in the encapsulated view tree via at least two processing threads, comprising:

for a current encapsulated view object, reading, via the first processing thread, the state attribute of the current encapsulated view object;

if the state attribute of the current encapsulated view object is a first state, then loading the current encapsulated view object via the first processing thread, wherein the first state characterizes that the current encapsulated view object has not been loaded by any of the at least two processing threads.

12 . The electronic device of claim 10 , wherein the encapsulated view object has at least one of a parent view attribute or a child view attribute, wherein the parent view attribute is used to characterize the encapsulated view object corresponding to at least one parent encapsulated view object; and the child view attribute is used to characterize the encapsulated view object corresponding to at least one child encapsulated view object;

wherein the processor executes the computer-executable instructions stored in the memory to further implement:

determining a tree structure of the encapsulated view tree based on at least one of parent view attributes or child view attributes of the encapsulated view tree.

13 . The electronic device of claim 8 , wherein the layout file is an Extensible Markup Language file, wherein the according to the layout file, obtaining view data of the target page, comprises:

acquiring a parsing tool corresponding to the layout file;

performing fie compiling on the layout file based on the parsing tool, to obtain view data of the target page.

14 . A non-transitory computer-readable storage medium having computer-executable instructions stored therein, wherein the processor executes the computer- executable instructions to implement:

acquiring a layout file of a target page, which is used to characterize a page layout of the target page;

according to the layout file, obtaining view data of the target page, which is used to characterize view attributes of view objects within the target page;

asynchronously generating a target view tree corresponding to the target page via at least two processing threads based on the view data; and

displaying the target page based on the target view tree,

wherein the view data comprises an encapsulated view tree, the encapsulated view tree having the same tree structure as the target view tree, the encapsulated view tree comprising at least two encapsulated view objects, the encapsulated view object being used to store view attributes of a view object at a corresponding position on the target view tree.

15 . The non-transitory computer-readable storage medium of claim 14 , wherein the asynchronously generating a target view tree corresponding to the target page via at least two processing threads based on the view data, comprising:

asynchronously loading each encapsulated view object in the encapsulated view tree and creating a corresponding view object via at least two processing threads;

after all of the encapsulated view objects in the encapsulated view tree have been loaded, based on the tree structure of the encapsulated view tree, splicing the view objects corresponding to respective encapsulated view objects together into a target view tree.

16 . The non-transitory computer-readable storage medium of claim 15 , wherein the asynchronously loading each encapsulated view object in the encapsulated view tree and creating a corresponding view object via at least two processing threads, comprises:

determining a target number of processing threads based on a tree structure of the encapsulated view tree;

creating the target number of processing threads;

asynchronously loading each encapsulated view object in the encapsulated view tree and creating a corresponding view object via the target number of processing threads.

17 . The non-transitory computer-readable storage medium of claim 15 , wherein the encapsulated view object has a state attribute, the state attribute being used to characterize whether or not the encapsulated view object is loaded by a processing thread; wherein the at least two processing threads include a first processing thread,

wherein the asynchronously loading each encapsulated view object in the encapsulated view tree via at least two processing threads, comprising:

for a current encapsulated view object, reading, via the first processing thread, the state attribute of the current encapsulated view object;

if the state attribute of the current encapsulated view object is a first state, then loading the current encapsulated view object via the first processing thread, wherein the first state characterizes that the current encapsulated view object has not been loaded by any of the at least two processing threads.

Priority Claims (1)
CN 202310332554.0 · Mar 30, 2023 · national
Continuity (1)
Related Publication 20240330566A1 · Oct 3, 2024
References Cited (7)
US 9639517B2 · Horiuchi · 2017 [cited by examiner]
US 20120110433A1 · Pan · 2012 [cited by examiner]
US 20200195705A1 · Liu · 2020 [cited by examiner]
US 20220253588A1 · Sun · 2022 [cited by examiner]
US 20240362293A1 · Huang · 2024 [cited by examiner]
CN 107656759A · 2018 [cited by applicant]
CN 111752667A · 2020 [cited by examiner]