CN114117271A - Webpage display method and device - Google Patents

Webpage display method and device Download PDF

Info

Publication number
CN114117271A
CN114117271A CN202111183002.5A CN202111183002A CN114117271A CN 114117271 A CN114117271 A CN 114117271A CN 202111183002 A CN202111183002 A CN 202111183002A CN 114117271 A CN114117271 A CN 114117271A
Authority
CN
China
Prior art keywords
html file
target
webpage
web page
url
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111183002.5A
Other languages
Chinese (zh)
Inventor
朱明鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111183002.5A priority Critical patent/CN114117271A/en
Publication of CN114117271A publication Critical patent/CN114117271A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions

Abstract

The application discloses a webpage display method and a webpage display device, and belongs to the technical field of networks. Wherein, the method comprises the following steps: acquiring M data identifiers in a first hypertext markup language HTML file, wherein each data identifier corresponds to a webpage content to be loaded, and M is a positive integer; sending a target Uniform Resource Locator (URL) and M data identifiers to a first server, wherein the target URL is a URL corresponding to a first HTML file; receiving a second HTML file from the first server, and displaying the target webpage based on the second HTML file; wherein the second HTML file is: and the first server writes the webpage contents corresponding to the M data identifications into the first HTML file to obtain the webpage contents.

Description

Webpage display method and device
Technical Field
The application belongs to the technical field of networks, and particularly relates to a webpage display method and a webpage display device.
Background
Generally, in a scenario where a user refers to a dynamic web page through a browser of an electronic device, the electronic device may first download a hypertext markup language (HTML) file of the dynamic web page from a server, render the HTML file to display the dynamic web page, then download some web page contents to be loaded in the dynamic web page from the server, and update the displayed dynamic web page, so that the user may refer to the dynamic web page.
However, since the network signal quality of the electronic device may be poor, in this case, it may take a long time for the electronic device to download some web content to be loaded from the server, and therefore, it takes a long time for the electronic device to display the web content to be loaded in the dynamic web page.
This results in a slower speed of displaying dynamic web pages by the electronic device.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for displaying a web page, which can solve the problem that the speed of displaying a dynamic web page by an electronic device is slow.
In a first aspect, an embodiment of the present application provides a method for displaying a web page, where the method includes: acquiring M data identifiers in a first HTML file, wherein each data identifier corresponds to a webpage content to be loaded, and M is a positive integer; sending a target Uniform Resource Locator (URL) and M data identifiers to a first server, wherein the target URL is a URL corresponding to a first HTML file; receiving a second HTML file from the first server, and displaying the target webpage based on the second HTML file; wherein the second HTML file is: and the first server writes the webpage contents corresponding to the M data identifications into the first HTML file to obtain the webpage contents.
In a second aspect, an embodiment of the present application provides a method for displaying a web page, where the method includes: receiving a target URL and M data identifiers from the electronic equipment, wherein the target URL is a URL corresponding to a first HTML file, each data identifier corresponds to a webpage content to be loaded, and M is a positive integer; sending a target URL and M data identifiers to a second server, and receiving a first HTML file and M webpage contents from the second server, wherein the M webpage contents correspond to the M data identifiers one to one; writing the M webpage contents into a first HTML file to obtain a second HTML file; sending the second HTML file to the electronic equipment; wherein the second HTML file is for: the electronic device displays the target web page.
In a third aspect, an embodiment of the present application provides a web page display apparatus, including: the device comprises an acquisition module, a sending module, a receiving module and a display module. The acquisition module is used for acquiring M data identifiers in the first HTML file, each data identifier corresponds to a webpage content to be loaded, and M is a positive integer. And the sending module is used for sending a target URL and the M data identifiers acquired by the acquisition module to the first webpage display device, wherein the target URL is a URL corresponding to the first HTML file. And the receiving module is used for receiving the second HTML file from the first webpage display device. And the display module is used for displaying the target webpage based on the second HTML file received by the receiving module. Wherein the second HTML file is: and the first webpage display device writes the webpage contents corresponding to the M data identifications into the first HTML file to obtain the webpage contents.
In a fourth aspect, an embodiment of the present application provides a web page display apparatus, where the web page display apparatus is a first web page display apparatus, and the web page display apparatus includes: the device comprises a receiving module, a sending module and a processing module. The receiving module is used for receiving a target URL and M data identifications from the webpage display device, the target URL is a URL corresponding to the first HTML file, each data identification corresponds to a webpage content to be loaded, and M is a positive integer. And the sending module is used for sending the target URL and the M data identifications received by the receiving module to the second webpage display device. The receiving module is further configured to receive the first HTML file and M pieces of web page content from the second web page display device, where the M pieces of web page content correspond to the M pieces of data identifiers one to one. And the processing module is used for writing the M webpage contents received by the receiving module into the first HTML file to obtain a second HTML file. The sending module is further configured to send the second HTML file processed by the processing module to the web page display device. Wherein the second HTML file is for: the web page display means displays a target web page.
In a fifth aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, implement the steps of the method according to the first aspect, or implement the steps of the method according to the second aspect.
In a sixth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect, or implement the steps of the method according to the second aspect.
In a seventh aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect, or implement the steps of the method according to the second aspect.
In this embodiment of the application, the electronic device may obtain at least one data identifier corresponding to at least one piece of web content to be loaded in a first HTML file, and send a target URL and the at least one data identifier corresponding to the first HTML file to the first server, so that the electronic device may receive a second HTML file from the first server, where the second HTML file is obtained by writing, by the first server, the web content corresponding to M pieces of data identifiers into the first HTML file, and display the target web page based on the second HTML file. The electronic device can obtain the data identifier corresponding to the at least one webpage content to be loaded in the first HTML file, and send the target URL and the data identifier corresponding to the at least one webpage content to the first server, so that the first server can write the at least one webpage content into the first HTML file to obtain the second HTML file including the webpage content to be loaded.
Drawings
Fig. 1 is a schematic flowchart of a method for displaying a web page according to an embodiment of the present disclosure;
fig. 2 is a second schematic flowchart of a web page display method according to an embodiment of the present application;
fig. 3 is a third schematic flowchart of a web page display method according to an embodiment of the present application;
fig. 4 is a fourth schematic flowchart of a web page display method according to an embodiment of the present application;
fig. 5 is a fifth flowchart illustrating a web page display method according to an embodiment of the present application;
fig. 6 is a sixth schematic flowchart of a web page display method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a web page display device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a first web page display device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 10 is a schematic hardware structure diagram of an electronic device provided in an embodiment of the present application;
fig. 11 is a schematic hardware structure diagram of a server according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail a web page display method and a web page display apparatus provided in the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 shows a flowchart of a method for displaying a web page according to an embodiment of the present application. As shown in fig. 1, the web page display method provided in the embodiment of the present application may include steps 101 to 107 described below.
Step 101, the electronic device obtains M data identifiers in the first HTML file.
In this embodiment of the application, each data identifier of the M data identifiers corresponds to a piece of web content to be loaded, and M is a positive integer.
Optionally, in this embodiment, before the step 101, the webpage display method provided in this embodiment may further include the following step 100, and the step 101 may be specifically realized by the following step 101 a.
Step 100, the electronic device obtains a first HTML file according to the target URL.
Step 101a, the electronic device pre-renders the first HTML file to obtain M data identifiers.
Therefore, the electronic equipment can acquire the first HTML file according to the target URL and pre-render the first HTML file to obtain M data identifiers, and does not need to interact with the first server for multiple times, so that the speed of displaying the dynamic webpage by the electronic equipment can be increased.
And 102, the electronic equipment sends the target URL and the M data identifications to the first server.
In an embodiment of the present application, the target URL is a URL corresponding to the first HTML file.
Step 103, the first server receives the target URL and the M data identifications from the electronic device.
And step 104, the first server sends the target URL and the M data identifications to the second server, and receives the first HTML file and the M webpage contents from the second server.
In the embodiment of the present application, the M pieces of web page content correspond to the M pieces of data identifiers one to one.
And 105, writing the M webpage contents into the first HTML file by the first server to obtain a second HTML file.
It is understood that the second HTML file mentioned above is: and the first server writes the webpage contents corresponding to the M data identifications into the first HTML file to obtain the webpage contents.
And 106, the first server sends the second HTML file to the electronic equipment.
And step 107, the electronic equipment receives the second HTML file from the first server and displays the target webpage based on the second HTML file.
Optionally, in this embodiment, after the step 107, the webpage display method provided in this embodiment may further include the following step 108 and step 109 (or step 110).
Step 108, the electronic device receives a first input of the target webpage content in the target webpage from the user.
And step 109, under the condition that the target data identification meets the preset condition, the electronic equipment responds to the first input and acquires the target webpage content from the second HTML file.
In the embodiment of the present application, the target data identifier is: and data identification corresponding to the target webpage content.
Optionally, in an embodiment of the present application, the preset condition includes at least one of: the M data identifications comprise target data identifications and target webpage contents loaded by the electronic equipment for the first time.
Therefore, the electronic equipment can directly acquire the target webpage content from the downloaded second HTML file without the target webpage content from the first server under the condition that the target data identification meets the preset condition, and therefore, the speed of displaying the dynamic webpage by the electronic equipment can be improved.
And step 110, under the condition that the target data identification does not meet the preset condition, the electronic equipment responds to the first input and sends a target request to the second server.
In this embodiment of the present application, the target request includes a target data identifier, and the target request is used for requesting target web page content.
Therefore, the electronic equipment can download the target webpage content from the second server under the condition that the target data identification does not meet the preset condition so as to display the webpage content required by the user, and therefore, the accuracy of displaying the webpage content required by the user by the electronic equipment can be improved.
In the webpage display method provided by the embodiment of the application, the electronic device may obtain at least one data identifier corresponding to at least one webpage content to be loaded in the first HTML file one to one, and send the target URL and the at least one data identifier corresponding to the first HTML file to the first server, so that the first server may receive the target URL and the at least one data identifier from the electronic device, send the target URL and the at least one data identifier to the second server, and receive the first HTML file corresponding to the target URL and the at least one webpage content corresponding to the at least one data identifier one to one from the second server, so that the first server may write the at least one webpage content into the first HTML file to obtain the second HTML file, and send the second HTML file to the electronic device, and the electronic device may receive the second HTML file from the first server, and displaying the target web page based on the second HTML file. Since the electronic device can obtain the data identifier corresponding to the at least one web page content to be loaded in the first HTML file, and sends the target URL and the data identifier corresponding to the at least one web page content to the first server, such that the first server may retrieve the first HTML file and the at least one web page content from the second server, and writes the at least one web page content into the first HTML file to obtain a second HTML file including the web page content to be loaded, so that the electronic device can receive the second HTML file from the first server, and directly display the target web page, that is, the electronic device needs to interact with the first server once, so as to obtain the web page content to be loaded in the web page, and the electronic equipment does not need to interact with the server for multiple times, so that the time consumption of the electronic equipment for downloading the webpage content to be loaded from the server can be reduced, and the speed of displaying the dynamic webpage by the electronic equipment can be improved.
Optionally, in this embodiment of the present application, after the step 105, the method for displaying a webpage provided in this embodiment of the present application may further include the following step 111.
Step 111, the first server generates a first URL and associates the first URL with the second HTML file.
It should be noted that, regarding the execution sequence of step 111 and step 106, the embodiment of the present application is not limited herein.
In one possible implementation, step 111 may be performed first, and then step 106 may be performed; in another possible implementation, step 106 may be performed first, and then step 111 may be performed; in yet another possible implementation, step 111 and step 106 may be performed simultaneously.
Therefore, the first server can associate the first URL with the second HTML file, so that the electronic equipment can directly acquire the second HTML file according to the first URL, and the speed of displaying the dynamic webpage by the electronic equipment can be increased.
Fig. 2 shows a flowchart of a method for displaying a web page according to an embodiment of the present application. As shown in fig. 2, the method for displaying a web page provided by the embodiment of the present application may include steps 201 to 203 described below.
Step 201, the electronic device obtains M data identifiers in the first HTML file.
Optionally, in this embodiment of the application, when the electronic device displays an interface of a "setup" application program, the electronic device may start a "web page accelerated access" function according to a click input of a user on a "web page accelerated access function" option in the interface; therefore, under the condition that the electronic equipment displays the interface of the browser, the electronic equipment can acquire the first HTML file and detect the first HTML file, and under the condition that the webpage corresponding to the first HTML file is determined to be the dynamic webpage, the electronic equipment can acquire the M data identifiers in the first HTML file.
The above "web page corresponding to the HTML file" can be understood as follows: the electronic device renders the HTML file to a displayed web page.
Further optionally, in this embodiment of the application, the electronic device may obtain the first HTML file from the first server, or may obtain the first HTML file from the second server. The first server may specifically be: the webpage cloud interception server is erected, and the second server can be specifically: and the server of the webpage corresponding to the first HTML file.
Further optionally, in this embodiment of the application, the electronic device may obtain a webpage code of a webpage corresponding to the first HTML file, and determine whether the webpage corresponding to the first HTML file is a dynamic webpage according to the webpage code.
It should be noted that, for the description that the electronic device determines whether the webpage corresponding to the first HTML file is the dynamic webpage according to the webpage code, reference may be made to specific descriptions in related technologies, and details of the embodiment of the present application are not repeated herein.
In this embodiment of the application, each data identifier of the M data identifiers corresponds to a piece of web content to be loaded, and M is a positive integer.
Optionally, in this embodiment of the application, for each data identifier of the M data identifiers, one data identifier may specifically be at least one of the following items of corresponding web content: name, status, protocol, domain name, remote address, etc.
Optionally, in this embodiment of the application, the electronic device may perform preprocessing on the first HTML file to obtain M data identifiers.
Optionally, in this embodiment, with reference to fig. 2, as shown in fig. 3, before the step 201, the webpage display method provided in this embodiment may further include the following step 301, and the step 201 may be specifically implemented by the following step 201 a.
Step 301, the electronic device obtains a first HTML file according to the target URL.
In an embodiment of the present application, the target URL is a URL corresponding to the first HTML file.
Further optionally, in this embodiment of the application, in a case that the electronic device displays an interface of a browser, the electronic device may obtain the first HTML file from the second server according to an input of a target URL input in the interface by a user.
It should be noted that, the electronic device obtains the description of the first HTML file from the second server according to the target URL, which may refer to specific descriptions in the related art, and details of the embodiment of the present application are not repeated herein.
Step 201a, the electronic device pre-renders the first HTML file to obtain M data identifiers.
Further optionally, in this embodiment of the application, the electronic device may pre-render the first HTML file in a background system, and intercept the first HTML file through an XMLHttpRequest browser object in a proxy webpage of the browser, so as to obtain M data identifiers.
Therefore, the electronic equipment can acquire the first HTML file according to the target URL and pre-render the first HTML file to obtain M data identifiers, and does not need to interact with the first server for multiple times, so that the speed of displaying the dynamic webpage by the electronic equipment can be increased.
Optionally, in this embodiment of the application, after the electronic device obtains M data identifiers, a data request list may be generated according to the M data identifiers, where the data request list includes the M data identifiers.
Step 202, the electronic device sends the target URL and the M data identifications to the first server.
In an embodiment of the present application, the target URL is a URL corresponding to the first HTML file.
Optionally, in this embodiment of the application, the electronic device may send the target URL and the data request list to the first server, so as to send the target URL and the M data identifiers to the first server.
Step 203, the electronic device receives the second HTML file from the first server, and displays the target webpage based on the second HTML file.
In an embodiment of the present application, the second HTML file is: and the first server writes the webpage contents corresponding to the M data identifications into the first HTML file to obtain the webpage contents.
Optionally, in this embodiment of the application, the electronic device may render according to the second HTML file to obtain the target webpage, so that the electronic device may update an interface of the browser to display the target webpage in the interface.
It is understood that the target web page includes all web page content to be loaded.
Optionally, in this embodiment of the application, the second HTML file may further include a first URL, where the first URL may specifically be a URL corresponding to the second HTML file, and the first URL is associated with the second HTML file, so that the electronic device (and/or other electronic devices) may directly obtain the second HTML file according to the first URL.
In the embodiment of the application, the electronic device may directly obtain the data identifiers of all the web page contents to be loaded in the first HTML file corresponding to the dynamic web page, and send the URL of the dynamic web page and the data identifiers of all the web page contents to be loaded to the first server, so that the first server may write all the web page contents to be loaded into the first HTML file to obtain the second HTML file, and the electronic device may receive the second HTML file from the first server and display the target web page based on the second HTML file.
According to the webpage display method provided by the embodiment of the application, the electronic equipment can obtain at least one data identifier corresponding to at least one webpage content to be loaded in the first HTML file one by one, and sends the target URL and the at least one data identifier corresponding to the first HTML file to the first server, so that the electronic equipment can receive the second HTML file from the first server, the second HTML file is obtained by writing the webpage content corresponding to the M data identifiers into the first HTML file by the first server, and the target webpage is displayed based on the second HTML file. The electronic device can obtain the data identifier corresponding to the at least one webpage content to be loaded in the first HTML file, and send the target URL and the data identifier corresponding to the at least one webpage content to the first server, so that the first server can write the at least one webpage content into the first HTML file to obtain the second HTML file including the webpage content to be loaded.
Of course, after the electronic device displays the target webpage, the user may need to view a certain webpage content to be loaded in the target webpage, and at this time, the user may directly input the certain webpage content, so that the electronic device may determine whether to acquire the certain webpage content from the second HTML file or download the certain webpage content from the second server, and thus the user may view the certain webpage content in the target webpage.
Optionally, in this embodiment, with reference to fig. 2, as shown in fig. 4, after the step 203, the webpage display method provided in this embodiment may further include the following step 401 and step 402 (or step 403).
Step 401, an electronic device receives a first input of a target webpage content in a target webpage from a user.
In an embodiment of the application, the first input is used to trigger the electronic device to load the web content.
Further optionally, in this embodiment of the application, the first input may specifically be: a user's press input (e.g., click input, long press input, etc.) to the target web page content.
And 402, under the condition that the target data identification meets the preset condition, the electronic equipment responds to the first input and acquires the target webpage content from the second HTML file.
In the embodiment of the present application, the target data identifier is: and data identification corresponding to the target webpage content.
Further optionally, in this embodiment of the application, the target data identifies at least one of the following specific target web page contents: name, status, protocol, domain name, remote address, etc.
Further optionally, in this embodiment of the application, the preset condition is: js script in the second HTML file. Wherein the hook.min.js script is: a script written by a first server.
Illustratively, assume that the M data identifications include: the script of book.min.js may specifically be:
Figure BDA0003298075870000111
optionally, in an embodiment of the present application, the preset condition includes at least one of: the M data identifications comprise target data identifications and target webpage contents loaded by the electronic equipment for the first time.
Further optionally, in this embodiment of the application, when the preset condition includes that the M data identifiers include the target data identifier, the XMLHttpRequest object in the proxy webpage of the browser compares the target data identifier with the M data identifiers, and when the M data identifiers include the target data identifier, the electronic device determines that the target data identifier satisfies the preset condition, and acquires the content of the target webpage from the second HTML file.
For example, the XMLHttpRequest object in the proxy webpage of the browser of the electronic device may compare the target data identifier with the window.
Further optionally, in this embodiment of the application, when the preset condition includes that the electronic device loads the target web content for the first time, the electronic device may detect the historical loading record, and when the historical loading record does not include the loading record of the target web content, the electronic device determines that the target data identifier meets the preset condition, and acquires the target web content from the second HTML file.
In the embodiment of the application, if the target data identifier meets the preset condition, it may be considered that the user may need to view the web page content in the downloaded second HTML file, and therefore, the electronic device may directly obtain the target web page content from the second HTML file.
Therefore, the electronic equipment can directly acquire the target webpage content from the downloaded second HTML file without the target webpage content from the first server under the condition that the target data identification meets the preset condition, and therefore, the speed of displaying the dynamic webpage by the electronic equipment can be improved.
And step 403, under the condition that the target data identification does not meet the preset condition, the electronic equipment responds to the first input and sends a target request to the second server.
In this embodiment of the present application, the target request includes a target data identifier, and the target request is used for requesting target web page content.
In the embodiment of the application, if the target data identifier does not meet the preset condition, it may be considered that the user may need to update the target webpage content, and therefore the electronic device may send the target request to the second server.
Therefore, the electronic equipment can download the target webpage content from the second server under the condition that the target data identification does not meet the preset condition so as to display the webpage content required by the user, and therefore, the accuracy of displaying the webpage content required by the user by the electronic equipment can be improved.
It should be noted that, in the webpage display method provided in the embodiment of the present application, the execution main body may be an electronic device, or a control module for executing the webpage display method in the electronic device. In the embodiment of the present application, an electronic device is taken as an example to execute a web page display method, and the web page display method provided in the embodiment of the present application is described.
Fig. 5 is a flowchart illustrating a web page display method according to an embodiment of the present application. As shown in fig. 5, the method for displaying a web page provided by the embodiment of the present application may include steps 501 to 504 described below.
Step 501, the first server receives a target URL and M data identifications from the electronic device.
Optionally, in this embodiment of the application, the first server may specifically be: and the erected webpage cloud interception server.
In this embodiment of the application, the target URL is a URL corresponding to the first HTML file, each of the M data identifiers corresponds to a piece of web content to be loaded, and M is a positive integer.
Optionally, in this embodiment of the application, for each data identifier of the M data identifiers, one data identifier may specifically be at least one of the following items of corresponding web content: name, status, protocol, domain name, remote address, etc.
Step 502, the first server sends the target URL and M data identifiers to the second server, and receives the first HTML file and M web page contents from the second server.
Optionally, in this embodiment of the application, the second server may specifically be: and the server of the webpage corresponding to the first HTML file.
In the embodiment of the present application, the M pieces of web page content correspond to the M pieces of data identifiers one to one.
Optionally, in this embodiment of the application, the M web page contents may specifically be: and the second server determines the data from the second server according to the M data identifications.
Step 503, the first server writes the M web page contents into the first HTML file to obtain a second HTML file.
It is understood that the web page (e.g., the target web page in the following embodiments) obtained by rendering the second HTML file includes all the web page contents to be loaded.
Optionally, in this embodiment of the application, after the first server obtains the second HTML file, the first server may further write a hook.min.js script in the second HTML file, where the hook.min.js script is used by the electronic device to determine the preset condition, so that the electronic device may obtain the web page content from the second HTML file when the target data identifier satisfies the preset condition, or send a request to the second server when the target data identifier does not satisfy the preset condition, where the request is used to request the web page content.
Step 504, the first server sends the second HTML file to the electronic device.
In an embodiment of the present application, the second HTML file is used to: the electronic device displays the target web page.
In this embodiment of the application, the first server may receive, from the electronic device, a target URL and data identifiers corresponding to M pieces of web content to be loaded, and send, to the second server, the data identifiers corresponding to the target URL and the M pieces of web content, so that the first server may receive, from the second server, the first HTML file and the M pieces of web content, and write the M pieces of web content into the first HTML file to obtain the second HTML file, that is, the second HTML file includes all pieces of web content to be loaded, and thus the first server may send the second HTML file to the electronic device, so that the electronic device may display the target web page based on the second HTML file.
According to the webpage display method provided by the embodiment of the application, the first server can receive the target URL corresponding to the first HTML file and the M data identifications of the M webpage contents to be loaded from the electronic equipment, and send the target URL and the M data identifications to the second server, so that the first server can receive the first HTML file and the M webpage contents from the second server, write the M webpage contents into the first HTML file to obtain the second HTML file, and further the first server can send the second HTML file to the electronic equipment, and the electronic equipment can display the target webpage based on the second HTML file. Since the first server can receive the target URL of the first HTML file and the data identifier corresponding to the at least one web content to be loaded in the first HTML file from the electronic device, and send the target RUL and the data identifier corresponding to the at least one web content to the second server, the first server can receive the first HTML file and the at least one web content from the second server, and write the at least one web content into the first HTML file to obtain the second HTML file including the web content to be loaded, so that the first server can send the second HTML file to the electronic device, so that the electronic device can directly display the target web page, that is, the first server needs to interact with the electronic device once, so that the electronic device can obtain the web content to be loaded in the web page without interacting with the server many times, therefore, the time consumption of the electronic equipment for downloading the webpage content to be loaded from the server can be reduced, and the speed of displaying the dynamic webpage by the electronic equipment can be improved.
Optionally, in this embodiment, with reference to fig. 5, as shown in fig. 6, after the step 503, the webpage display method provided in this embodiment may further include the following step 601.
Step 601, the first server generates a first URL and associates the first URL with the second HTML file.
In an embodiment of the present application, the first server may associate the first URL with the second HTML file, so that the electronic device (and/or other electronic devices) may obtain the second HTML file directly according to the first URL.
Optionally, in this embodiment of the application, after the first server associates the first URL with the second HTML file, the first server may write the first URL in the second HTML file, so that the electronic device may directly obtain the first URL from the second HTML file.
Therefore, the first server can associate the first URL with the second HTML file, so that the electronic device can directly acquire the second HTML file according to the first URL, and the speed of displaying the dynamic webpage by the electronic device can be improved.
It should be noted that, in the web page display method provided in the embodiment of the present application, the execution main body may be the first server, or a control module in the first server for executing the web page display method. In the embodiment of the present application, a method for displaying a web page performed by a first server is taken as an example, and the method for displaying a web page provided in the embodiment of the present application is described.
Fig. 7 is a schematic diagram illustrating a possible structure of a web page display device according to an embodiment of the present application. As shown in fig. 7, the web page display device 60 may include: an acquisition module 61, a sending module 62, a receiving module 63 and a display module 64.
The obtaining module 61 is configured to obtain M data identifiers in the first HTML file, where each data identifier corresponds to a web content to be loaded, and M is a positive integer. And a sending module 62, configured to send, to the first web page display apparatus, a target URL and the M data identifiers acquired by the acquiring module 61, where the target URL is a URL corresponding to the first HTML file. And a receiving module 63, configured to receive the second HTML file from the first web page display device. And a display module 64, configured to display the target webpage based on the second HTML file received by the receiving module 63. Wherein the second HTML file is: and the first webpage display device writes the webpage contents corresponding to the M data identifications into the first HTML file to obtain the webpage contents.
In a possible implementation manner, the receiving module 63 is further configured to receive a first input of the target web page content in the target web page by the user. The obtaining module 61 is further configured to, in a case that the target data identifier satisfies a preset condition, in response to the first input received by the receiving module 63, obtain the target web page content from the second HTML file; alternatively, the sending module 62 is further configured to send the target request to the second webpage display apparatus in response to the first input received by the receiving module 63 when the target data identifier does not satisfy the preset condition. Wherein, the target data identifier is: data identification corresponding to the target webpage content; the target request comprises a target data identifier, and the target request is used for requesting target webpage content.
In a possible implementation manner, the preset condition includes at least one of the following: the M data identifiers include a target data identifier and a target web page content loaded by the web page display device 60 for the first time.
In a possible implementation manner, the obtaining module 61 is further configured to obtain the first HTML file according to the target URL. The obtaining module 61 is specifically configured to pre-render the first HTML file to obtain M data identifiers.
The webpage display device provided by the embodiment of the application can acquire the data identifier corresponding to at least one webpage content to be loaded in the first HTML file, and sends the target URL and the data identifier corresponding to the at least one web page content to the first server, so that the first server can write the at least one web page content into the first HTML file, obtain a second HTML file including the web page content to be loaded, the web page display means may thus receive the second HTML file from the first server, and directly display the target web page, namely, the web page display device needs to interact with the first server once to obtain the web page content to be loaded in the web page, and the webpage display device does not need to interact with the server for multiple times, so that the time consumption of downloading the webpage content to be loaded from the server by the webpage display device can be reduced, and the speed of displaying the dynamic webpage by the webpage display device can be improved.
The web page display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The web page display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The web page display device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 2 to fig. 4, and is not described here again to avoid repetition.
Fig. 8 is a schematic diagram illustrating a possible structure of a web page display device according to an embodiment of the present application, where the web page display device is a first web page display device. As shown in fig. 8, the first web page display device 70 may include: a receiving module 71, a transmitting module 72 and a processing module 73.
The receiving module 71 is configured to receive a target URL and M data identifiers from the web page display device, where the target URL is a URL corresponding to the first HTML file, each data identifier corresponds to a piece of web page content to be loaded, and M is a positive integer. A sending module 72, configured to send the target URL and the M data identifiers received by the receiving module 71 to the second webpage display apparatus. The receiving module 71 is further configured to receive the first HTML file and M web page contents from the second web page display apparatus, where the M web page contents correspond to the M data identifiers one to one. The processing module 73 is configured to write the M web page contents received by the receiving module 71 into the first HTML file to obtain a second HTML file. The sending module 72 is further configured to send the second HTML file processed by the processing module 73 to the web page display device. Wherein the second HTML file is for: the web page display means displays a target web page.
In a possible implementation manner, the processing module 73 is further configured to generate a first URL and associate the first URL with the second HTML file.
The web page display apparatus provided in this embodiment of the application is a first web page display apparatus, and since the first web page display apparatus can receive a target URL of a first HTML file and a data identifier corresponding to at least one web page content to be loaded in the first HTML file from an electronic device, and send the target RUL and the data identifier corresponding to the at least one web page content to a second web page display apparatus, the first web page display apparatus can receive the first HTML file and the at least one web page content from the second web page display apparatus, and write the at least one web page content into the first HTML file, so as to obtain a second HTML file including the web page content to be loaded, so that the first web page display apparatus can send the second HTML file to the electronic device, so that the electronic device can directly display a target web page, that is, the first web page display apparatus needs to interact with the electronic device once, the electronic equipment can obtain the webpage content to be loaded in the webpage without carrying out multiple interactions with the server, so that the time consumed for downloading the webpage content to be loaded from the server by the webpage display device can be reduced, and the speed of displaying the dynamic webpage by the webpage display device can be increased.
The web page display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The web page display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The web page display device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 5 and fig. 6, and is not described here again to avoid repetition.
Optionally, in this embodiment, as shown in fig. 9, an electronic device 80 is further provided in this embodiment, and includes a processor 81, a memory 82, and a program or an instruction stored in the memory 82 and capable of being executed on the processor 81, where the program or the instruction is executed by the processor 81 to implement each process of the embodiment of the web page display method corresponding to the electronic device in the foregoing embodiment, or to implement each process of the embodiment of the web page display method corresponding to the first server in the foregoing embodiment, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The processor 110 is configured to obtain M data identifiers in the first HTML file, where each data identifier corresponds to a web page content to be loaded, and M is a positive integer.
The radio frequency unit 101 is configured to send a target URL and M data identifiers to the first server, where the target URL is a URL corresponding to the first HTML file; and receives a second HTML file from the first server.
And a display unit 106 for displaying the target web page based on the second HTML file.
Wherein the second HTML file is: and the first server writes the webpage contents corresponding to the M data identifications into the first HTML file to obtain the webpage contents.
According to the electronic device provided by the embodiment of the application, as the electronic device can acquire the data identifier corresponding to at least one webpage content to be loaded in the first HTML file, and sends the target URL and the data identifier corresponding to the at least one web page content to the first server, so that the first server can write the at least one web page content into the first HTML file, obtain a second HTML file including the web page content to be loaded, the electronic device may then receive the second HTML file from the first server, and display the target web page directly, that is, the electronic device needs to interact with the first server once, so as to obtain the web page content to be loaded in the web page, and the electronic equipment does not need to interact with the server for multiple times, so that the time consumption of the electronic equipment for downloading the webpage content to be loaded from the server can be reduced, and the speed of displaying the dynamic webpage by the electronic equipment can be improved.
Optionally, in this embodiment of the application, the user input unit 107 is configured to receive a first input of the target web page content in the target web page by the user.
The processor 110 is further configured to, in response to the first input, obtain the target web page content from the second HTML file if the target data identifier satisfies a preset condition. Alternatively, the first and second electrodes may be,
the radio frequency unit 101 is further configured to send a target request to the second server in response to the first input under the condition that the target data identifier does not satisfy the preset condition.
Wherein, the target data identifier is: data identification corresponding to the target webpage content; the target request comprises a target data identifier, and the target request is used for requesting target webpage content.
Therefore, the electronic equipment can directly acquire the target webpage content from the downloaded second HTML file without the target webpage content from the first server under the condition that the target data identification meets the preset condition, and therefore, the speed of displaying the dynamic webpage by the electronic equipment can be improved.
Therefore, the electronic equipment can download the target webpage content from the second server under the condition that the target data identification does not meet the preset condition so as to display the webpage content required by the user, and therefore, the accuracy of displaying the webpage content required by the user by the electronic equipment can be improved.
Optionally, in this embodiment of the application, the radio frequency unit 101 is further configured to obtain the first HTML file according to the target URL.
The processor 110 is specifically configured to pre-render the first HTML file to obtain M data identifiers.
Therefore, the electronic equipment can acquire the first HTML file according to the target URL and pre-render the first HTML file to obtain M data identifiers, and does not need to interact with the first server for multiple times, so that the speed of displaying the dynamic webpage by the electronic equipment can be increased.
It should be understood that, in the embodiment of the present application, the input unit 104 may include a Graphics Processor (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes image data of a still picture or a video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
Fig. 11 is a schematic hardware structure diagram of a server for implementing an embodiment of the present application, where the server 90 includes: a processor 91, a transceiver 92, a memory 93, a user interface 94 and a bus interface.
The transceiver 92 is configured to receive a target URL and M data identifiers from the electronic device, where the target URL is a URL corresponding to the first HTML file, each data identifier corresponds to a piece of web content to be loaded, and M is a positive integer; and sending the target URL and the M data identifiers to the second server, and receiving the first HTML file and the M webpage contents from the second server, wherein the M webpage contents correspond to the M data identifiers one to one.
The processor 91 is configured to write the M web page contents into the first HTML file to obtain a second HTML file.
The transceiver 92 is also configured to transmit the second HTML file to the electronic device.
Wherein the second HTML file is for: the electronic device displays the target web page.
The server provided by the embodiment of the application is a first server, and since the first server can receive the target URL of the first HTML file and the data identifier corresponding to the at least one web content to be loaded in the first HTML file from the electronic device, and send the target RUL and the data identifier corresponding to the at least one web content to the second server, the first server can receive the first HTML file and the at least one web content from the second server, and write the at least one web content into the first HTML file to obtain a second HTML file including the web content to be loaded, so that the first server can send the second HTML file to the electronic device, so that the electronic device can directly display the target web page, that is, the first server needs to interact with the electronic device once, so that the electronic device can obtain the web content to be loaded in the web page, and the electronic equipment does not need to interact with the server for multiple times, so that the time consumption of the electronic equipment for downloading the webpage content to be loaded from the server can be reduced, and the speed of displaying the dynamic webpage by the electronic equipment can be improved.
Optionally, in this embodiment of the application, the processor 91 is further configured to generate a first URL, and associate the first URL with the second HTML file.
Therefore, the first server can associate the first URL with the second HTML file, so that the electronic device can directly acquire the second HTML file according to the first URL, and the speed of displaying the dynamic webpage by the electronic device can be improved.
In the present embodiment, in fig. 11, the bus architecture may include any number of interconnected buses and bridges, with one or more processors represented by processor 91 and various circuits of memory represented by memory 93 being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 92 may be a number of elements including a transmitter and a receiver that provide a means for communicating with various other apparatus over a transmission medium. The user interface 94 may also be an interface capable of interfacing with a desired device for different user devices, including but not limited to a keypad, display, speaker, microphone, joystick, etc. The processor 91 is responsible for managing the bus architecture and general processing, and the memory 93 may store data used by the processor 91 in performing operations.
In addition, the server 90 further includes some functional modules that are not shown, and are not described herein again.
An embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when executed by a processor, the program or the instruction implements each process of the embodiment of the web page display method corresponding to the electronic device in the foregoing embodiment, or implements each process of the embodiment of the web page display method corresponding to the first server in the foregoing embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.
An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the embodiment of the web page display method corresponding to the electronic device in the foregoing embodiment or each process of the embodiment of the web page display method corresponding to the first server in the foregoing embodiment, and the same technical effects can be achieved, and are not described here again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for displaying a web page, the method comprising:
acquiring M data identifiers in a first hypertext markup language HTML file, wherein each data identifier corresponds to a webpage content to be loaded, and M is a positive integer;
sending a target Uniform Resource Locator (URL) and the M data identifiers to a first server, wherein the target URL is a URL corresponding to the first HTML file;
receiving a second HTML file from the first server, and displaying a target webpage based on the second HTML file;
wherein the second HTML file is: and the first server writes the webpage contents corresponding to the M data identifications into the first HTML file to obtain the webpage contents.
2. The method of claim 1, wherein after the displaying the target web page, the method further comprises:
receiving a first input of a user to target webpage content in the target webpage;
under the condition that target data identification meets a preset condition, responding to the first input, and acquiring the target webpage content from the second HTML file; alternatively, the first and second electrodes may be,
under the condition that the target data identification does not meet the preset condition, responding to the first input, and sending a target request to a second server;
wherein the target data identification is: data identification corresponding to the target webpage content;
the target request comprises the target data identification, and the target request is used for requesting the target webpage content.
3. The method of claim 1, wherein prior to said obtaining the M data identifiers in the first HTML file, the method further comprises:
acquiring the first HTML file according to the target URL;
the obtaining M data identifiers in the first HTML file includes:
and pre-rendering the first HTML file to obtain the M data identifiers.
4. A method for displaying a web page, the method comprising:
receiving a target URL and M data identifiers from the electronic equipment, wherein the target URL is a URL corresponding to a first HTML file, each data identifier corresponds to a webpage content to be loaded, and M is a positive integer;
sending the target URL and the M data identifiers to a second server, and receiving the first HTML file and M webpage contents from the second server, wherein the M webpage contents correspond to the M data identifiers one to one;
writing the M webpage contents into the first HTML file to obtain a second HTML file;
sending the second HTML file to the electronic equipment;
wherein the second HTML file is for: the electronic device displays a target web page.
5. The method of claim 4, wherein after said obtaining the second HTML file, the method further comprises:
a first URL is generated and the first URL is associated with the second HTML file.
6. A web page display apparatus, characterized in that the web page display apparatus comprises: the device comprises an acquisition module, a sending module, a receiving module and a display module;
the acquisition module is used for acquiring M data identifiers in the first HTML file, each data identifier corresponds to a webpage content to be loaded, and M is a positive integer;
the sending module is used for sending a target URL and the M data identifiers acquired by the acquiring module to a first webpage display device, wherein the target URL is a URL corresponding to the first HTML file;
the receiving module is used for receiving a second HTML file from the first webpage display device;
the display module is used for displaying a target webpage based on the second HTML file received by the receiving module;
wherein the second HTML file is: and the first webpage display device writes the webpage contents corresponding to the M data identifications into the first HTML file to obtain the webpage contents.
7. The apparatus according to claim 6, wherein the receiving module is further configured to receive a first input of a target web page content in the target web page from a user;
the obtaining module is further configured to, in response to the first input received by the receiving module, obtain the target web page content from the second HTML file when the target data identifier satisfies a preset condition; alternatively, the first and second electrodes may be,
the sending module is further configured to send a target request to a second webpage display device in response to the first input received by the receiving module under the condition that the target data identifier does not meet a preset condition;
wherein the target data identification is: data identification corresponding to the target webpage content;
the target request comprises the target data identification, and the target request is used for requesting the target webpage content.
8. The apparatus according to claim 6, wherein the obtaining module is further configured to obtain the first HTML file according to the target URL;
the obtaining module is specifically configured to pre-render the first HTML file to obtain the M data identifiers.
9. A web page display apparatus, which is a first web page display apparatus, the first web page display apparatus comprising: the device comprises a receiving module, a sending module and a processing module;
the receiving module is used for receiving a target URL and M data identifications from the webpage display device, wherein the target URL is a URL corresponding to the first HTML file, each data identification corresponds to a webpage content to be loaded respectively, and M is a positive integer;
the sending module is used for sending the target URL and the M data identifications received by the receiving module to a second webpage display device;
the receiving module is further configured to receive the first HTML file and M web page contents from the second web page display device, where the M web page contents correspond to the M data identifiers one to one;
the processing module is configured to write the M web page contents received by the receiving module into the first HTML file to obtain a second HTML file;
the sending module is further configured to send the second HTML file processed by the processing module to the web page display device;
wherein the second HTML file is for: the web page display device displays a target web page.
10. The web page display apparatus of claim 9, wherein the processing module is further configured to generate a first URL and associate the first URL with the second HTML file.
CN202111183002.5A 2021-10-11 2021-10-11 Webpage display method and device Pending CN114117271A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111183002.5A CN114117271A (en) 2021-10-11 2021-10-11 Webpage display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111183002.5A CN114117271A (en) 2021-10-11 2021-10-11 Webpage display method and device

Publications (1)

Publication Number Publication Date
CN114117271A true CN114117271A (en) 2022-03-01

Family

ID=80441692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111183002.5A Pending CN114117271A (en) 2021-10-11 2021-10-11 Webpage display method and device

Country Status (1)

Country Link
CN (1) CN114117271A (en)

Similar Documents

Publication Publication Date Title
US11144711B2 (en) Webpage rendering method, device, electronic apparatus and storage medium
CN107085617B (en) Application page collection method and device and corresponding mobile terminal
CN112099684A (en) Search display method and device and electronic equipment
CN112671635A (en) Sending method, sending device and electronic equipment
CN109063079B (en) Webpage labeling method and electronic equipment
US20240089223A1 (en) Information display method and apparatus, and electronic device
CN113992615A (en) Display method and device of withdrawal message, electronic equipment and storage medium
CN105631059B (en) Data processing method, data processing device and data processing system
CN111783010B (en) Webpage blank page monitoring method, device, terminal and storage medium
CN111817944A (en) Picture sharing method and device and electronic equipment
CN114117271A (en) Webpage display method and device
CN112291412B (en) Application program control method and device and electronic equipment
CN112287261A (en) Resource loading method and electronic equipment
CN114489414A (en) File processing method and device
CN113965640A (en) Message processing method and device
CN113726584A (en) Message sending method and device and electronic equipment
CN109768921B (en) Data transparent transmission method and corresponding instant communication terminal
CN112286615A (en) Information display method and device of application program
CN111859215A (en) Page display method and device, electronic equipment and readable storage medium
CN113268300B (en) Information display method and device
CN113343139A (en) Information display method and device
CN113158085B (en) Information switching processing method and device, electronic equipment and storage medium
CN115935106A (en) Website generation method, device, equipment and storage medium
CN114943048A (en) Webpage loading method, webpage loading device, electronic equipment and storage medium
CN114020998A (en) Resource loading method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination