Elapsed time optimization method and apparatus for page refreshing, and terminal device
AssigneeBeijing Bytedance Network Technology Co., Ltd.
InventorJie Yang
Life of this patent
Estimating the term…
Abstract
The present invention relates to the technical field of terminals, and relates to a time-consuming optimization method and apparatus for page refreshing, and a terminal device. The method comprises: obtaining target time-consuming information of a target stage in the process of refreshing a first page; when the target time-consuming information does not meet a time-consuming limiting condition corresponding to the target stage, determining that the target stage is to be optimized; and during the subsequent refreshing of the first page, performing optimization processing on the target stage. The present invention is used for solving the problem of long consumed time for refreshing a page.
Claims16
An elapsed time optimization method for page refreshing, characterized by comprising:
- obtaining target elapsed time information of a target stage in a process of refreshing a first page;
- in response to determining that the target elapsed time information fails to meet an elapsed time qualification condition corresponding to the target stage, the target stage is to be optimized;
- and
- optimizing the target stage in a subsequent process of refreshing the first page;
- wherein the target stage comprises at least one of the following stages:
- a first request stage, a second request stage, a receiving stage, a parsing stage and a page rendering stage;
- wherein the first request stage is from receiving an input that triggers refreshing the first page to a client initiating a web request;
- the second request stage is from the client initiating the web request to a web request module initiating the web request;
- the receiving stage is from the client initiating the web request to receiving a web data stream;
- the parsing stage is from receiving the web data stream to completing parsing of the web data stream;
- the page rendering stage is from completing parsing of the web data stream to completing page rendering.
Dependencies are inferred from the claim text.