CN110750744A - Page presentation method and device - Google Patents

Page presentation method and device Download PDF

Info

Publication number
CN110750744A
CN110750744A CN201910964977.8A CN201910964977A CN110750744A CN 110750744 A CN110750744 A CN 110750744A CN 201910964977 A CN201910964977 A CN 201910964977A CN 110750744 A CN110750744 A CN 110750744A
Authority
CN
China
Prior art keywords
page
target application
common
access request
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910964977.8A
Other languages
Chinese (zh)
Inventor
贺三元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Koubei Network Technology Co Ltd
Original Assignee
Zhejiang Koubei Network 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 Zhejiang Koubei Network Technology Co Ltd filed Critical Zhejiang Koubei Network Technology Co Ltd
Priority to CN201910964977.8A priority Critical patent/CN110750744A/en
Publication of CN110750744A publication Critical patent/CN110750744A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

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 page presenting method and device. The method comprises the following steps: after the target application is started, monitoring whether the current system is in an idle state; if the current system is in an idle state, loading page information of at least one common page according to a page address of the at least one common page corresponding to the target application acquired from the server; when a page access request of a user is received, judging whether page information of a frequently-used page corresponding to the page access request is loaded at present; and if so, presenting the page corresponding to the page access request according to the loaded page information of the common page corresponding to the page access request. By adopting the scheme, the time for opening the commonly used page by the user can be greatly reduced, and the user experience is improved; and the common pages are preloaded according to the address information when the system is idle, so that the influence on the overall operation efficiency of the system is avoided, and the data transmission overhead between the terminal and the server is reduced.

Description

Page presentation method and device
Technical Field
The invention relates to the technical field of internet, in particular to a page presenting method and device.
Background
With the continuous development of science and technology and society, the emergence of various applications brings great convenience to the work and life of people. At present, in the process of providing services for users, corresponding pages are usually presented for presenting service information. For example, the chinese patent application with application publication No. CN109635223A can open a corresponding page according to a page open instruction in an application program.
However, the inventor finds the following defects in the prior art in the implementation process: in the prior art, when a user opens a certain page in an application, an application program needs to acquire page information corresponding to the page in real time to load the page information, so that the user can present the corresponding page for the user after waiting for a long time, and further user experience is reduced.
Disclosure of Invention
In view of the above, the present invention has been made to provide a page rendering method and apparatus that overcome the above problems or at least partially solve the above problems.
According to one aspect of the invention, a page rendering method is provided, which comprises the following steps:
after the target application is started, monitoring whether the current system is in an idle state;
if the current system is in an idle state, loading page information of at least one common page according to the page address of the at least one common page corresponding to the target application acquired from the server;
when a page access request of a user is received, judging whether page information of a common page corresponding to the page access request is loaded at present;
and if so, presenting the page corresponding to the page access request according to the loaded page information of the common page corresponding to the page access request.
Optionally, after the target application is started, the method further includes:
and creating a page container corresponding to the target application, so that at least one page corresponding to the target application can be presented by utilizing the page container.
Optionally, the life cycle of the page container is consistent with the life cycle of the target application.
Optionally, the presenting at least one page corresponding to the target application by using the page container further includes:
when a plurality of pages corresponding to the target application are presented using the page container;
and if a switching request aiming at the page content in the page container is monitored, presenting the switched page information in the page container, and enabling the switched page information record to cover the page information record before switching.
Optionally, before the loading the page information of the at least one frequently-used page according to the page address of the at least one frequently-used page corresponding to the target application acquired from the server, the method further includes:
when a page access event in a target application is monitored, judging whether the page access event is a click event;
and if so, uploading the page access event to a server so that the server can count the access amount of the page corresponding to the page access event and determine at least one common page corresponding to the target application.
Optionally, when a page access event in the target application is monitored, determining whether the page access event is a click event further includes:
when a page access event in a target application is monitored, judging whether the page access event is an access event aiming at a sub-page;
if not, judging whether the page access event is a click event or not.
According to another aspect of the present invention, there is provided a page rendering apparatus including:
the system state monitoring module is suitable for monitoring whether the current system is in an idle state or not after the target application is started;
the page loading module is suitable for loading the page information of at least one common page corresponding to the target application according to the page address of the at least one common page acquired from the server if the current system is in an idle state;
the judging module is suitable for judging whether page information of a frequently-used page corresponding to a page access request is loaded at present or not when the page access request of a user is received;
and the presentation module is suitable for presenting the page corresponding to the page access request according to the loaded page information of the common page corresponding to the page access request if the page information of the common page corresponding to the page access request is loaded currently.
Optionally, the apparatus further comprises:
the container pre-creation module is suitable for creating a page container corresponding to the target application after the target application is started, so that at least one page corresponding to the target application can be presented by utilizing the page container.
Optionally, the life cycle of the page container is consistent with the life cycle of the target application.
Optionally, the page container is adapted to: when a plurality of pages corresponding to the target application are presented using the page container;
and if a switching request aiming at the page content in the page container is monitored, presenting the switched page information in the page container, and enabling the switched page information record to cover the page information record before switching.
Optionally, the apparatus further comprises:
the event uploading module is suitable for judging whether a page access event in the target application is a click event or not when the page access event is monitored before loading page information of at least one common page corresponding to the target application according to a page address of the at least one common page acquired from the server;
and if so, uploading the page access event to a server so that the server can count the access amount of the page corresponding to the page access event and determine at least one common page corresponding to the target application.
Optionally, the event uploading module is further adapted to:
when a page access event in a target application is monitored, judging whether the page access event is an access event aiming at a sub-page;
if not, judging whether the page access event is a click event or not.
According to yet another aspect of the present invention, there is provided a computing device comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the page presentation method.
According to still another aspect of the present invention, a computer storage medium is provided, where at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to perform operations corresponding to the page rendering method.
According to the page presenting method and the page presenting device, firstly, after the target application is started, whether the current system is in an idle state or not is monitored; if the current system is in an idle state, loading page information of at least one common page according to a page address of the at least one common page corresponding to the target application acquired from the server; further judging whether page information of a frequently-used page corresponding to the page access request is loaded at present or not when the page access request of the user is received; and if so, presenting the page corresponding to the page access request according to the loaded page information of the common page corresponding to the page access request. By adopting the scheme, the time for opening the commonly used page by the user can be greatly reduced, and the user experience is improved; and the common pages are preloaded according to the address information when the system is idle, so that the influence on the overall operation efficiency of the system is avoided, and the data transmission overhead between the terminal and the server is reduced.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flowchart illustrating a page rendering method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a page rendering method according to another embodiment of the present invention;
FIG. 3 is a functional block diagram of a page rendering apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computing device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 is a flowchart illustrating a page rendering method according to an embodiment of the present invention. The method is mainly applied to various terminal devices, such as mobile phones, computers, tablets, readers, wearable devices and the like, and the specific type of the terminal device is not limited in this embodiment.
As shown in fig. 1, the method comprises the steps of:
step S110, after the target application is started, monitoring whether the current system is in an idle state; if yes, go to step S120.
The target application is specifically an application program to be subjected to page loading optimization, where the page may be specifically an H5 page, and the like. The present embodiment does not limit the specific type of the target application and the like. For example, an application with a higher use frequency may be determined according to the use frequency of each application in the terminal device, and the application with the higher use frequency may be determined as a target application; still alternatively, the application program specified by the user may be determined as the target application, and the like, according to the configuration operation presented by the user to the application program.
In this scheme, in order to avoid adverse effects on the overall operating efficiency of the system in the process of increasing the loading speed of the commonly used page, in this embodiment, after the target application is started, whether the current system is in an idle state is further monitored, and if so, step S120 is executed; otherwise, the current system is continuously monitored.
The method comprises the steps of determining whether a current system is in an idle state, specifically determining the total memory ratio of each process in the current system, and determining that the current system is in the idle state when the total memory ratio is smaller than a preset ratio.
Step S120, loading page information of at least one frequently-used page according to the page address of the at least one frequently-used page corresponding to the target application acquired from the server.
In this embodiment, the server stores in advance a page address of at least one common page corresponding to the target application. Optionally, the server may periodically issue the page address of the frequently-used page corresponding to the target application to the terminal device according to a preset issuing period; or, when the page address of the common page corresponding to the target application stored in the server is updated, the updated page address of the common page corresponding to the target application is issued. The terminal equipment further caches the page address of at least one common page corresponding to the target application issued by the server.
And if the current system is in the idle state, loading the page information of at least one common page according to the page address of the at least one common page corresponding to the target application acquired from the server. That is, the loading of the page information of the frequently-used page is performed only when the system is determined to be in the idle state, so that the influence on the overall operation efficiency of the system is avoided; in addition, the embodiment only acquires the page address information from the server, so that the data transmission overhead between the terminal and the server is reduced, meanwhile, the server is not required to store the page information of the common page, and the storage resource of the server is further saved.
Step S130, when a page access request of a user is received, judging whether page information of a frequently-used page corresponding to the page access request is loaded at present; if yes, go to step S140.
In the running process of a target application, when a page access request of a user is received, firstly, determining a page corresponding to the page access request; further determining whether the page information of the page corresponding to the page access request is loaded in the local terminal device, if so, indicating that the page corresponding to the page access request is a loaded common page, and executing step S140; if not, the method ends.
Step S140, presenting the page corresponding to the page access request according to the loaded page information of the common page corresponding to the page access request.
If the page information of the common page corresponding to the page access request is loaded currently, the page corresponding to the page access request is presented directly according to the loaded page information of the common page corresponding to the page access request, so that the page information does not need to be acquired according to the page access request, and the presentation efficiency of the common page is improved.
Therefore, in the embodiment, after the target application is started, whether the current system is in an idle state is monitored; if the current system is in an idle state, loading page information of at least one common page according to a page address of the at least one common page corresponding to the target application acquired from the server; when a page access request of a user is received, judging whether page information of a frequently-used page corresponding to the page access request is loaded at present; and if so, presenting the page corresponding to the page access request according to the loaded page information of the common page corresponding to the page access request. By adopting the scheme, the time for opening the commonly used page by the user can be greatly reduced, and the user experience is improved; and the common pages are preloaded according to the address information when the system is idle, so that the influence on the overall operation efficiency of the system is avoided, and the data transmission overhead between the terminal and the server is reduced.
Fig. 2 is a flowchart illustrating a page rendering method according to another embodiment of the present invention. The method is mainly applied to various terminal devices, such as mobile phones, computers, tablets, readers, wearable devices and the like, and the specific type of the terminal device is not limited in this embodiment. The page rendering method provided by this embodiment is directed to further optimization of the method shown in fig. 1:
as shown in fig. 2, the method includes:
step S210, after the target application is started, a page container corresponding to the target application is created; wherein the life cycle of the page container is consistent with the life cycle of the target application.
In the prior art, after an application program is started, generally according to a page request operation of a user, when a page corresponding to the operation is presented, a page container corresponding to the page is created. However, in the process of creating a page container, complicated operations such as initialization (especially, browser embedded page container) are usually required, so that the page rendering time is long, and the user experience is affected.
In this embodiment, to further improve the page rendering efficiency, after the target application is started, the page container corresponding to the target application is immediately created. Namely, the method and the device do not need to wait for specific page request operation of a user, uniformly create a page container in advance, and use the page container to present at least one page corresponding to the target application.
In a specific implementation process, the life cycle of the created page container is consistent with the life cycle of the target application. That is, after the target application is started, the page container corresponding to the target application is created, and after the target application is exited, the created page container is destroyed.
Step S220, monitoring whether the current system is in an idle state; and if so, loading the page information of the at least one common page according to the page address of the at least one common page corresponding to the target application acquired from the server.
Specifically, the server stores in advance a page address of at least one common page corresponding to the target application. The specific process of pre-acquiring the page address of at least one common page corresponding to the target application is as follows: when a page access event in a target application is monitored, judging whether the page access event is a click event; and if so, uploading the page access event to a server so that the server can count the access amount of the page corresponding to the page access event and determine at least one common page corresponding to the target application. In an actual implementation process, the page access amount corresponding to each page in a preset time period is determined according to a page click event in a target application, then a page with the page access amount positioned at the top n bits is determined through a sorting operation on the page access amount, then the top n bits of the page are determined as a common page corresponding to the target application, and a page address of the common page is recorded. Optionally, the server may periodically count the page access amount of each page within a preset time period according to a preset counting period, so as to dynamically update the frequently used page corresponding to the target application. Optionally, the server may also periodically issue a page address of a common page corresponding to the target application to the terminal device according to a preset issuing period; or, when the page address of the common page corresponding to the target application stored in the server is updated, the updated page address of the common page corresponding to the target application is issued. The terminal equipment further caches the page address of at least one common page corresponding to the target application issued by the server.
In an optional implementation manner, since a sub-page in a certain page does not need to be initialized correspondingly and other complex operations in the loading process, the sub-page has a higher speed when being loaded in the prior art, and thus, in order to further reduce the data processing amount of the method, in this embodiment, not all click access events are uploaded to a server, but when a page access event in a target application is monitored, whether the page access event is an access event for the sub-page is determined; if not, judging whether the page access event is a click event or not, and uploading the subsequent click access event. When determining whether the access event is the access event for the sub-page, the domain name information of the access event can be resolved, and whether the access event is the access event for the sub-page is determined according to the domain name resolution result of the access event.
Further, after the target application is started, whether the current system is in an idle state or not is monitored; if so, loading the page information of the at least one common page and loading the page information of the at least one common page according to the page address of the at least one common page corresponding to the target application acquired from the server.
Step S230, when a page access request of a user is received, judging whether page information of a frequently-used page corresponding to the page access request is loaded at present; if yes, go to step S240.
In the running process of a target application, when a page access request of a user is received, firstly, determining a page corresponding to the page access request; further determining whether the page information of the page corresponding to the page access request is loaded in the local terminal, if so, indicating that the page corresponding to the page access request is a loaded common page, and executing step S240; if not, the method ends.
Step S240, using the created page container to present the page corresponding to the page access request according to the loaded page information of the common page corresponding to the page access request.
And after determining that the page information of the frequently-used page corresponding to the page access request is loaded currently, utilizing the created page container consistent with the life cycle of the target application to present the page. The page container created in this embodiment and consistent with the lifecycle of the target application can present all pages corresponding to the target application in the lifecycle, that is, only one page container needs to be created in this embodiment to present multiple pages, thereby implementing multiplexing of the page containers, further improving page presentation efficiency, and saving system resources.
When a plurality of pages corresponding to a target application are presented by using a page container, in order to guarantee the accuracy of page presentation, when a switching request for page content in the page container is monitored, switched page information is immediately presented in the page container, and the switched page information record covers a page information record before switching, so that the phenomenon that the page information record before switching influences the presentation of the switched page information in the same page container is avoided.
Therefore, the time for opening the common page by the user can be greatly reduced by adopting the scheme, and the user experience is improved; in addition, the common pages are preloaded according to the address information when the system is idle, so that the influence on the overall operation efficiency of the system is avoided, and the data transmission overhead between the terminal and the server is reduced; in addition, the page presentation of the target application is performed by creating the page container consistent with the life cycle of the target application in advance, so that the page presentation efficiency is further improved, and the user experience is improved.
Fig. 3 is a functional structure diagram of a page rendering device according to an embodiment of the present invention. As shown in fig. 3, the apparatus includes: a system status monitoring module 31, a page loading module 32, a judging module 33, and a presenting module 34.
The system state monitoring module 31 is adapted to monitor whether the current system is in an idle state after the target application is started;
the page loading module 32 is adapted to load page information of at least one frequently-used page according to a page address of the at least one frequently-used page corresponding to the target application, which is acquired from the server, if the current system is in an idle state;
the judging module 33 is adapted to, when receiving a page access request of a user, judge whether page information of a frequently-used page corresponding to the page access request is currently loaded;
the presenting module 34 is adapted to present the page corresponding to the page access request according to the loaded page information of the common page corresponding to the page access request if the page information of the common page corresponding to the page access request is currently loaded.
Optionally, the apparatus further comprises: a container pre-creation module (not shown in the figure) adapted to, after the target application is started, create a page container corresponding to the target application, so as to present at least one page corresponding to the target application by using the page container.
Optionally, the life cycle of the page container is consistent with the life cycle of the target application.
Optionally, the page container is adapted to: when a plurality of pages corresponding to the target application are presented using the page container;
and if a switching request aiming at the page content in the page container is monitored, presenting the switched page information in the page container, and enabling the switched page information record to cover the page information record before switching.
Optionally, the apparatus further includes an event uploading module (not shown in the figure), adapted to determine whether a page access event in the target application is a click event when the page access event is monitored before loading page information of at least one frequently-used page corresponding to the target application according to a page address of the at least one frequently-used page acquired from the server;
and if so, uploading the page access event to a server so that the server can count the access amount of the page corresponding to the page access event and determine at least one common page corresponding to the target application.
Optionally, the event uploading module is further adapted to: when a page access event in a target application is monitored, judging whether the page access event is an access event aiming at a sub-page;
if not, judging whether the page access event is a click event or not.
The specific implementation process of each module in this embodiment may refer to the description of the corresponding part in the embodiment of fig. 1 and/or fig. 2, which is not described herein again.
Therefore, in the embodiment, after the target application is started, whether the current system is in an idle state is monitored; if so, loading page information of at least one common page according to the page address of the at least one common page corresponding to the target application acquired from the server; when a page access request of a user is received, judging whether page information of a frequently-used page corresponding to the page access request is loaded at present; and if so, presenting the page corresponding to the page access request according to the loaded page information of the common page corresponding to the page access request. By adopting the scheme, the time for opening the commonly used page by the user can be greatly reduced, and the user experience is improved; and the common pages are preloaded according to the address information when the system is idle, so that the influence on the overall operation efficiency of the system is avoided, and the data transmission overhead between the terminal and the server is reduced.
According to an embodiment of the present invention, a non-volatile computer storage medium is provided, where at least one executable instruction is stored, and the computer executable instruction can execute the page rendering method in any of the above method embodiments.
The executable instructions may be specifically configured to cause the processor to:
after the target application is started, monitoring whether the current system is in an idle state;
if the current system is in an idle state, loading page information of at least one common page according to the page address of the at least one common page corresponding to the target application acquired from the server;
when a page access request of a user is received, judging whether page information of a common page corresponding to the page access request is loaded at present;
and if so, presenting the page corresponding to the page access request according to the loaded page information of the common page corresponding to the page access request.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
and creating a page container corresponding to the target application, so that at least one page corresponding to the target application can be presented by utilizing the page container.
In an alternative embodiment, the life cycle of the page container corresponds to the life cycle of the target application.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
when a plurality of pages corresponding to the target application are presented using the page container;
and if a switching request aiming at the page content in the page container is monitored, presenting the switched page information in the page container, and enabling the switched page information record to cover the page information record before switching.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
when a page access event in a target application is monitored, judging whether the page access event is a click event;
and if so, uploading the page access event to a server so that the server can count the access amount of the page corresponding to the page access event and determine at least one common page corresponding to the target application.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
when a page access event in a target application is monitored, judging whether the page access event is an access event aiming at a sub-page;
if not, judging whether the page access event is a click event or not.
Therefore, in the embodiment, after the target application is started, whether the current system is in an idle state is monitored; if so, loading page information of at least one common page according to the page address of the at least one common page corresponding to the target application acquired from the server; when a page access request of a user is received, judging whether page information of a frequently-used page corresponding to the page access request is loaded at present; and if so, presenting the page corresponding to the page access request according to the loaded page information of the common page corresponding to the page access request. By adopting the scheme, the time for opening the commonly used page by the user can be greatly reduced, and the user experience is improved; and the common pages are preloaded according to the address information when the system is idle, so that the influence on the overall operation efficiency of the system is avoided, and the data transmission overhead between the terminal and the server is reduced.
Fig. 4 is a schematic structural diagram of a computing device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.
As shown in fig. 4, the computing device may include: a processor (processor)402, a Communications Interface 404, a memory 406, and a Communications bus 408.
Wherein: the processor 402, communication interface 404, and memory 406 communicate with each other via a communication bus 408. A communication interface 404 for communicating with network elements of other devices, such as clients or other servers. The processor 402 is configured to execute the program 410, and may specifically perform the relevant steps in the above-described embodiments of the page rendering method.
In particular, program 410 may include program code comprising computer operating instructions.
The processor 402 may be a central processing unit CPU, or an application specific Integrated circuit asic, or one or more Integrated circuits configured to implement an embodiment of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 406 for storing a program 410. Memory 406 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 410 may specifically be configured to cause the processor 402 to perform the following operations:
after the target application is started, monitoring whether the current system is in an idle state;
if the current system is in an idle state, loading page information of at least one common page according to the page address of the at least one common page corresponding to the target application acquired from the server;
when a page access request of a user is received, judging whether page information of a common page corresponding to the page access request is loaded at present;
and if so, presenting the page corresponding to the page access request according to the loaded page information of the common page corresponding to the page access request.
In an alternative embodiment, the program 410 may be specifically configured to cause the processor 402 to perform the following operations:
and creating a page container corresponding to the target application, so that at least one page corresponding to the target application can be presented by utilizing the page container.
In an alternative embodiment, the life cycle of the page container corresponds to the life cycle of the target application.
In an alternative embodiment, the program 410 may be specifically configured to cause the processor 402 to perform the following operations:
when a plurality of pages corresponding to the target application are presented using the page container;
and if a switching request aiming at the page content in the page container is monitored, presenting the switched page information in the page container, and enabling the switched page information record to cover the page information record before switching.
In an alternative embodiment, the program 410 may be specifically configured to cause the processor 402 to perform the following operations:
when a page access event in a target application is monitored, judging whether the page access event is a click event;
and if so, uploading the page access event to a server so that the server can count the access amount of the page corresponding to the page access event and determine at least one common page corresponding to the target application.
In an alternative embodiment, the program 410 may be specifically configured to cause the processor 402 to perform the following operations:
when a page access event in a target application is monitored, judging whether the page access event is an access event aiming at a sub-page;
if not, judging whether the page access event is a click event or not.
Therefore, in the embodiment, after the target application is started, whether the current system is in an idle state is monitored; if so, loading page information of at least one common page according to the page address of the at least one common page corresponding to the target application acquired from the server; when a page access request of a user is received, judging whether page information of a frequently-used page corresponding to the page access request is loaded at present; and if so, presenting the page corresponding to the page access request according to the loaded page information of the common page corresponding to the page access request. By adopting the scheme, the time for opening the commonly used page by the user can be greatly reduced, and the user experience is improved; and the common pages are preloaded according to the address information when the system is idle, so that the influence on the overall operation efficiency of the system is avoided, and the data transmission overhead between the terminal and the server is reduced.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.

Claims (10)

1. A page rendering method, comprising:
after the target application is started, monitoring whether the current system is in an idle state;
if the current system is in an idle state, loading page information of at least one common page according to the page address of the at least one common page corresponding to the target application acquired from the server;
when a page access request of a user is received, judging whether page information of a common page corresponding to the page access request is loaded at present;
and if so, presenting the page corresponding to the page access request according to the loaded page information of the common page corresponding to the page access request.
2. The method of claim 1, wherein after the target application is launched, the method further comprises:
and creating a page container corresponding to the target application, so that at least one page corresponding to the target application can be presented by utilizing the page container.
3. The method of claim 2, wherein a lifecycle of the page container coincides with a lifecycle of the target application.
4. The method of claim 2 or 3, wherein said presenting at least one page corresponding to the target application with the page container further comprises:
when a plurality of pages corresponding to the target application are presented using the page container;
and if a switching request aiming at the page content in the page container is monitored, presenting the switched page information in the page container, and enabling the switched page information record to cover the page information record before switching.
5. The method according to any one of claims 1 to 4, wherein before the loading, according to the page address of the at least one frequently-used page corresponding to the target application acquired from the server, the page information of the at least one frequently-used page, the method further comprises:
when a page access event in a target application is monitored, judging whether the page access event is a click event;
and if so, uploading the page access event to a server so that the server can count the access amount of the page corresponding to the page access event and determine at least one common page corresponding to the target application.
6. The method of claim 5, wherein when a page access event in a target application is monitored, determining whether the page access event is a click event further comprises:
when a page access event in a target application is monitored, judging whether the page access event is an access event aiming at a sub-page;
if not, judging whether the page access event is a click event or not.
7. A page rendering apparatus, comprising:
the system state monitoring module is suitable for monitoring whether the current system is in an idle state or not after the target application is started;
the page loading module is suitable for loading page information of at least one common page according to the page address of the at least one common page corresponding to the target application acquired from the server if the current system is in an idle state;
the judging module is suitable for judging whether page information of a frequently-used page corresponding to a page access request is loaded at present or not when the page access request of a user is received;
and the presentation module is suitable for presenting the page corresponding to the page access request according to the loaded page information of the common page corresponding to the page access request if the page information of the common page corresponding to the page access request is loaded currently.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the container pre-creation module is suitable for creating a page container corresponding to the target application after the target application is started, so that at least one page corresponding to the target application can be presented by utilizing the page container.
9. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the page rendering method of any one of claims 1-6.
10. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the page rendering method of any one of claims 1-6.
CN201910964977.8A 2019-10-11 2019-10-11 Page presentation method and device Pending CN110750744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910964977.8A CN110750744A (en) 2019-10-11 2019-10-11 Page presentation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910964977.8A CN110750744A (en) 2019-10-11 2019-10-11 Page presentation method and device

Publications (1)

Publication Number Publication Date
CN110750744A true CN110750744A (en) 2020-02-04

Family

ID=69278056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910964977.8A Pending CN110750744A (en) 2019-10-11 2019-10-11 Page presentation method and device

Country Status (1)

Country Link
CN (1) CN110750744A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111797025A (en) * 2020-07-17 2020-10-20 北京中指讯博数据信息技术有限公司 Data processing method and device for application
CN112765511A (en) * 2021-01-28 2021-05-07 北京达佳互联信息技术有限公司 Business object display method, device, equipment, storage medium and program product
CN112965756A (en) * 2021-01-21 2021-06-15 北京达佳互联信息技术有限公司 Page resource loading amount monitoring method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103995884A (en) * 2014-05-29 2014-08-20 北京中电普华信息技术有限公司 Hybrid application page switching method and system
CN107864173A (en) * 2017-06-26 2018-03-30 平安普惠企业管理有限公司 Terminal page caching method, system and readable storage medium storing program for executing
CN107870920A (en) * 2016-09-23 2018-04-03 腾讯科技(深圳)有限公司 Browser resource pulls method and device in advance
CN110007978A (en) * 2018-11-20 2019-07-12 阿里巴巴集团控股有限公司 A kind of method, device and equipment preloading the page

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103995884A (en) * 2014-05-29 2014-08-20 北京中电普华信息技术有限公司 Hybrid application page switching method and system
CN107870920A (en) * 2016-09-23 2018-04-03 腾讯科技(深圳)有限公司 Browser resource pulls method and device in advance
CN107864173A (en) * 2017-06-26 2018-03-30 平安普惠企业管理有限公司 Terminal page caching method, system and readable storage medium storing program for executing
CN110007978A (en) * 2018-11-20 2019-07-12 阿里巴巴集团控股有限公司 A kind of method, device and equipment preloading the page

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111797025A (en) * 2020-07-17 2020-10-20 北京中指讯博数据信息技术有限公司 Data processing method and device for application
CN111797025B (en) * 2020-07-17 2023-11-14 北京中指讯博数据信息技术有限公司 Application-oriented data processing method and device
CN112965756A (en) * 2021-01-21 2021-06-15 北京达佳互联信息技术有限公司 Page resource loading amount monitoring method and device, electronic equipment and storage medium
CN112965756B (en) * 2021-01-21 2023-09-26 北京达佳互联信息技术有限公司 Page resource loading amount monitoring method and device, electronic equipment and storage medium
CN112765511A (en) * 2021-01-28 2021-05-07 北京达佳互联信息技术有限公司 Business object display method, device, equipment, storage medium and program product
CN112765511B (en) * 2021-01-28 2024-04-23 北京达佳互联信息技术有限公司 Business object display method, device, equipment, storage medium and program product

Similar Documents

Publication Publication Date Title
CN107798108B (en) Asynchronous task query method and device
CN110333912B (en) Method and device for prefetching applet data and computer readable storage medium
CN110750744A (en) Page presentation method and device
CN111666497B (en) Application program loading method and device, electronic equipment and readable storage medium
US10158740B2 (en) Method and apparatus for webpage resource acquisition
WO2018054170A1 (en) Browser resources pre-pulling method, terminal and storage medium
CN107040584B (en) Method and device for downloading picture by client
CN107798064B (en) Page processing method, electronic device and computer readable storage medium
CN104516885A (en) Implementation method and device of browse program double-kernel assembly
CN108769157B (en) Message popup display method and device, computing equipment and computer storage medium
CN110889073B (en) Page request response method, server and computer storage medium
CN114553762B (en) Method and device for processing flow table items in flow table
CN113536168B (en) Component processing method and device
CN112672187B (en) Page generation method and device, computer equipment and readable storage medium
CN110765386A (en) Webpage image monitoring method and device, electronic equipment and readable storage medium
CN108062224B (en) Data reading and writing method and device based on file handle and computing equipment
CN113778581A (en) Page loading method, electronic equipment and storage medium
CN110858238B (en) Data processing method and device
CN114327508A (en) Software loading method and related device
CN110765392A (en) Data loading method and device, storage medium and terminal
CN116107774A (en) IO request processing method and device, electronic equipment and storage medium
CN111090515B (en) Access control method, device, terminal equipment and storage medium
US20140237133A1 (en) Page download control method, system and program for ie core browser
CN114647411A (en) Programming interface loading method and device, electronic equipment and storage medium
CN113934954A (en) Webpage first screen rendering method and device in application program

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200204

RJ01 Rejection of invention patent application after publication