Webpage rendering method, device, electronic apparatus and storage medium
AssigneeBaidu Online Network Technology (Beijing) Co., Ltd.
InventorsNing Wang, Yanting Zhang, Junfang Han
Life of this patent
Estimating the term…
Abstract
A webpage rendering method and device, an electronic apparatus and a storage medium are provided, which are related to a field of web rendering technology. A specific implementation includes: receiving an access request of a target webpage from a terminal; and sending a page configuration file of the target webpage to the terminal, in response to the access request of the target webpage, wherein the page configuration file is configured to form a pre-rendered page of the target webpage, and the pre-rendered page includes a part or all of the target webpage that has been rendered; and the pre-rendered page is configured to enable the terminal to acquire a rendered page of the target webpage.
Claims20
A webpage rendering method, applied to a server, wherein the webpage rendering method comprises:
- receiving an access request of a target webpage from a terminal;
- and
- sending a Hypertext markup language file of the target webpage from a first content distribution network as a static resource server to the terminal, in response to the access request of the target webpage, wherein
- the Hypertext markup language file is configured to display an intermediate state page of the target webpage, and the intermediate state page comprises a part or all of the target webpage that has been rendered;
- and
- the intermediate state page is configured to enable the terminal to acquire a rendered page of the target webpage,
- wherein an address of the first content distribution network as the static resource server is the same as an address of the target webpage, and
- the method further comprises:
- sending a cascading style sheet file and a script language file from a second content distribution network to the terminal.
A webpage rendering method, applied to a terminal, wherein the webpage rendering method comprises:
- sending an access request of a target webpage to a server;
- receiving a Hypertext markup language file of the target webpage sent from a first content distribution network as a static resource server;
- displaying an intermediate state page of the target webpage according to the Hypertext markup language file, wherein the intermediate state page comprises a part or all of the target webpage that has been rendered;
- and
- acquiring a rendered page of the target webpage according to the intermediate state page,
- wherein an address of the first content distribution network as the static resource server is the same as an address of the target webpage, and
- the method further comprises:
- sending a cascading style sheet file and a script language file from a second content distribution network to the terminal.
A webpage rendering device, applied to a server, wherein the webpage rendering device comprises:
- at least one processor;
- and
- a memory communicated with the at least one processor, wherein
- instructions executable by the at least one processor are stored in the memory, the instructions are executed by the at least one processor, to enable the at least one processor to:
- receive an access request of a target webpage from a terminal;
- and
- send a Hypertext markup language file of the target webpage from a first content distribution network as a static resource server to the terminal, in response to the access request of the target webpage, wherein
- the Hypertext markup language file is configured to display an intermediate state page of the target webpage, and the intermediate state page comprises a part or all of the target webpage that has been rendered;
- and
- the intermediate state page is configured to enable the terminal to acquire a rendered page of the target webpage,
- wherein an address of the first content distribution network as the static resource server is the same as an address of the target webpage, and
- the instructions are executed by the at least one processor, to enable the at least one processor further to:
- send a cascading style sheet file and a script language file from a second content distribution network to the terminal.
A webpage rendering device, applied to a terminal, wherein the webpage rendering device comprises:
- at least one processor;
- and
- a memory communicated with the at least one processor, wherein
- instructions executable by the at least one processor are stored in the memory, the instructions are executed by the at least one processor, to enable the at least one processor to:
- send an access request of a target webpage to a server;
- receive a Hypertext markup language file of the target webpage sent from a first content distribution network as a static resource server;
- display an intermediate state page of the target webpage according to the Hypertext markup language file, wherein the intermediate state page comprises a part or all of the target webpage that has been rendered;
- and
- acquire a rendered page of the target webpage according to the intermediate state page,
- wherein an address of the first content distribution network as the static resource server is the same as an address of the target webpage, and
- send a cascading style sheet file and a script language file from a second content distribution network to the terminal.
A non-transitory computer-readable storage medium, in which computer instructions are stored, wherein the computer instructions are configured to enable a computer to:
- receive an access request of a target webpage from a terminal;
- and
- send a Hypertext markup language file of the target webpage from a first content distribution network as a static resource server to the terminal, in response to the access request of the target webpage, wherein
- the Hypertext markup language file is configured to display an intermediate state page of the target webpage, and the intermediate state page comprises a part or all of the target webpage that has been rendered;
- and
- the intermediate state page is configured to enable the terminal to acquire a rendered page of the target webpage,
- wherein an address of the first content distribution network as the static resource server is the same as an address of the target webpage, and
- send a cascading style sheet file and a script language file from a second content distribution network to the terminal.
A non-transitory computer-readable storage medium, in which computer instructions are stored, wherein the computer instructions are configured to enable a computer to:
- send an access request of a target webpage to a server;
- receive a Hypertext markup language file of the target webpage sent from a first content distribution network as a static resource server;
- display an intermediate state page of the target webpage according to the Hypertext markup language file, wherein the intermediate state page comprises a part or all of the target webpage that has been rendered;
- and
- acquire a rendered page of the target webpage according to the intermediate state page,
- wherein an address of the first content distribution network as the static resource server is the same as an address of the target webpage, and
- send a cascading style sheet file and a script language file from a second content distribution network to the terminal.
Dependencies are inferred from the claim text.