CN110110263B - Webpage display method, device, terminal and storage medium - Google Patents

Webpage display method, device, terminal and storage medium Download PDF

Info

Publication number
CN110110263B
CN110110263B CN201910394216.3A CN201910394216A CN110110263B CN 110110263 B CN110110263 B CN 110110263B CN 201910394216 A CN201910394216 A CN 201910394216A CN 110110263 B CN110110263 B CN 110110263B
Authority
CN
China
Prior art keywords
webpage
data
skeleton screen
terminal
web page
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.)
Active
Application number
CN201910394216.3A
Other languages
Chinese (zh)
Other versions
CN110110263A (en
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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201910394216.3A priority Critical patent/CN110110263B/en
Publication of CN110110263A publication Critical patent/CN110110263A/en
Application granted granted Critical
Publication of CN110110263B publication Critical patent/CN110110263B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a webpage display method, a webpage display device, a webpage display terminal and a webpage display storage medium, and belongs to the field of mobile application. The method comprises the following steps: acquiring skeleton screen data of at least one webpage based on webpage access historical data; responding to an opening operation of any webpage, and acquiring skeleton screen data of the webpage from skeleton screen data of at least one webpage; rendering a native view based on the skeleton screen data to obtain a skeleton screen view, wherein the skeleton screen view is used for displaying a frame of the webpage. According to the method, the most probable web pages to be accessed by the user can be judged through the historical web page access data, and the skeleton screen data of the web pages are sent to the terminal in advance, so that the time consumption of loading the data from the server when the skeleton screen is rendered every time is reduced.

Description

Webpage display method, device, terminal and storage medium
Technical Field
The present invention relates to the field of mobile applications, and in particular, to a method, an apparatus, a terminal, and a storage medium for displaying a web page.
Background
The mixed-mode mobile application refers to an application between a web application and a native application, and has the advantages of good user interaction experience of the native application and cross-platform development of the web application. To the user, accessing the mixed-mode mobile application feels like accessing the native application, but actually accesses the web application through a browser kernel encapsulated in the mixed-mode mobile application.
Currently, in mixed-mode mobile application, when a display instruction for a web page is received, skeleton screen data of the web page to be displayed is acquired from a server, and a web page view is rendered according to the skeleton screen data to obtain a skeleton screen view.
However, it takes a certain time to load data obtained from the server, and the terminal needs to load corresponding skeleton screen data from the server every time the terminal accesses a web page, which causes a large amount of time consumption, resulting in slow display of the skeleton screen, and poor visual effect because the user can see the white screen for a long time.
Disclosure of Invention
The embodiment of the invention provides a webpage display method, a webpage display device, a terminal and a storage medium, and can solve the problem of excessive time consumption caused by the fact that skeleton screen data need to be loaded from a server when a terminal accesses a webpage every time. The technical scheme is as follows:
in one aspect, a method for displaying a web page is provided, and the method includes: acquiring skeleton screen data of at least one webpage based on webpage access historical data;
responding to the opening operation of any webpage, and acquiring skeleton screen data of the webpage from the skeleton screen data of at least one webpage;
rendering the native view based on the skeleton screen data to obtain a skeleton screen view, the skeleton screen view being used for displaying a frame of the web page.
In one possible implementation manner, the obtaining skeletal screen data of at least one webpage based on webpage access history data includes:
sending a first data acquisition request to a server, wherein the first data acquisition request carries a user identifier, and returning skeleton screen data of the at least one webpage by the server based on the user identifier and the webpage access historical data;
skeletal screen data of the at least one web page is received.
In one possible implementation manner, the first data obtaining request further carries at least one of location information and an application identifier, and the obtaining of the skeleton screen data of at least one webpage based on the webpage access history data includes:
sending the first data acquisition request to the server, and returning skeleton screen data of at least one webpage by the server based on at least one of the position information and the application identifier, the user identifier and the webpage access history data;
skeletal screen data of the at least one web page is received.
In one possible implementation manner, the obtaining skeletal screen data of at least one webpage based on webpage access history data includes:
generating a second data acquisition request based on the webpage access historical data stored by the terminal, sending the second data acquisition request to a server, wherein the second data acquisition request carries the webpage identification of the at least one webpage, and the server returns the skeleton screen data of the at least one webpage based on the webpage identification of the at least one webpage;
skeletal screen data of the at least one web page is received.
In one possible implementation manner, the generating the second data obtaining request based on the webpage access history data includes:
acquiring weighted values of a plurality of webpage identifiers based on the webpage access historical data stored by the terminal, wherein the weighted values of the webpage identifiers are positively correlated with the frequency of accessing the webpage corresponding to the webpage identifiers;
and sequencing the plurality of webpage identifiers according to the sequence of the weighted values from large to small, selecting the webpage identifiers with the front target number, and adding the webpage identifiers with the target number to the second data acquisition request.
In one possible implementation manner, the obtaining skeletal screen data of at least one webpage based on webpage access history data includes:
responding to the starting operation of the application, and sending starting information to the server;
and receiving the skeleton screen data of the at least one webpage transmitted together with the application configuration data of the server.
In one possible implementation, the method further comprises:
recording the webpage identification of the webpage;
when an application closing instruction is received, sending a first webpage identifier to the server, wherein the first webpage identifier is a webpage identifier recorded during the running period of the current application; or sending a second webpage identifier to the server every other preset time, wherein the second webpage identifier is a webpage identifier recorded in the preset time.
In one possible implementation, the recording the web page identifier of the web page includes:
recording the webpage identification of the webpage in a log file;
and when the recorded webpage identification is sent, sending the log file to the server.
In one aspect, a method for displaying a web page is provided, and the method includes: receiving a first data acquisition request of a terminal, wherein the first data acquisition request carries a user identifier;
determining webpage access history data based on the user identification;
obtaining skeleton screen data of at least one webpage based on the webpage access historical data;
and sending the skeleton screen data of the at least one webpage to the terminal.
In one possible implementation, the method further comprises:
when the terminal accesses a webpage, at least one item of the user identification, the application identification, the position information and the webpage identification of the terminal is recorded and stored as webpage access history data of the webpage.
In one possible implementation, the determining, based on the user identification, webpage access history data includes:
when acquiring the webpage access history data corresponding to the user identification, acquiring the webpage access history data corresponding to the user identification as the webpage access history data;
and when the webpage access history data corresponding to the user identification is not acquired, acquiring webpage access history data corresponding to at least one other user identification except the user identification as the webpage access history data.
In one possible implementation manner, the obtaining skeletal screen data of at least one webpage based on the webpage access history data includes:
acquiring weighted values of a plurality of webpage identifiers based on the webpage access historical data, wherein the weighted values of the webpage identifiers are positively correlated with the frequency of accessing the webpage corresponding to the webpage identifiers;
and sequencing the plurality of webpage identifications according to the sequence of the weighted values from large to small, selecting the webpage identifications positioned at the front target number, and acquiring the skeleton screen data corresponding to the webpage identifications of the target number.
In one possible implementation manner, the determining, by the first data obtaining request, webpage access history data based on the user identifier further includes:
when acquiring the webpage access history data corresponding to the user identification, acquiring the webpage access history data corresponding to the user identification as the webpage access history data;
when the webpage access history data corresponding to the user identification is not acquired, determining a position area to which the position information belongs according to the position information, acquiring at least one user identification in the position area except the user identification, and acquiring webpage access history data corresponding to the at least one user identification as the webpage access history data.
In one possible implementation, the method further comprises:
receiving a second data acquisition request of the terminal, wherein the second data acquisition request carries the webpage identification of the at least one webpage;
and sending the skeleton screen data corresponding to the at least one webpage to the terminal based on the webpage identification of the at least one webpage.
In one possible implementation, the method further comprises:
and receiving the webpage identification recorded by the terminal, and adding the webpage identification into the webpage access history data corresponding to the user identification.
In one possible implementation, the method further comprises:
receiving configuration information, wherein the configuration information comprises a webpage identifier of a target webpage;
and acquiring the skeleton screen data of the target webpage according to the webpage identifier of the target webpage, and adding the skeleton screen data of the target webpage into the skeleton screen data of the at least one webpage.
In one possible implementation manner, the sending the skeleton screen data of at least one webpage to the terminal includes:
and packaging the skeleton screen data of the at least one webpage into at least one data packet, and sending the at least one data packet to the terminal.
In one possible implementation manner, the packaging the skeleton screen data of the at least one webpage into at least one data packet, and sending the at least one data packet to the terminal includes:
and sequencing the skeleton screen data of the at least one webpage according to the sequence of the access frequency from large to small, packaging the sequenced skeleton screen data of the at least one webpage into a plurality of data packets, and sequentially sending the data packets to the terminal according to the sequence of the access frequency from large to small.
In one possible implementation manner, the start information of the terminal is received, and the application configuration data and the skeleton screen data of the at least one webpage are sent to the terminal together.
In one aspect, there is provided a web page display apparatus, the apparatus including:
the first acquisition module is used for acquiring skeleton screen data of at least one webpage based on webpage access historical data;
the second acquisition module is used for responding to the opening operation of any webpage and acquiring the skeleton screen data of the webpage from the skeleton screen data of the at least one webpage;
and the display module is used for rendering the native view based on the skeleton screen data to obtain a skeleton screen view, and the skeleton screen view is used for displaying the frame of the webpage.
In one possible implementation, the first obtaining module includes:
the first sending unit is used for sending a first data acquisition request to a server, wherein the first data acquisition request carries a user identifier, and the server returns skeleton screen data of the at least one webpage based on the user identifier and the webpage access historical data;
the first receiving unit is used for receiving the skeleton screen data of the at least one webpage.
In one possible implementation, the first data acquisition request further carries at least one of location information and an application identifier;
the first sending unit is used for sending the first data acquisition request to the server, and the server returns skeleton screen data of at least one webpage based on at least one of the position information and the application identifier, the user identifier and the webpage access history data;
the first receiving unit is used for receiving skeleton screen data of the at least one webpage.
In one possible implementation, the first obtaining module includes:
the second sending unit is used for generating a second data acquisition request based on the webpage access historical data stored by the terminal, sending the second data acquisition request to the server, wherein the second data acquisition request carries the webpage identifier of the at least one webpage, and returning the skeleton screen data of the at least one webpage by the server based on the webpage identifier of the at least one webpage;
and the second receiving unit is used for receiving the skeleton screen data of the at least one webpage.
In one possible implementation, the second sending unit includes:
the acquiring subunit is configured to acquire weight values of a plurality of web page identifiers based on the web page access history data stored in the terminal, where the weight values of the web page identifiers are positively correlated with a frequency of accessing a web page corresponding to the web page identifier;
and the adding subunit is used for sequencing the plurality of webpage identifiers according to the sequence of the weighted values from large to small, selecting the webpage identifiers with the number of the front targets, and adding the webpage identifiers with the number of the targets to the second data acquisition request.
In one possible implementation, the first obtaining module includes:
a third sending unit configured to send start information to the server in response to a start operation of the application;
and the third receiving unit is used for receiving the skeleton screen data of the at least one webpage, which is issued together with the application configuration data of the server.
And executing the step of acquiring the skeleton screen data of the at least one webpage when receiving the application starting instruction.
In one possible implementation, the apparatus further includes:
the recording module is used for recording the webpage identification of the webpage;
the sending module is used for sending a first webpage identifier to the server when an application closing instruction is received, wherein the first webpage identifier is a webpage identifier recorded in the running period of the current application; or sending a second webpage identifier to the server every other preset time, wherein the second webpage identifier is a webpage identifier recorded in the preset time.
In one possible implementation manner, the recording module is configured to record the webpage identifier of the webpage in a log file;
the sending module is used for sending the log file to the server when the recorded webpage identifier is sent.
In one aspect, there is provided a web page display apparatus, the apparatus including:
the first receiving module is used for receiving a first data acquisition request of the terminal, wherein the first data acquisition request carries a user identifier;
the determining module is used for determining webpage access historical data based on the user identification;
the acquisition module is used for acquiring skeleton screen data of at least one webpage based on the webpage access historical data;
and the sending module is used for sending the skeleton screen data of the at least one webpage to the terminal.
In one possible implementation, the apparatus further includes:
and the recording module is used for recording at least one item of the user identifier, the application identifier, the position information and the webpage identifier of the terminal when the terminal accesses the webpage and storing the at least one item of the user identifier, the application identifier, the position information and the webpage identifier as webpage access history data of the webpage.
In one possible implementation, the determining module includes:
the first obtaining unit is used for obtaining the webpage access history data corresponding to the user identifier as the webpage access history data when the webpage access history data corresponding to the user identifier is obtained;
and the second acquiring unit is used for acquiring webpage access history data corresponding to at least one other user identifier except the user identifier as the webpage access history data when the webpage access history data corresponding to the user identifier is not acquired.
In one possible implementation, the obtaining module includes:
the first obtaining unit is used for obtaining the weight values of a plurality of webpage identifiers based on the webpage access historical data, wherein the weight values of the webpage identifiers are positively correlated with the frequency of accessing the webpage corresponding to the webpage identifiers;
and the second acquisition unit is used for sequencing the plurality of webpage identifiers according to the sequence of the weighted values from large to small, selecting the webpage identifiers located at the front target number, and acquiring the skeleton screen data corresponding to the webpage identifiers of the target number.
In one possible implementation manner, the first data obtaining request further carries location information, and the determining module includes:
the first obtaining unit is configured to obtain, when obtaining the webpage access history data corresponding to the user identifier, the webpage access history data corresponding to the user identifier as the webpage access history data;
the second obtaining unit is configured to, when the webpage access history data corresponding to the user identifier is not obtained, determine a location area to which the location information belongs according to the location information, obtain at least one user identifier in the location area, the user identifier being other than the user identifier, and obtain the webpage access history data corresponding to the at least one user identifier as the webpage access history data.
In a possible implementation manner, the first data obtaining request further carries an application identifier, and the determining module includes:
the first determining unit is used for determining webpage access data corresponding to the application according to the application identifier;
and the third acquisition unit is used for acquiring the webpage access history data corresponding to the user identification from the webpage access data corresponding to the application based on the user identification.
In a possible implementation manner, the first receiving module is further configured to receive a second data acquisition request of the terminal, where the second data acquisition request carries the web page identifier of the at least one web page;
the sending module is further configured to send skeleton screen data corresponding to the at least one webpage to the terminal based on the webpage identifier of the at least one webpage.
In one possible implementation, the apparatus further includes:
and the second receiving module is used for receiving the webpage identification recorded by the terminal and adding the webpage identification into the webpage access history data corresponding to the user identification.
In one possible implementation, the apparatus further includes:
the third receiving module is used for receiving configuration information, wherein the configuration information comprises a webpage identifier of a target webpage;
the acquisition module is further configured to acquire the skeleton screen data of the target webpage according to the webpage identifier of the target webpage, and add the skeleton screen data of the target webpage to the skeleton screen data of the at least one webpage.
In a possible implementation manner, the sending module is configured to package skeleton screen data of the at least one web page into at least one data packet, and send the at least one data packet to the terminal.
In a possible implementation manner, the sending module is configured to sort the skeleton screen data of the at least one webpage according to a sequence of access frequencies from large to small, package the sorted skeleton screen data of the at least one webpage into a plurality of data packets, and sequentially send the plurality of data packets to the terminal according to a sequence of access frequencies from large to small.
In one possible implementation, the apparatus further includes:
the fourth receiving module is used for receiving the starting information of the terminal;
the sending module is used for sending the application configuration data and the skeleton screen data of the at least one webpage to the terminal together.
In one aspect, a terminal is provided and includes one or more processors and one or more memories, where at least one instruction is stored in the one or more memories, and the at least one instruction is loaded and executed by the one or more processors to implement the operations performed by the web page display method according to any one of the above possible implementations.
In one aspect, a server is provided and includes one or more processors and one or more memories, where at least one instruction is stored in the one or more memories, and the at least one instruction is loaded and executed by the one or more processors to implement the operations performed by the web page display method according to any one of the above possible implementations.
In one aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement the operations performed by the web page display method according to any one of the above possible implementation manners.
The technical scheme provided by the embodiment of the invention has the beneficial effects that at least:
according to the method provided by the embodiment of the invention, the plurality of webpages most possibly accessed by the user can be judged through the historical webpage access data, and the skeleton screen data of the plurality of webpages is obtained before the terminal needs to render the primary view by using the skeleton screen data, so that when the terminal receives a display instruction of any webpage, the skeleton screen data of the webpage can be directly obtained from the obtained skeleton screen data of the plurality of webpages. Compared with the prior art, the data loading of the web pages is distributed according to needs, namely, the user can acquire the data of which web page when opening which web page, and the skeleton screen data of the web pages can be issued to the terminal in advance without triggering the web pages, so that the time consumption of loading the data from the server when rendering the skeleton screen each time is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for displaying a web page according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for displaying a web page according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for displaying a web page according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for displaying a web page according to an embodiment of the present invention;
FIG. 5 is a flowchart of a method for displaying a web page according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a web page display device according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a web page display device according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a web page display device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a web page display device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a flowchart of a web page display method provided in an embodiment of the present invention, and is applied to a terminal, where the terminal may be a mobile phone, a computer, a tablet computer, and the like, and referring to fig. 1, the embodiment includes:
101. and acquiring skeleton screen data of at least one webpage based on the webpage access historical data.
102. And responding to the opening operation of any webpage, and acquiring the skeleton screen data of the webpage from the skeleton screen data of at least one webpage.
103. Rendering the native view based on the skeleton screen data to obtain a skeleton screen view, wherein the skeleton screen view is used for displaying a frame of the webpage.
According to the method provided by the embodiment of the invention, the plurality of webpages most possibly accessed by the user can be judged through the historical webpage access data, and the skeleton screen data of the plurality of webpages is obtained before the terminal needs to render the primary view by using the skeleton screen data, so that when the terminal receives a display instruction of any webpage, the skeleton screen data of the webpage can be directly obtained from the obtained skeleton screen data of the plurality of webpages. Compared with the prior art, the data loading of the web pages is distributed according to needs, namely, the user can acquire the data of which web page when opening which web page, and the skeleton screen data of the web pages can be issued to the terminal in advance without triggering the web pages, so that the time consumption of loading the data from the server when rendering the skeleton screen each time is reduced.
In one possible implementation manner, obtaining skeleton screen data of at least one webpage based on webpage access history data includes:
sending a first data acquisition request to a server, wherein the first data acquisition request carries a user identifier, and returning skeleton screen data of at least one webpage by the server based on the user identifier and webpage access historical data;
skeletal screen data of at least one web page is received.
In one possible implementation manner, the obtaining, by the first data obtaining request, at least one of location information and an application identifier, and based on the webpage access history data, skeleton screen data of at least one webpage is obtained, including:
sending a first data acquisition request to a server, and returning skeleton screen data of at least one webpage by the server based on at least one of the position information and the application identifier, the user identifier and webpage access history data;
skeletal screen data of at least one web page is received.
In one possible implementation manner, obtaining skeleton screen data of at least one webpage based on webpage access history data includes:
generating a second data acquisition request based on webpage access historical data stored by the terminal, sending the second data acquisition request to the server, wherein the second data acquisition request carries webpage identification of at least one webpage, and returning skeleton screen data of the at least one webpage by the server based on the webpage identification of the at least one webpage;
skeletal screen data of at least one web page is received.
In one possible implementation manner, generating the second data obtaining request based on the webpage access history data includes:
acquiring weighted values of a plurality of webpage identifiers based on webpage access historical data stored by a terminal, wherein the weighted values of the webpage identifiers are positively correlated with the frequency of accessing the webpage corresponding to the webpage identifiers;
and sequencing the webpage identifications according to the sequence of the weighted values from large to small, selecting the webpage identifications with the front target number, and adding the webpage identifications with the target number to the second data acquisition request.
In one possible implementation manner, obtaining skeleton screen data of at least one webpage based on webpage access history data includes:
responding to the starting operation of the application, and sending starting information to the server;
and receiving the skeleton screen data of at least one webpage transmitted together with the application configuration data of the server.
In one possible implementation, the method further comprises:
recording a webpage identifier of a webpage;
when an application closing instruction is received, sending a first webpage identifier to a server, wherein the first webpage identifier is a webpage identifier recorded during the running period of the application; or sending a second webpage identifier to the server every other preset time, wherein the second webpage identifier is a webpage identifier recorded in the preset time.
In one possible implementation, recording a web page identification of a web page includes:
recording the webpage identification of the webpage in a log file;
and when the recorded webpage identification is sent, sending a log file to the server.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
Fig. 2 is a flowchart of a web page display method provided by an embodiment of the present invention, and is applied to a server, where the server may be a server associated with one or more applications, and is used to provide services for the applications. Referring to fig. 2, the embodiment includes:
201. receiving a first data acquisition request of a terminal, wherein the first data acquisition request carries a user identifier;
202. determining webpage access history data based on the user identification;
203. obtaining skeleton screen data of at least one webpage based on the webpage access historical data;
204. and sending the skeleton screen data of at least one webpage to the terminal.
According to the method provided by the embodiment of the invention, the historical webpage access data are determined through the first data acquisition request of the terminal, the plurality of webpages which are possibly accessed by the user can be determined according to the determined historical webpage access data, the skeleton screen data of the plurality of webpages are sent to the terminal, the terminal can acquire the skeleton screen data of the plurality of webpages at one time, and the skeleton screen data of the corresponding webpages can be found from the plurality of webpages when the skeleton screen view is rendered subsequently without being loaded from the server, so that the time consumption of loading the data from the server when the skeleton screen is rendered every time is reduced, the occurrence time of the skeleton screen view is advanced, the user is prevented from seeing a white screen for a long time, and the visual effect is improved.
In one possible implementation, the method further comprises:
when the terminal accesses the webpage, at least one of a user identifier, an application identifier, position information and a webpage identifier of the terminal is recorded and stored as webpage access history data of the webpage.
In one possible implementation, determining the webpage access history data based on the user identification includes:
when acquiring webpage access history data corresponding to a user identifier, acquiring the webpage access history data corresponding to the user identifier as webpage access history data;
when the webpage access history data corresponding to the user identification is not acquired, acquiring webpage access history data corresponding to at least one user identification except the user identification as webpage access history data.
In one possible implementation manner, obtaining skeleton screen data of at least one webpage based on webpage access history data includes:
acquiring weighted values of a plurality of webpage identifiers based on the webpage access historical data, wherein the weighted values of the webpage identifiers are positively correlated with the frequency of accessing the webpage corresponding to the webpage identifiers;
and sequencing the plurality of webpage identifications according to the sequence of the weighted values from large to small, selecting the webpage identifications with the front target number, and acquiring the skeleton screen data corresponding to the webpage identifications with the target number.
In one possible implementation manner, the determining, by the first data obtaining request, webpage access history data based on a user identifier, further includes:
when acquiring webpage access history data corresponding to a user identifier, acquiring the webpage access history data corresponding to the user identifier as webpage access history data;
when the webpage access history data corresponding to the user identification is not acquired, determining a position area to which the position information belongs according to the position information, acquiring at least one user identification except the user identification in the position area, and acquiring webpage access history data corresponding to the at least one user identification as webpage access history data.
In one possible implementation manner, the determining, by the first data obtaining request, web page access history data based on a user identifier further includes:
determining webpage access data corresponding to the application according to the application identifier;
and acquiring webpage access history data corresponding to the user identification in the webpage access data corresponding to the application based on the user identification.
In a possible implementation manner, a second data acquisition request of the terminal is received, where the second data acquisition request carries a web page identifier of at least one web page;
and sending the skeleton screen data corresponding to at least one webpage to the terminal based on the webpage identification of at least one webpage.
In one possible implementation manner, the webpage identification recorded by the terminal is received, and the webpage identification is added to the webpage access history data corresponding to the user identification.
In one possible implementation, a web page identification of a target web page is received;
and acquiring the skeleton screen data of the target webpage according to the webpage identifier of the target webpage, and adding the skeleton screen data of the target webpage into the skeleton screen data of at least one webpage.
In one possible implementation, sending skeleton screen data of at least one webpage to a terminal includes:
and packaging the skeleton screen data of at least one webpage into at least one data packet, and sending the at least one data packet to the terminal.
In one possible implementation manner, packaging skeleton screen data of at least one webpage into at least one data packet, and sending the at least one data packet to a terminal includes:
the method comprises the steps of sequencing skeleton screen data of at least one webpage according to the sequence of the access frequency from large to small, packaging the sequenced skeleton screen data of at least one webpage into a plurality of data packets, and sequentially sending the data packets to a terminal according to the sequence of the access frequency from large to small.
In one possible implementation, the method further comprises:
and receiving starting information of the terminal, and issuing the application configuration data and the skeleton screen data of at least one webpage to the terminal.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
Fig. 3 is a flowchart of a web page display method according to an embodiment of the present invention. The method is described by taking an example of interaction between a terminal and a server. Referring to fig. 3, the embodiment includes:
301. and responding to the starting operation of the application, and sending a first data acquisition request to the server, wherein the first data acquisition request comprises the user identification.
The terminal can be provided with any application, and when a user wants to open a certain application, the application starting instruction can be triggered by clicking the application identifier of the application, so that the terminal receives the application starting instruction.
The timing of sending the first data acquisition request to the server may be that when the terminal receives an application start instruction, the terminal generates the first data acquisition request and sends the first data acquisition request to the server, and in the start process of the application, the skeleton screen data of at least one webpage is loaded, so that the loaded skeleton screen data of at least one webpage can be directly used after the terminal is started; the application can also generate a first data acquisition request after the application is started, and send the first data request to the server, if the application is started, the application is displayed on the foreground, so that the user can use the application, but not misoperation is ensured, the skeleton screen data of at least one webpage is loaded under the condition that the user can use the application, and the utilization rate of the loaded data is ensured.
The first data acquisition request is used for acquiring skeleton screen data of at least one webpage from the server. In a possible implementation manner, the user identifier is a user identifier registered by the user in the application, and the user identifier is used for determining a unique corresponding user, can represent the identity of the user, and may be an account number of the user, a nickname of the user, and the like.
When a user registers or logs in an application, a terminal can acquire a user identifier, the user identifier is stored locally, when the terminal sends a first data acquisition request to a server, the user identifier is acquired, and the application identifier is added to the first data acquisition request.
In another possible implementation manner, the user identifier is an identifier representing the terminal, and the user identifier is used to determine a uniquely corresponding terminal, and may be an IP (Internet Protocol) address of the terminal, a Media Access Control (MAC) address of the terminal, a model of the terminal, and the like. If the user opens the application for the first time after downloading the application, and the user is not registered at this time, the first data acquisition request may carry the user identifier, so that the server returns data to the terminal.
In addition, some applications may provide different services to users in different regions. For example, a new function is developed for an application, but the function is only for users in a specific area, and only users located in the specific area can use the function, and users in areas other than the specific area cannot use the function. Thus, only the web pages of users in a particular region will display the entry to this function, and only the corresponding web pages will be accessed through this entry. Therefore, in a possible implementation manner, the first data obtaining request further includes location information, and the server may determine whether the terminal is located in the specific area according to the location information, so as to return the skeleton screen data of the at least one webpage. The location information is a location of the terminal, and can be determined by a Global Positioning System (GPS) of the terminal. When the server acquires the skeleton screen data of the webpage, the server can refer to the position information of the terminal, so that users in different areas can acquire the corresponding skeleton screen data, more personalized and regionalized services are provided, the rendered skeleton screen view can be matched with the real webpage, and a more real effect is achieved.
In addition, a server may be associated with one application, and may also be associated with multiple applications. In a possible implementation manner, the server is associated with a plurality of applications, the first data acquisition request further carries an application identifier, and the server returns skeleton screen data of at least one webpage of the application according to the application identifier. The data between different applications are distinguished through the application identification, so that one server can be associated with a plurality of applications, and the server provides the service loaded in advance for the different applications, thereby greatly improving the utilization rate of the server.
When the terminal receives an application starting instruction, a first data acquisition request is sent to the server to acquire the skeleton screen data of at least one webpage, namely, in the starting process of the application, the skeleton screen data of at least one webpage are acquired, so that the terminal can directly acquire the skeleton screen data of at least one webpage when rendering a first skeleton screen view, the terminal does not need to acquire the skeleton screen data of the at least one webpage again, any loading requirement in the application running process can be met based on the skeleton screen data acquired at first, and the loading efficiency can be greatly improved.
It should be noted that, this embodiment is described by taking an example that the terminal sends the first data acquisition request to the server when receiving the start instruction, and in addition, the terminal may also send the first data acquisition request when receiving the display instruction for any web page, and which skeleton screen data is stored by which skeleton screen data is used, so that the purpose of saving storage space can be achieved, or at any other time, the timing for sending the first data acquisition request is not limited by the present invention.
It should be noted that, in this embodiment, only the terminal sends the first data acquisition request to the server to acquire the skeleton screen data of the at least one web page is taken as an example to describe, in some embodiments, the terminal may also send start information to the server after responding to a start operation of the application, after receiving the start information, the server may send application configuration data to the terminal, and when sending the application configuration data, the terminal sends the skeleton screen data of the at least one web page at the same time, that is, in the application start process, the skeleton screen data of the at least one web page is issued to the terminal, and this period of time during which the application cannot be operated in the start process is utilized, so that after the application is started, the skeleton screen data of the at least one web page may be directly used, and the acquisition time of the skeleton screen data is reduced.
As shown in fig. 4, a process from application opening to displaying of a corresponding web page is shown, fig. 4 only illustrates obtaining of skeleton screen data at a time of starting an application, and only illustrates a sequence of steps in one possible implementation manner, and in addition, a length occupied by each step on a time line does not represent a real time occupied by the step.
302. And after the server receives the first data acquisition request, determining the webpage access history data based on the user identification.
The webpage access history data is used for representing the access condition of a user to the webpage and at least comprises a user identification and a webpage identification, and the webpage access history data can be used for analyzing the webpage which the user may access in the process of using the application. When the terminal accesses the webpage, the server records the user identification of the terminal and the webpage identification of the webpage accessed by the terminal, the user identification of the terminal and the webpage identification are correspondingly stored, the stored user identification and the stored webpage identification are the webpage access history data, and the record of the webpage accessed by a certain terminal can be acquired according to the webpage access history data.
In one possible implementation, the server may access the history database through a web page to store the user identification and the corresponding web page identification. Inquiring data in an index column according to the user identification, if the index column does not include the user identification, newly establishing a data item, and adding a corresponding webpage identification in the data item, wherein the user identification is an index of the data item; and if the data in the index column comprises the user identification, acquiring a corresponding data item according to the index, and adding the corresponding webpage identification to the data item.
In addition, when the terminal accesses the webpage, the server can record other information of the terminal, such as the position information of the terminal, and the server can correspondingly store the user identification, the webpage identification and the position information. When data is added to the web page access history database, the location information may be added to the data item corresponding to the user identifier.
In addition, if the server is associated with multiple applications, different databases may be maintained for different applications to avoid confusion between data; or one database is maintained aiming at different applications so as to reduce the maintenance cost, the database also comprises application identifiers, and the data of each application are distinguished according to the application identifiers.
When different databases are maintained for different applications, the web access history database corresponding to the application may be determined according to the application identifier carried in the first data acquisition request, and then the web access history data corresponding to the user identifier may be determined based on the user identifier.
In order to make the analysis result more accurate, certain timeliness can be set for the webpage access historical data. In a possible implementation manner, when recording the webpage identifier of the webpage accessed by the terminal, the server also records the time of the terminal accessing the webpage, and the server stores the webpage access history data within a preset time period and deletes the webpage access history data outside the preset time period, where the preset time period may be one year, half year, three months, and the like. And analyzing according to the webpage access historical data of the user in the near term, and obtaining more accurate results.
When a server receives a first data acquisition request, an index list of a webpage access history database is inquired according to a carried user identifier, if the index list comprises the user identifier, the content in a data block corresponding to the user identifier is acquired, and if the index list does not comprise the user identifier, the webpage access history database does not store webpage access history data corresponding to the user identifier.
In one possible implementation manner, when the webpage access history data corresponding to the user identifier is obtained, the webpage access history data corresponding to the user identifier is obtained as the webpage access history data. By acquiring the webpage access historical data corresponding to the user identification, the condition of the user's own actual access webpage can be obtained, the condition of the own access webpage is analyzed, at least one webpage which the user may access can be accurately judged, and the accuracy of webpage determination is greatly improved.
If the terminal user is a new user of the application, for example, the terminal user is used for the first time after the application is installed, corresponding webpage access history data is not stored in the database, and therefore, the server cannot acquire the webpage access history data corresponding to the user identifier. In one possible implementation manner, when the webpage access history data corresponding to the user identifier is not acquired, acquiring webpage access history data corresponding to at least one other user identifier except the user identifier as the webpage access history data. By acquiring the webpage access historical data corresponding to at least one other user identifier, the terminal can still acquire the skeleton screen data of a plurality of webpages in advance under the condition of cold start, the webpage historical data acquired based on the plurality of terminals has higher universality, analysis is performed based on the webpage historical data, and the acquired analysis result can better meet the requirements of users.
The other at least one user identifier may be a certain number of user identifiers randomly selected by the server, or may be a certain number of user identifiers screened out according to a certain condition. The condition may be the activity of the user corresponding to the user identifier, the location of the user identifier, and the like. For example, whether the user uses the application frequently is determined according to the user identification, a certain number of user identifications of more active users are selected, and the more active users are analyzed due to more webpage access historical data, so that the obtained result is more accurate; or selecting a number of at least one user identifier which is located in the same position area with the user identifier according to the position information carried in the first data acquisition request. The users in different regions may have different use habits, a plurality of users in the same region are analyzed to obtain the condition of the webpage accessed by the users in the region, and the skeleton screen data of the webpages obtained based on the access condition can better meet the requirements of the users.
303. And the server obtains skeleton screen data of at least one webpage based on the webpage access historical data.
After the server acquires the webpage access historical data, analyzing the webpage access historical data, and judging at least one webpage which the user may access. The number of the web pages of at least one web page can be fixed and is set by default of a system or set by a user; the number of the web pages of at least one web page may not be fixed, and may be determined according to the actual situation of the current network, or may be the number of the web pages whose access probability exceeds the threshold, so that the number of the web pages transmitted each time may be different, and the number of the web pages received by different users may also be different.
For any web page of the application, the web page may have a unique web page identifier, and the web page identifier may be a web page ID (Identity) or a web page UR L (Uniform resource L locator), which is not limited in this embodiment of the present invention.
And analyzing the webpage access historical data to determine at least one webpage which the user is likely to access. In one possible implementation, the at least one web page may be determined based on an access frequency of the web page, and accordingly, in the method, the obtaining of the skeleton screen data of the at least one web page based on the web page access history data may include: acquiring weighted values of a plurality of webpage identifiers based on the webpage access historical data, wherein the weighted values of the webpage identifiers are positively correlated with the accessed frequency of the webpage; and sequencing the plurality of webpage identifications according to the sequence of the weighted values from large to small, selecting the webpage identifications with the front target number, and acquiring the skeleton screen data corresponding to the webpage identifications with the target number. By determining the webpage based on the access frequency, the webpage identifier with higher access frequency can be determined, and the possibility that the skeleton screen data corresponding to the acquired webpage identifier is used by the user is the largest.
In another possible implementation manner, the at least one web page may be determined based on an access frequency of the web page and an access time of the web page, and accordingly, in the method, the obtaining of the skeleton screen data of the at least one web page based on the web page access history data may include: acquiring first weight values of a plurality of webpage identifiers based on webpage access historical data, wherein the first weight values of the webpage identifiers are positively correlated with the access frequency of the webpage; acquiring second weight values of a plurality of webpage identifiers based on the webpage access historical data, wherein the second weight values of the webpage identifiers are negatively related to the time value for recording the webpage identifiers; and carrying out weighting processing according to the first weight and the second weight, sequencing the plurality of webpage identifications according to the sequence of the weight values from large to small, selecting the webpage identifications with the front target number, and acquiring the skeleton screen data corresponding to the webpage identifications with the target number. By determining the webpage based on the access frequency and the access time, the webpage identifier with higher access frequency in the near term can be determined, and the possibility that the skeleton screen data corresponding to the acquired webpage identifier is used by the user is the largest.
In addition, after the application is updated, some new functions may be provided, the web pages associated with the new functions are not used by the user, and the access records of the web pages do not exist in the web page access history data, so that the pages associated with the new functions cannot be acquired based on the web page access history data, but the user also has a need to access the web pages associated with the new functions. Therefore, the server can be set by the relevant person, so that the skeleton screen data of the webpage related to the new function is included in the skeleton screen data of the at least one webpage returned by the server. Correspondingly, the method further comprises the steps that the server receives configuration information, and the configuration information comprises the webpage identification of the target webpage; and acquiring the skeleton screen data of the target webpage according to the webpage identifier of the target webpage, and adding the skeleton screen data of the target webpage into the skeleton screen data of at least one webpage. The target webpage can be a webpage related to the application of the new function. The situation that the user uses the skeleton screen data is considered comprehensively, so that the obtained skeleton screen data of at least one webpage can better meet the requirements of the user.
304. And the server sends the skeleton screen data of at least one webpage to the terminal.
In order to send the skeleton screen data of at least one webpage to the terminal, the server may package the skeleton screen data of at least one webpage and send the packaged data packet to the terminal. In one possible implementation, the skeleton screen data of at least one webpage is packaged into one data packet to be sent. Because the skeleton screen data of a single webpage are small, the skeleton screen data of at least one webpage can be packaged into a data packet, so that the terminal can acquire the skeleton screen data of at least one webpage at one time, and the acquisition efficiency is improved.
In another possible implementation manner, the skeleton screen data of at least one webpage is packaged into a plurality of data packets, and the plurality of data packets are sent to the terminal. Each data packet is independent, when the terminal finishes downloading one data packet, the data packet can be directly used without waiting for the completion of downloading other data packets, and the acquisition efficiency is improved.
When the server packs the skeleton screen data of at least one webpage into a plurality of data packets, the data packets can be packed according to certain conditions. In a possible implementation manner, the condition may be an access frequency, for example, the skeleton screen data of at least one webpage may be sorted in an order from a large access frequency to a small access frequency, the sorted skeleton screen data of at least one webpage is packed into a plurality of data packets, and the plurality of data packets are sequentially sent to the terminal in an order from a large access frequency to a small access frequency. And each data packet comprises skeleton screen data of a preset number of webpages.
In addition, the skeleton screen data included in each data packet may be skeleton screen data of a complete web page, or may also be part of skeleton screen data of one web page, for example, when the skeleton screen data of at least one web page is packed into a plurality of data packets, the skeleton screen data of a certain web page may be unpacked and packed into two adjacent data packets, and in order to obtain the skeleton screen data completed by the web page more quickly, the data packets may be numbered, for example, the data packets corresponding to the same web page are numbered continuously, so that all the skeleton screen data of one web page can be obtained more quickly in the parsing process. In a possible implementation manner, the skeleton screen data of at least one webpage is sequenced according to the sequence of the access frequency from large to small, the sequenced skeleton screen data of at least one webpage is packaged into a plurality of data packets, each data packet is numbered according to the sequence of the access frequency from large to small, and the terminal sequentially acquires the data packets according to the numbering sequence of the data packets.
In the process of receiving a plurality of data packets by the terminal, the server can inform the terminal of the number of the data packets, and the terminal acquires the plurality of data packets from the server based on the number of the data packets. In a possible implementation manner, the server sends a first data packet to the terminal, where the first data packet carries the number of data packets, and the terminal analyzes the first data packet after receiving the first data packet, so as to obtain the number of remaining data packets. And the terminal sends a first data acquisition request to the server to acquire the remaining data packets. When a data packet to be acquired is acquired from the server, the information carried by the sent first data acquisition request and the information carried by the first data acquisition request sent when the first data packet is acquired may be the same or different, and this is not limited in the embodiment of the present invention.
In the process of receiving a plurality of data packets by the terminal, the terminal inquires the number of the data packets from the server, and based on the number of the data packets, the terminal acquires the plurality of data packets from the server. In a possible implementation manner, the server sends a first data packet to the terminal, after receiving the first data packet, the terminal sends a request to the server to inquire whether other data packets exist, the server sends the number of the data packets to the terminal, and the terminal sends a first data acquisition request to the server to acquire the remaining data packets. When the data packet to be acquired is acquired from the server, the information carried by the sent first data acquisition request and the information carried by the first data acquisition request sent when the first data is acquired may be the same or different, and the embodiment of the present invention does not limit this.
For example, the number of at least one web page is 100, the server sorts the 100 web pages in order of access frequency from large to small, packages the skeleton screen data of the web pages with the ranks from 1 to 10 into a first data packet, packages the skeleton screen data of the web pages with the ranks from 11 to 60 into a second data packet, and packages the skeleton screen data of the web pages with the ranks from 61 to 100 into a third data packet. After the server receives the first data acquisition request, the first data packet is sent to the terminal, after the terminal receives the first data packet, the number of the data packets is inquired from the server, the number of the obtained data packets is 3, the terminal sends the first data acquisition request to the server to acquire the second data packet, and after the second data packet is received, the first data acquisition request is sent to the server to acquire the third data packet.
305. After receiving the skeleton screen data of at least one webpage, the terminal acquires the skeleton screen data of the webpage from the skeleton screen data of at least one webpage when receiving a display instruction of any webpage.
And the terminal analyzes the returned data packet to obtain skeleton screen data of at least one webpage and stores the skeleton screen data in the local. In one possible implementation, the skeletal screen data of at least one web page is cached locally, and the cache is automatically deleted when the user closes the application. In another possible implementation manner, the skeleton screen data of at least one webpage is stored locally, and after a deletion instruction triggered by a user is received, the skeleton screen data of at least one webpage is deleted.
In addition, when the terminal stores the skeleton screen data of at least one webpage, the webpage identifier and the skeleton screen data can be correspondingly stored, so that corresponding skeleton screen data can be acquired according to the webpage identifier.
306. The terminal creates a native view on the upper layer of the webpage view, and renders the native view based on the skeleton screen data to obtain the skeleton screen view.
The web page view is a control for displaying a web page, and can be regarded as a browser control which can be nested on a display interface, and the web page can be accessed through the web page view. The web page view allows the web page to be easily embedded into an application where a complete web page is presented and made available to the user.
After the skeleton screen data is acquired, a native view is created and is arranged on the upper layer of the webpage view. Because the native view is overlaid on the webpage view, the user can only see the content displayed by the native view and cannot see the content displayed by the webpage view.
After the terminal creates the native view, the native view is rendered according to the acquired first skeleton screen data. For example, the description information of the placeholder in the first skeleton screen data and the length and width of the display interface are obtained, the placeholder is drawn on the native view, the skeleton screen view of the webpage to be displayed is obtained after drawing of all the placeholders in the first skeleton screen data is completed, and at the moment, the user can see the view frame of the webpage to be displayed.
307. And initializing the webpage view by the terminal, and loading webpage data based on the webpage view after the webpage view is initialized.
In the embodiment of the invention, the webpage data can include an HTM L (HyperText Markup L anguage) file, a JS (JavaScript) file and a CSS (Cascading Style Sheets) file, wherein the HTM L file is used for providing specific content of the webpage, the JS file is used for realizing initialization of the controls on the webpage and interfaces of various functional methods, and the CSS file is used for defining the styles corresponding to the controls.
For example, the web page data of some web pages includes an HTM L file, the HTM L file includes a JS file and a CSS file, and the HTM L file and the JS file in the web page data of some web pages are independent of each other, and different processing modes may be provided subsequently based on different composition forms.
308. And when the loading progress of the webpage meets a preset condition, the terminal removes the skeleton screen view so as to display the webpage based on the webpage view.
In the process of loading the webpage data, the skeleton screen view can be removed at different times based on different forms of the webpage data, so that the webpage view at the lower layer can be seen by a user. For example, when the loading progress of the web page meets a preset condition, removing the skeleton screen view may adopt any one of the following implementation manners:
in one possible implementation, if the webpage data comprises an HTM L file and the HTM L file comprises a JS file and a CSS file, the skeletal screen view is removed when the HTM L file loading is complete.
One possible implementation, if the web page data includes independent HTM L and JS files, removes the skeletal screen view after the HTM L and JS files are loaded.
According to one possible implementation, after webpage data loading is completed, a webpage view is rendered based on the webpage data, and after the webpage view rendering is completed, a skeleton screen view is removed.
It should be noted that, the steps 306-308 are processes of how to render the web page according to the skeleton screen data and how to render the entire web page, and this embodiment is only to describe how to acquire the skeleton screen data, and the process of how to render the web page according to the skeleton screen data is not limited.
309. And the terminal records the webpage identification of the webpage and sends the webpage identification to the server.
And the recorded webpage identification of the webpage is the webpage identification corresponding to the display instruction at this time. In addition, the timing of recording the web page identifier of the web page may be after any of the above steps 305 to 308.
After the terminal records, the time for sending the data to the server may be: when the terminal receives an application closing instruction, sending a first webpage identifier to the server, wherein the first webpage identifier is a webpage identifier recorded during the running period of the application; or, the terminal sends a second webpage identifier to the server every other preset time, wherein the second webpage identifier is a webpage identifier recorded in the preset time.
It should be noted that, for the recorded web page identifier, the terminal may send to the server at any time or be requested by the server to the terminal. In this embodiment, only two possible timings for the terminal to send the recorded web page identifier to the server are described, and the timing for the terminal to send the recorded web page identifier to the server may also be the timing for recording the web page identifier.
When the terminal sends the recorded webpage identifier to the server, the webpage identifier can be sent in a log file mode. In one possible implementation, the web page identification of the web page is recorded in a log file; and when the recorded webpage identification is sent, sending a log file to the server.
310. And the server receives the webpage identification recorded by the terminal and adds the webpage identification to the webpage access history data corresponding to the user identification.
And adding the webpage identification into the webpage access history data corresponding to the user identification, namely updating the webpage access history database. The historical database may be accessed based on the updated web page when the skeletal screen data of at least one web page is next obtained.
According to the display method provided by the embodiment of the invention, the plurality of webpages most possibly accessed by the user can be judged through the historical webpage access data, and the skeleton screen data of the plurality of webpages is obtained before the terminal needs to render the primary view by using the skeleton screen data, so that when the terminal receives a display instruction of any webpage, the skeleton screen data of the webpage can be directly obtained from the obtained skeleton screen data of the plurality of webpages. Compared with the prior art, the data loading of the web pages is distributed according to needs, namely, the user can acquire the data of which web page when opening which web page, and the skeleton screen data of the web pages can be issued to the terminal in advance without triggering the web pages, so that the time consumption of loading the data from the server when rendering the skeleton screen each time is reduced.
And the server updates the webpage access historical data according to the actual use condition of the sent skeleton screen data, so that the updated webpage access historical data are analyzed, and a plurality of webpages which are possibly used by the user can be more accurately judged.
And the issued framework screen data is increased or decreased through the configuration information, so that the issued data can be manually adjusted, the condition that the user uses the framework screen data is more comprehensively considered, and the acquired framework screen data of at least one webpage can better meet the requirements of the user.
The embodiments shown in fig. 3 and 4 are described based on the web page access history data stored in the server, and the server analyzes the web page access history data to determine the web pages that may be accessed by the user, but in a possible embodiment, the web page access history data may also be stored in the terminal, and the terminal analyzes based on the web page access history data to determine the web pages that may be accessed by the user, and the following further describes the embodiments based on fig. 5. Fig. 5 is a flowchart of a method for displaying a web page according to an embodiment of the present invention. The method is described by taking an example of interaction between a terminal and a server. Referring to fig. 5, the embodiment includes:
501. and responding to the starting operation of the application, and acquiring webpage access history data stored in the terminal.
The web page access history data may be a record of web pages accessed by a terminal installed with an application, and is used for analyzing web pages that may be used by a user. The terminal records the information of the accessed web pages as the web page access history data. In one possible implementation, the web page identification of the accessed web page is stored under a directory corresponding to the application.
502. The terminal acquires the webpage identification of at least one webpage based on the webpage access historical data.
Step 502 is similar to step 303 and will not be described herein.
503. And the terminal adds the webpage identification of at least one webpage into the second data acquisition request and sends the second data acquisition request to the server.
504. And the server receives the second data acquisition request and returns the skeleton screen data of at least one webpage according to the second data acquisition request.
And after receiving the second data acquisition request, the server acquires skeleton screen data corresponding to at least one webpage identifier according to the at least one webpage identifier carried by the second data acquisition request.
In addition, the server may also increase or decrease the delivered skeleton screen data based on the configuration information, and the detailed steps are similar to the process of increasing or decreasing the delivered skeleton screen data based on the configuration information in step 303, and are not described herein again.
505. The terminal receives the skeleton screen data of at least one webpage, and when a display instruction of any webpage is received, the skeleton screen data of the webpage are obtained from the skeleton screen data of the at least one webpage.
506. The terminal creates a native view on the upper layer of the webpage view, and renders the native view based on the skeleton screen data to obtain the skeleton screen view.
507. And initializing the webpage view by the terminal, and loading webpage data based on the webpage view after the webpage view is initialized.
508. And when the loading progress of the webpage meets a preset condition, the terminal removes the skeleton screen view so as to display the webpage based on the webpage view.
It should be noted that, the steps 506-508 are processes of how to render the web page according to the skeleton screen data and how to render the entire web page, but this embodiment is only to describe how to obtain the skeleton screen data, and the process of how to render the web page according to the skeleton screen data is not limited.
509. And the terminal records the webpage identification of the webpage and sends the webpage identification to the server.
510. And the server receives the webpage identification recorded by the terminal and adds the webpage identification to the webpage access history data corresponding to the user identification.
Steps 505 to 510 are similar to steps 305 to 310, and are not described herein again.
According to the webpage display method provided by the embodiment of the invention, the most probable webpage of the user can be judged through the historical webpage access data, and the terminal acquires the skeleton screen data of the webpages from the server in advance, so that when the terminal receives a display instruction of any webpage, the terminal can acquire the skeleton screen data of the webpage from the skeleton screen data issued in advance, and the time consumption of loading data from the server when the skeleton screen is rendered every time is reduced.
In addition, the server updates the webpage access history data according to the actual use condition of the received skeleton screen data, so that the updated webpage access history data are analyzed, and a plurality of webpages which are possibly used by the user can be more accurately judged.
And the issued framework screen data is increased or decreased through the configuration information, so that the issued data can be manually adjusted, the condition that the user uses the framework screen data is more comprehensively considered, and the acquired framework screen data of at least one webpage can better meet the requirements of the user.
Fig. 6 is a schematic structural diagram of a web page display device according to an embodiment of the present invention. Referring to fig. 6, the apparatus includes:
the first obtaining module 61 is configured to obtain skeleton screen data of at least one webpage based on webpage access history data;
a second obtaining module 62, configured to obtain skeleton screen data of the web page from the skeleton screen data of the at least one web page in response to an opening operation on any web page;
and a display module 63, configured to render the native view based on the skeleton screen data to obtain a skeleton screen view, where the skeleton screen view is used to display a frame of the web page.
According to the webpage display device provided by the embodiment of the invention, the plurality of webpages most possibly accessed by the user can be judged through the historical webpage access data, and the skeleton screen data of the plurality of webpages is obtained before the terminal needs to render the primary view by the skeleton screen data, so that when the terminal receives a display instruction of any webpage, the skeleton screen data of the webpage can be directly obtained from the obtained skeleton screen data of the plurality of webpages. The method for issuing the skeleton screen data of the multiple webpages to the terminal in advance reduces the time consumption of loading the data from the server when the skeleton screen is rendered each time.
In one possible implementation, as shown in fig. 7, the first obtaining module 61 includes:
a first sending unit 611, configured to send a first data obtaining request to a server, where the first data obtaining request carries a user identifier, and the server returns skeleton screen data of the at least one web page based on the user identifier and the web page access history data;
the first receiving unit 612 is configured to receive skeleton screen data of the at least one web page.
In one possible implementation, the first data acquisition request further carries at least one of location information and an application identifier;
the first sending unit 611 is configured to send the first data obtaining request to the server, and the server returns skeleton screen data of the at least one web page based on at least one of the location information and the application identifier, the user identifier, and the web page access history data;
the first receiving unit 612 is configured to receive skeleton screen data of the at least one web page.
In one possible implementation, as shown in fig. 7, the first obtaining module 62 includes:
a second sending unit 613, configured to generate a second data obtaining request based on the webpage access history data stored in the terminal, send the second data obtaining request to the server, where the second data obtaining request carries a webpage identifier of the at least one webpage, and the server returns skeleton screen data of the at least one webpage based on the webpage identifier of the at least one webpage;
a second receiving unit 614, configured to receive skeleton screen data of the at least one web page.
In one possible implementation, as shown in fig. 7, the second sending unit 613 includes:
an obtaining subunit 6131, configured to obtain weight values of multiple web page identifiers based on the web page access history data stored in the terminal, where the weight values of the web page identifiers are positively correlated with a frequency of accessing a web page corresponding to the web page identifier;
the adding subunit 6132 is configured to sort the multiple web page identifiers according to the order of the weighted values from large to small, select the web page identifiers located in the front target number, and add the web page identifiers of the target number to the second data acquisition request.
In one possible implementation, as shown in fig. 7, the first obtaining module 61 includes:
a third sending unit 615, configured to send, in response to a start operation for the application, start information to the server;
a third receiving unit 616, configured to receive the skeleton screen data of the at least one web page, which is issued along with the application configuration data of the server.
In one possible implementation, as shown in fig. 7, the apparatus further includes:
a recording module 64, configured to record a webpage identifier of the webpage;
a sending module 65, configured to send a first webpage identifier to the server when receiving an application closing instruction, where the first webpage identifier is a webpage identifier recorded during the running of the application; or sending a second webpage identifier to the server every other preset time, wherein the second webpage identifier is a webpage identifier recorded in the preset time.
In one possible implementation, as shown in fig. 7, the recording module 64 is configured to record the web page identifier of the web page in a log file;
the sending module 65 is configured to send the log file to the server when sending the recorded webpage identifier.
Fig. 8 is a schematic structural diagram of a web page display device according to an embodiment of the present invention. Referring to fig. 8, the apparatus includes:
a first receiving module 801, configured to receive a first data acquisition request of a terminal, where the first data acquisition request carries a user identifier;
a determining module 802, configured to determine, based on the user identifier, webpage access history data;
an obtaining module 803, configured to obtain skeleton screen data of at least one webpage based on the webpage access history data;
a sending module 804, configured to send the skeleton screen data of the at least one webpage to the terminal.
According to the webpage display device provided by the embodiment of the invention, the webpage access historical data are determined through the first data acquisition request of the terminal, the plurality of webpages which are possibly accessed by the user can be determined according to the determined webpage historical access data, the skeleton screen data of the plurality of webpages are sent to the terminal, the terminal can acquire the skeleton screen data of the plurality of webpages at one time, and the skeleton screen data of the corresponding webpages can be found from the plurality of webpages in the subsequent rendering of the skeleton screen view without loading from the server, so that the time consumption of loading the data from the server in each rendering of the skeleton screen is reduced, the occurrence time of the skeleton screen view is advanced, the user is prevented from seeing a white screen for a long time, and the visual effect is improved.
In one possible implementation, as shown in fig. 9, the apparatus further includes:
a recording module 805, configured to record at least one of the user identifier, the application identifier, the location information, and the web page identifier of the terminal when the terminal accesses a web page, and store the at least one of the user identifier, the application identifier, the location information, and the web page identifier as web page access history data of the web page.
In one possible implementation, as shown in fig. 9, the determining module 802 includes:
a first obtaining unit 8021, configured to, when obtaining the webpage access history data corresponding to the user identifier, obtain the webpage access history data corresponding to the user identifier as the webpage access history data;
a second obtaining unit 8021, configured to, when the web page access history data corresponding to the user identifier is not obtained, obtain, as the web page access history data, web page access history data corresponding to at least one other user identifier except the user identifier.
In one possible implementation, as shown in fig. 9, the obtaining module 803 includes:
a first obtaining unit 8031, configured to obtain weight values of a plurality of web page identifiers based on the historical data of web page access, where the weight values of the web page identifiers are positively correlated with a frequency of accessing a web page corresponding to the web page identifiers;
the second obtaining unit 8032 is configured to sort the multiple web page identifiers according to the order of the weighted values from large to small, select the web page identifiers located in the front target number, and obtain the skeleton screen data corresponding to the web page identifiers of the target number.
In one possible implementation, the determining module 802 includes:
a first obtaining unit 8021, configured to, when obtaining the webpage access history data corresponding to the user identifier, obtain the webpage access history data corresponding to the user identifier as the webpage access history data;
a second obtaining unit 8021, configured to, when the webpage access history data corresponding to the user identifier is not obtained, determine, according to the location information, a location area to which the location information belongs, obtain at least one user identifier in the location area, the user identifier being excluded from the location area, and obtain the webpage access history data corresponding to the at least one user identifier as the webpage access history data.
In one possible implementation, the determining module 802 includes:
a first determining unit 8023, configured to determine, according to the application identifier, web page access data corresponding to the application;
a third obtaining unit 8024, configured to obtain, based on the user identifier, the webpage access history data corresponding to the user identifier from the webpage access data corresponding to the application.
In a possible implementation manner, as shown in fig. 9, the first receiving module 801 is further configured to receive a second data obtaining request of the terminal, where the second data obtaining request carries a web page identifier of the at least one web page;
the sending module 804 is further configured to send the skeleton screen data corresponding to the at least one webpage to the terminal based on the webpage identifier of the at least one webpage.
In one possible implementation, as shown in fig. 9, the apparatus further includes:
a second receiving module 806, configured to receive the webpage identifier recorded by the terminal, and add the webpage identifier to the webpage access history data corresponding to the user identifier.
In one possible implementation, as shown in fig. 9, the apparatus further includes:
a third receiving module 807 for receiving configuration information, wherein the configuration information includes a web page identifier of the target web page;
the acquisition module is further configured to acquire the skeleton screen data of the target webpage according to the webpage identifier of the target webpage, and add the skeleton screen data of the target webpage to the skeleton screen data of the at least one webpage.
In a possible implementation manner, the sending module 804 is configured to package the skeleton screen data of the at least one webpage into at least one data packet, and send the at least one data packet to the terminal.
In a possible implementation manner, the sending module 804 is configured to sort the skeleton screen data of the at least one webpage according to a sequence of access frequencies from large to small, package the sorted skeleton screen data of the at least one webpage into a plurality of data packets, and send the plurality of data packets to the terminal in sequence according to a sequence of access frequencies from large to small.
In one possible implementation, the apparatus further includes:
a fourth receiving module 808, configured to receive start information of the terminal;
a sending module 804, configured to send the application configuration data and the skeleton screen data of the at least one webpage to the terminal together.
It should be noted that: in the web page display apparatus provided in the above embodiment, when displaying a web page, only the division of the above functional modules is taken as an example, in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the terminal is divided into different functional modules, so as to complete all or part of the above described functions. In addition, the web page display apparatus and the web page display method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments in detail and are not described herein again.
Fig. 10 is a block diagram illustrating a terminal 1000 according to an exemplary embodiment of the present invention, where the terminal 1000 may be a smart phone, a tablet pc, an MP3 player (Moving Picture Experts Group Audio L player iii, mpeg Audio layer 3), an MP4 player (Moving Picture Experts Group Audio L layer IV, mpeg Audio layer 4), a notebook pc, or a desktop pc, and the terminal 1000 may also be referred to as a user equipment, a portable terminal, a laptop terminal, a desktop terminal, or other names.
In general, terminal 1000 can include: a processor 1001 and a memory 1002.
The processor 1001 may include one or more Processing cores, such as a 4-core processor, an 8-core processor, etc., the processor 1001 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), a P L a (Programmable logic Array), the processor 1001 may also include a main processor and a coprocessor, the main processor is a processor for Processing data in a wake-up state, also known as a CPU (Central Processing Unit), the coprocessor is a low-power processor for Processing data in a standby state, in some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit) for rendering and rendering content desired for a display screen, and in some embodiments, the processor 1001 may also include an AI (intelligent processor 1001 for learning operations related to an AI processor).
Memory 1002 may include one or more computer-readable storage media, which may be non-transitory. The memory 1002 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 1002 is used to store at least one instruction for execution by the processor 1001 to implement the web page display method provided by the method embodiments of the present application.
In some embodiments, terminal 1000 can also optionally include: a peripheral interface 1003 and at least one peripheral. The processor 1001, memory 1002 and peripheral interface 1003 may be connected by a bus or signal line. Various peripheral devices may be connected to peripheral interface 1003 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1004, touch screen display 1005, camera 1006, audio circuitry 1007, positioning components 1008, and power supply 1009.
The peripheral interface 1003 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 1001 and the memory 1002. In some embodiments, processor 1001, memory 1002, and peripheral interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral interface 1003 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
The Radio Frequency circuit 1004 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1004 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1004 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1004 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1004 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
Display 1005 is for displaying a UI (User Interface) that may include graphics, text, icons, video, and any combination thereof, when Display 1005 is a touch Display, Display 1005 also has the ability to capture touch signals on or over the surface of Display 1005. the touch signals may be input to processor 1001 for processing as control signals.
The camera assembly 1006 is used to capture images or video. Optionally, the camera assembly 1006 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1006 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1007 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1001 for processing or inputting the electric signals to the radio frequency circuit 1004 for realizing voice communication. For stereo sound collection or noise reduction purposes, multiple microphones can be provided, each at a different location of terminal 1000. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1001 or the radio frequency circuit 1004 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuit 1007 may also include a headphone jack.
The positioning component 1008 is used to position the current geographic location of the terminal 1000 to implement navigation or L BS (L geographic based Service). the positioning component 1008 can be a positioning component based on the GPS (global positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
Power supply 1009 is used to supply power to various components in terminal 1000. The power source 1009 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When the power source 1009 includes a rechargeable battery, the rechargeable battery may support wired charging or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1000 can also include one or more sensors 1010. The one or more sensors 1010 include, but are not limited to: acceleration sensor 1011, gyro sensor 1012, pressure sensor 1013, fingerprint sensor 1014, optical sensor 1015, and proximity sensor 1016.
Acceleration sensor 1011 can detect acceleration magnitudes on three coordinate axes of a coordinate system established with terminal 1000. For example, the acceleration sensor 1011 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1001 may control the touch display screen 1005 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1011. The acceleration sensor 1011 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1012 may detect a body direction and a rotation angle of the terminal 1000, and the gyro sensor 1012 and the acceleration sensor 1011 may cooperate to acquire a 3D motion of the user on the terminal 1000. From the data collected by the gyro sensor 1012, the processor 1001 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensor 1013 may be disposed on a side frame of terminal 1000 and/or on a lower layer of touch display 1005. When pressure sensor 1013 is disposed on a side frame of terminal 1000, a user's grip signal on terminal 1000 can be detected, and processor 1001 performs left-right hand recognition or shortcut operation according to the grip signal collected by pressure sensor 1013. When the pressure sensor 1013 is disposed at a lower layer of the touch display screen 1005, the processor 1001 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 1005. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
Fingerprint sensor 1014 is used to collect a user's fingerprint, and the identity of the user is identified by processor 1001 according to the fingerprint collected by fingerprint sensor 1014, or the identity of the user is identified by fingerprint sensor 1014 according to the collected fingerprint when the identity of the user is identified as a trusted identity, the user is authorized by processor 1001 to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying and changing settings, etc.
The optical sensor 1015 is used to collect the ambient light intensity. In one embodiment, the processor 1001 may control the display brightness of the touch display screen 1005 according to the intensity of the ambient light collected by the optical sensor 1015. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1005 is turned down. In another embodiment, the processor 1001 may also dynamically adjust the shooting parameters of the camera assembly 1006 according to the intensity of the ambient light collected by the optical sensor 1015.
Proximity sensor 1016, also known as a distance sensor, is typically disposed on a front panel of terminal 1000. Proximity sensor 1016 is used to gather the distance between the user and the front face of terminal 1000. In one embodiment, when proximity sensor 1016 detects that the distance between the user and the front surface of terminal 1000 gradually decreases, processor 1001 controls touch display 1005 to switch from a bright screen state to a dark screen state; when proximity sensor 1016 detects that the distance between the user and the front of terminal 1000 is gradually increased, touch display screen 1005 is controlled by processor 1001 to switch from a breath-screen state to a bright-screen state.
Those skilled in the art will appreciate that the configuration shown in FIG. 10 is not intended to be limiting and that terminal 1000 can include more or fewer components than shown, or some components can be combined, or a different arrangement of components can be employed.
Fig. 11 is a schematic structural diagram of a server according to an embodiment of the present invention, where the server 1100 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1101 and one or more memories 1102, where the memory 1102 stores at least one instruction, and the at least one instruction is loaded and executed by the processors 1101 to implement the methods provided by the foregoing method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
In an exemplary embodiment, a computer-readable storage medium, such as a memory, including instructions executable by a processor in a terminal to perform the web page display method in the above-described embodiments is also provided. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (15)

1. A webpage display method is applied to a terminal, and the method comprises the following steps:
responding to the starting operation of the application, receiving the skeleton screen data of at least one webpage issued together with the application configuration data of the server based on the webpage access historical data, and storing the skeleton screen data of the at least one webpage in the local;
responding to an opening operation of any webpage, and acquiring skeleton screen data of the webpage from locally stored skeleton screen data of the at least one webpage;
rendering a native view based on the skeleton screen data to obtain a skeleton screen view, wherein the skeleton screen view is used for displaying a frame of the webpage.
2. The method of claim 1, wherein receiving skeletal screen data of at least one web page delivered with application configuration data of a server based on web page access history data comprises:
sending a first data acquisition request to the server, wherein the first data acquisition request carries a user identifier, and returning the application configuration data and the skeleton screen data of the at least one webpage by the server based on the user identifier and the webpage access history data;
receiving the application configuration data and the skeleton screen data of the at least one webpage.
3. The method of claim 2, wherein the first data acquisition request further carries at least one of location information and an application identifier, and the receiving, based on the web page access history data, skeleton screen data of at least one web page issued along with application configuration data of a server comprises:
sending the first data acquisition request to the server, and returning the application configuration data and the skeleton screen data of the at least one webpage by the server based on the at least one of the position information and the application identifier, the user identifier and the webpage access history data;
receiving the application configuration data and the skeleton screen data of the at least one webpage.
4. The method of claim 1, wherein receiving skeletal screen data of at least one web page delivered with application configuration data of a server based on web page access history data comprises:
generating a second data acquisition request based on the webpage access historical data stored by the terminal, sending the second data acquisition request to a server, wherein the second data acquisition request carries the webpage identification of the at least one webpage, and the server returns the application configuration data and the skeleton screen data of the at least one webpage based on the webpage identification of the at least one webpage;
receiving the application configuration data and the skeleton screen data of the at least one webpage.
5. The method of claim 4, wherein generating a second data acquisition request based on the web page access history data comprises:
acquiring weighted values of a plurality of webpage identifiers based on the webpage access historical data stored by the terminal, wherein the weighted values of the webpage identifiers are positively correlated with the frequency of accessing the webpage corresponding to the webpage identifiers;
and sequencing the webpage identifications according to the sequence of the weighted values from large to small, selecting the webpage identifications with the front target number, and adding the webpage identifications with the target number to the second data acquisition request.
6. The method according to any one of claims 1 to 5, further comprising:
recording the webpage identification of the webpage;
when an application closing instruction is received, sending a first webpage identifier to the server, wherein the first webpage identifier is a webpage identifier recorded during the running period of the current application; or sending a second webpage identifier to the server every other preset time, wherein the second webpage identifier is a webpage identifier recorded in the preset time.
7. A webpage display method is applied to a server, and the method comprises the following steps:
receiving a first data acquisition request of a terminal, wherein the first data acquisition request carries a user identifier, and the terminal is used for responding to the starting operation of an application to send the first data acquisition request;
determining webpage access history data based on the user identification;
obtaining skeleton screen data of at least one webpage based on the webpage access historical data;
and sending the application configuration data and the skeleton screen data of the at least one webpage together to the terminal, wherein the terminal is used for storing the skeleton screen data of the at least one webpage in a local place.
8. The method of claim 7, wherein determining web page access history data based on the user identification comprises:
when acquiring webpage access history data corresponding to the user identification, acquiring the webpage access history data corresponding to the user identification as the webpage access history data;
and when the webpage access history data corresponding to the user identification is not acquired, acquiring webpage access history data corresponding to at least one other user identification except the user identification as the webpage access history data.
9. The method of claim 7, wherein obtaining skeletal screen data of at least one web page based on the web page access history data comprises:
acquiring weighted values of a plurality of webpage identifiers based on the webpage access historical data, wherein the weighted values of the webpage identifiers are positively correlated with the frequency of accessing the webpage corresponding to the webpage identifiers;
and sequencing the webpage identifications according to the sequence of the weighted values from large to small, selecting the webpage identifications positioned at the front target number, and acquiring the skeleton screen data corresponding to the webpage identifications of the target number.
10. The method of claim 7, further comprising:
and receiving the webpage identification recorded by the terminal, and adding the webpage identification into the webpage access history data corresponding to the user identification.
11. A webpage display device is applied to a terminal, and the device comprises:
the first acquisition module is used for responding to the starting operation of the application, receiving the skeleton screen data of at least one webpage issued together with the application configuration data of the server based on the webpage access historical data, and storing the skeleton screen data of the at least one webpage in the local;
the second acquisition module is used for responding to the opening operation of any webpage and acquiring the skeleton screen data of the webpage from the locally stored skeleton screen data of the at least one webpage;
and the display module is used for rendering a native view based on the skeleton screen data to obtain a skeleton screen view, and the skeleton screen view is used for displaying the frame of the webpage.
12. A web page display apparatus applied to a server, the apparatus comprising:
the terminal comprises a first receiving module, a second receiving module and a sending module, wherein the first receiving module is used for receiving a first data acquisition request of the terminal, the first data acquisition request carries a user identifier, and the terminal is used for responding to the starting operation of an application and sending the first data acquisition request;
the determining module is used for determining webpage access historical data based on the user identification;
the acquisition module is used for acquiring skeleton screen data of at least one webpage based on the webpage access historical data;
and the sending module is used for sending the skeleton screen data of the at least one webpage to the terminal along with the application configuration data of the server, and the terminal is used for storing the skeleton screen data of the at least one webpage in a local place.
13. A terminal, comprising one or more processors and one or more memories having stored therein at least one instruction, the at least one instruction being loaded and executed by the one or more processors to perform operations performed by the web page display method of any one of claims 1 to 6.
14. A server, comprising one or more processors and one or more memories having stored therein at least one instruction, the at least one instruction being loaded and executed by the one or more processors to perform operations performed by the web page display method of any one of claims 7 to 10.
15. A computer-readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor to perform operations performed by the web page display method according to any one of claims 1 to 6; or to implement the operations performed in the web page display method of claims 7 to 10.
CN201910394216.3A 2019-05-13 2019-05-13 Webpage display method, device, terminal and storage medium Active CN110110263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910394216.3A CN110110263B (en) 2019-05-13 2019-05-13 Webpage display method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910394216.3A CN110110263B (en) 2019-05-13 2019-05-13 Webpage display method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110110263A CN110110263A (en) 2019-08-09
CN110110263B true CN110110263B (en) 2020-07-28

Family

ID=67489679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910394216.3A Active CN110110263B (en) 2019-05-13 2019-05-13 Webpage display method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110110263B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990014B (en) * 2019-12-12 2023-10-20 深圳市卡牛科技有限公司 Method and device for generating skeleton screen page codes, server and storage medium
CN111241451A (en) * 2020-01-14 2020-06-05 北京三快在线科技有限公司 Webpage processing method and device, computer equipment and storage medium
CN111414563B (en) * 2020-03-23 2024-03-01 广州方硅信息技术有限公司 Webpage interaction method, device, computer equipment and storage medium
CN111475243A (en) * 2020-04-03 2020-07-31 广东小天才科技有限公司 Page loading method and system
CN111522599B (en) * 2020-04-13 2023-06-30 百度在线网络技术(北京)有限公司 Method and device for transmitting information
CN111552473B (en) * 2020-04-27 2024-02-09 腾讯科技(深圳)有限公司 Application processing method, device and equipment
CN111859219A (en) * 2020-07-23 2020-10-30 广州酷狗计算机科技有限公司 Webpage skeleton graph generation method and device, terminal and storage medium
CN112835725A (en) * 2021-01-19 2021-05-25 北京电解智科技有限公司 Web communication method and device
WO2022178777A1 (en) * 2021-02-25 2022-09-01 京东方科技集团股份有限公司 Data sharing method, computer device and storage medium
CN113065079B (en) * 2021-04-13 2023-10-13 开鑫金服(南京)信息服务有限公司 Method, equipment and storage medium for realizing calling of native page based on address protocol

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104573025A (en) * 2015-01-12 2015-04-29 北京京东尚科信息技术有限公司 Method and system for increasing page loading rate
CN105512251A (en) * 2015-12-01 2016-04-20 北京百度网讯科技有限公司 Page cache method and device
CN105607927A (en) * 2015-12-18 2016-05-25 小米科技有限责任公司 Page display method and apparatus
CN109190071A (en) * 2018-08-02 2019-01-11 浙江中农在线电子商务有限公司 Mobile terminal caching method and device
CN109271587A (en) * 2018-09-06 2019-01-25 北京云测信息技术有限公司 A kind of page generation method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10452723B2 (en) * 2016-10-27 2019-10-22 Micro Focus Llc Detecting malformed application screens

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104573025A (en) * 2015-01-12 2015-04-29 北京京东尚科信息技术有限公司 Method and system for increasing page loading rate
CN105512251A (en) * 2015-12-01 2016-04-20 北京百度网讯科技有限公司 Page cache method and device
CN105607927A (en) * 2015-12-18 2016-05-25 小米科技有限责任公司 Page display method and apparatus
CN109190071A (en) * 2018-08-02 2019-01-11 浙江中农在线电子商务有限公司 Mobile terminal caching method and device
CN109271587A (en) * 2018-09-06 2019-01-25 北京云测信息技术有限公司 A kind of page generation method and device

Also Published As

Publication number Publication date
CN110110263A (en) 2019-08-09

Similar Documents

Publication Publication Date Title
CN110110263B (en) Webpage display method, device, terminal and storage medium
CN110674022B (en) Behavior data acquisition method and device and storage medium
CN109977333B (en) Webpage display method and device, computer equipment and storage medium
CN110841285B (en) Interface element display method and device, computer equipment and storage medium
CN109327608B (en) Song sharing method, terminal, server and system
CN108959361B (en) Form management method and device
CN109948087B (en) Webpage resource obtaining method and device and terminal
CN108132790B (en) Method, apparatus and computer storage medium for detecting a garbage code
CN113411680B (en) Multimedia resource playing method, device, terminal and storage medium
CN110147503B (en) Information issuing method and device, computer equipment and storage medium
WO2022088765A1 (en) Interaction processing method and computer device
CN110569220A (en) Game resource file display method and device, terminal and storage medium
CN109917988B (en) Selected content display method, device, terminal and computer readable storage medium
CN113032587B (en) Multimedia information recommendation method, system, device, terminal and server
CN111625315A (en) Page display method and device, electronic equipment and storage medium
CN112257006A (en) Page information configuration method, device, equipment and computer readable storage medium
CN111265885A (en) Resource display method, resource sending method, device, equipment and storage medium
CN111008083B (en) Page communication method and device, electronic equipment and storage medium
CN111275607A (en) Interface display method and device, computer equipment and storage medium
CN112181442A (en) Unloaded page display method, device, terminal, server and storage medium
CN113301422B (en) Method, terminal and storage medium for acquiring video cover
CN110390065B (en) Webpage acquisition method, device and system
CN112597417B (en) Page updating method and device, electronic equipment and storage medium
CN111522483B (en) Multimedia data sharing method and device, electronic equipment and storage medium
CN111159551B (en) User-generated content display method and device and computer equipment

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
GR01 Patent grant
GR01 Patent grant