CN110020325B - Page loading method, device, equipment and readable storage medium - Google Patents

Page loading method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN110020325B
CN110020325B CN201810947641.6A CN201810947641A CN110020325B CN 110020325 B CN110020325 B CN 110020325B CN 201810947641 A CN201810947641 A CN 201810947641A CN 110020325 B CN110020325 B CN 110020325B
Authority
CN
China
Prior art keywords
page
sub
application
advertisement
loading
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
CN201810947641.6A
Other languages
Chinese (zh)
Other versions
CN110020325A (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.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN201810947641.6A priority Critical patent/CN110020325B/en
Publication of CN110020325A publication Critical patent/CN110020325A/en
Application granted granted Critical
Publication of CN110020325B publication Critical patent/CN110020325B/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/957Browsing optimisation, e.g. caching or content distillation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a page loading method, which comprises the following steps: when the preset application program is monitored to be started, requesting a server to load page configuration data required by a screen opening sub-page, an advertisement sub-page and an application home page; forming a combined application page comprising a screen opening sub-page, an advertisement sub-page and an application home page according to the page configuration data; and sequentially loading and displaying the screen opening sub-page, the advertisement sub-page and the application home page in the combined application page. The invention also provides a page loading device, equipment and a readable storage medium. According to the invention, a plurality of pages are configured in the same page in a multi-level mode, so that the loading speed of the application home page can be effectively increased, and the skip fluency between the pages is increased.

Description

Page loading method, device and equipment and readable storage medium
Technical Field
The present invention relates to the technical field of application programs, and in particular, to a page loading method, device, and apparatus, and a readable storage medium.
Background
In App (Application ) development, a page loading mode is to jump from one page (Activity) to another page (Activity), that is, when a page is jumped, a client requests a server to load data required by the jumped page, renders the page according to the requested data, and then loads and displays the rendered page.
At present, the loading mode of the APP home page is that when the advertisement page is displayed overtime or a user selects to skip the advertisement page, data required by loading the APP home page is requested from a server side, and home page loading is carried out based on the data required by loading the APP home page.
Therefore, how to increase the loading speed of the App home page and increase the jump fluency between pages is a problem to be solved urgently at present.
Disclosure of Invention
The invention mainly aims to provide a page loading method, a page loading device, page loading equipment and a readable storage medium, and aims to improve the loading speed of an App home page and improve the skip fluency between pages.
In order to achieve the above object, the present invention provides a page loading method, which comprises the following steps:
when the preset application program is monitored to be started, requesting a server to load page configuration data required by a screen opening sub-page, an advertisement sub-page and an application home page;
forming a combined application page comprising a screen-opening sub-page, an advertisement sub-page and an application home page according to the page configuration data;
and sequentially loading and displaying the screen opening sub-page, the advertisement sub-page and the application home page in the combined application page.
Optionally, the step of forming a combined application page including the screen-open sub-page, the advertisement sub-page and the application home page according to the page configuration data includes:
card list configuration information corresponding to the screen opening sub-page, the advertisement sub-page and the application home page is obtained from the page configuration data;
reading layout meta-information and data meta-information of each card from card list configuration information corresponding to each of the screen opening sub-page, the advertisement sub-page and the application home page;
forming respective card layouts corresponding to the screen opening sub-page, the advertisement sub-page and the application home page according to the layout meta-information of the cards;
and filling the data element information corresponding to each card layout into each card layout to form a combined application page comprising a screen-opening sub-page, an advertisement sub-page and an application home page.
Optionally, the step of sequentially loading and displaying the open sub page, the advertisement sub page, and the application home page in the combined application page includes:
loading and displaying an open-screen sub-page in the combined application page, and hiding the open-screen sub-page when the display duration of the open-screen sub-page reaches the corresponding display duration;
after hiding the open sub-page, loading and displaying an advertisement sub-page in the combined application page, and hiding the advertisement sub-page when the display duration of the advertisement sub-page reaches the corresponding display duration;
and after hiding the advertisement subpage, loading and displaying an application home page in the combined application page.
Optionally, before the step of requesting the server for loading the page configuration data required by the screen-open subpage, the advertisement subpage and the application home page, the method further includes:
determining whether a combined application page comprising a screen-opening sub-page, an advertisement sub-page and an application home page is stored in a preset storage area;
if a combined application page comprising a screen opening sub-page, an advertisement sub-page and an application home page is stored in a preset storage area, sequentially loading and displaying the screen opening sub-page, the advertisement sub-page and the application home page in the combined application page;
if a combined application page comprising a screen-opening sub-page, an advertisement sub-page and an application home page is not stored in the preset storage area, executing the following steps: and requesting the server to load page configuration data required by the screen opening sub-page, the advertisement sub-page and the application home page.
Optionally, after the step of sequentially loading and displaying the screen-opening sub-page, the advertisement sub-page, and the application home page in the combined application page, the method further includes:
receiving page configuration data of each application page sent by a server, generating each rendering page according to the page configuration data of each application page, and storing each rendering page;
and when a page jump instruction is monitored, reading a corresponding rendering page from each rendering page according to the page jump instruction, and displaying the rendering page.
Optionally, after the step of sequentially loading and displaying the screen-opening sub-page, the advertisement sub-page, and the application home page in the combined application page, the method further includes:
and receiving a page updating request sent by a server, and updating the combined application page stored in a preset storage area according to page configuration updating data in the page updating request.
Optionally, the step of updating the combined application page stored in the preset storage area according to the page configuration update data in the page update request includes:
determining a sub-page to be updated stored in the combined application page in a preset storage area according to the page level label in the page configuration updating data
And updating the sub-page to be updated in the combined application page according to the card list configuration information of the sub-page to be updated in the page configuration updating data.
In addition, to achieve the above object, the present invention further provides a page loading apparatus, including:
the request module is used for requesting the server to load page configuration data required by the screen opening sub-page, the advertisement sub-page and the application home page when the preset application program is monitored to be started;
the page forming module is used for forming a combined application page comprising a screen opening sub-page, an advertisement sub-page and an application home page according to the page configuration data;
and the loading display module is used for sequentially loading and displaying the screen opening sub-page, the advertisement sub-page and the application home page in the combined application page.
In addition, to achieve the above object, the present invention further provides a page loading device, where the page loading device includes a processor, a memory, and a page loader stored in the memory and executable by the processor, where when the page loader is executed by the processor, the steps of the page loading method as described above are implemented.
In addition, to achieve the above object, the present invention further provides a readable storage medium, where a page loading program is stored on the readable storage medium, where the page loading program, when executed by a processor, implements the steps of the page loading method as described above.
The invention provides a page loading method, a device, equipment and a readable storage medium, when an application program is started, page configuration data required by a screen opening sub-page, an advertisement sub-page and an application home page are requested to be loaded to a server, a combined application page containing the screen opening sub-page, the advertisement sub-page and the application home page is formed based on the page configuration data, then the screen opening sub-page, the advertisement sub-page and the application home page in the combined application page are sequentially loaded and displayed, because the screen opening sub-page, the advertisement sub-page and the application home page are configured in one page, the switching among the pages is not involved, the application home page is formed when the application program is started, and the corresponding data is requested to execute page loading operation after the advertisement page is displayed, the loading speed of the application home page is effectively improved, and the skip smoothness among the pages is improved.
Drawings
Fig. 1 is a schematic hardware structure diagram of a page loading device according to embodiments of the present invention;
FIG. 2 is a flowchart illustrating a page loading method according to a first embodiment of the present invention;
FIG. 3 is a detailed flowchart of step S102 in the first embodiment of the present invention;
FIG. 4 is a flowchart illustrating a page loading method according to a third embodiment of the present invention;
fig. 5 is a functional module diagram of the first embodiment of the page loading apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The page loading method related by the embodiment of the invention is mainly applied to page loading equipment, and the page loading equipment can be equipment with display and processing functions, such as a PC (personal computer), a portable computer, a mobile terminal and the like.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of a page loading device according to an embodiment of the present invention. In this embodiment of the present invention, the page loading device may include a processor 1001 (e.g., a Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface); the memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as a disk memory, and the memory 1005 may optionally be a storage device separate from the processor 1001. Those skilled in the art will appreciate that the hardware configuration depicted in FIG. 1 is not intended to be limiting of the present invention, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
With continued reference to fig. 1, the memory 1005 of fig. 1, which is one type of readable storage medium, may include an operating system, a network communication module, and a page loader. In fig. 1, the network communication module is mainly used for connecting to a server and performing data communication with the server; the processor 1001 may call a page loading program stored in the memory 1005 and execute the page loading method provided by the embodiment of the present invention.
The embodiment of the invention provides a page loading method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a page loading method according to a first embodiment of the present invention.
In this embodiment, the page loading method is implemented by a page loading device, where the page loading device may be a terminal device such as a PC, a palmtop computer, and a tablet PC, and may be selected as the device shown in fig. 1, and the page loading method includes the following steps:
step S101, when monitoring that a preset application program is started, requesting a server to load page configuration data required by a screen opening sub-page, an advertisement sub-page and an application home page;
step S102, forming a combined application page comprising a screen opening sub-page, an advertisement sub-page and an application home page according to page configuration data;
and step S103, sequentially loading and displaying the screen opening sub-page, the advertisement sub-page and the application home page in the combined application page.
At present, the loading mode of the APP home page is that when the advertisement page is displayed overtime or a user selects to skip the advertisement page, data required by loading the APP home page is requested from a server side, and home page loading is carried out based on the data required by loading the APP home page. In view of the above problems, the present embodiment provides a page loading method, and the specific steps of the page loading method are described in detail as follows:
step S101, when monitoring that a preset application program is started, requesting a server to load page configuration data required by a screen opening sub-page, an advertisement sub-page and an application home page;
in this embodiment, the open-screen subpage, the advertisement subpage and the application home page are designed in one page (Activity), that is, the server is configured with page configuration data required for loading the open-screen subpage, the advertisement subpage and the application home page, and the page configuration data includes card list configuration information and an open-screen subpage tag required for loading the open-screen subpage, card list configuration information and an advertisement subpage tag required for loading the advertisement subpage and card list configuration information and an application home page tag required for loading the application home page, the configuration information of the card includes layout meta information and data meta information, an application page including the open-screen page layer, the advertisement page layer and the application home page layer can be formed by the page configuration data, and the open-screen page layer is located at the highest layer of the application page, the advertisement page layer is located at the middle layer of the application page, and the application home page is located at the lowest layer of the APP page.
In this embodiment, the device is provided with a plurality of application programs, when it is monitored that a preset application program is started, the device requests the server to load page configuration data required by the screen opening subpage, the advertisement subpage and the application home page, that is, when the device monitors that the preset application program is started, the device locally acquires the screen opening subpage tag, the advertisement subpage tag and the application home page tag, generates an acquisition request carrying the page configuration data of the screen opening subpage tag, the advertisement subpage tag and the application home page tag, and sends the acquisition request to the server, the server receives the acquisition request, and returns corresponding page configuration data to the device according to the acquisition request, that is, extracts the screen opening subpage tag, the advertisement subpage tag and the APP home page tag from the acquisition request, and acquires the page configuration data including the screen opening subpage tag, the advertisement subpage tag and the application home page tag from a database of the server, and then returns the page configuration data to the device, and the device receives the page configuration data returned by the server based on the acquisition request.
Step S102, forming a combined application page comprising a screen opening sub-page, an advertisement sub-page and an application home page according to page configuration data;
in this embodiment, after the device requests page configuration data required for loading the open-screen sub-page, the advertisement sub-page, and the application home page from the server, a combined application page including the open-screen sub-page, the advertisement sub-page, and the application home page is formed according to the page configuration data, where the open-screen sub-page is located at a highest layer of the combined application page, the advertisement sub-page is located at an intermediate layer of the combined application page, and the application home page is located at a lowest layer of the combined application page.
Specifically, referring to fig. 2, step S102 includes:
step S1021, obtaining card list configuration information corresponding to the screen opening sub-page, the advertisement sub-page and the application home page from the page configuration data;
in this embodiment, after requesting page configuration data required for loading the screen-opening subpage, the advertisement subpage and the application home page from the server, the device acquires card list configuration information required for loading the screen-opening subpage, the advertisement subpage and the application home page from the page configuration data, specifically, according to the sequence of the screen-opening subpage, the advertisement subpage and the application home page, sequentially acquires card list configuration information required for loading the screen-opening subpage from the page configuration data, that is, card list configuration information including a screen-opening subpage tag, card list configuration information required for loading the advertisement subpage, that is, card list configuration information including an advertisement subpage tag, and card list configuration information required for loading the application home page, that is, card list configuration information including an application home page tag; or simultaneously acquiring card list configuration information of the screen opening sub-page, the advertisement sub-page and the application home page from the page configuration data. The card list configuration information includes layout meta information and data meta information, the layout meta information is used for describing card layouts of the pages, the data meta information is used for filling corresponding card layouts, and the data meta information includes, but is not limited to, numbers, english, chinese, pictures and tab contents.
Step S1022, reading layout meta-information and data meta-information of each card from card list configuration information corresponding to each of the screen opening sub-page, the advertisement sub-page and the application home page;
in this embodiment, the device reads layout meta information and data meta information of each card from card list configuration information corresponding to each of the screen-open subpage, the advertisement subpage, and the application home page, that is, according to the sequence of the screen-open subpage, the advertisement subpage, and the application home page, the layout meta information and the data meta information of each card belonging to the screen-open subpage are read from the card list configuration information, the layout meta information and the data meta information of each card belonging to the advertisement subpage are read from the card list configuration information, and finally the layout meta information and the data meta information of each card belonging to the application home page are read from the card list configuration information.
Step S1023, forming each card layout corresponding to the screen opening sub-page, the advertisement sub-page and the application home page according to the layout meta-information of each card;
in this embodiment, the device forms respective card layouts corresponding to the screen-opening sub-page, the advertisement sub-page, and the application home page according to the layout meta-information of each card, that is, forms respective card layouts belonging to the screen-opening sub-page according to the order of the screen-opening sub-page, the advertisement sub-page, and the application home page, then forms respective card layouts belonging to the advertisement sub-page according to the layout meta-information of each card belonging to the advertisement sub-page, and finally forms respective card layouts belonging to the application home page according to the layout meta-information of each card belonging to the application home page.
Step S1024, filling the data element information corresponding to each card layout into each card layout to form a combined application page comprising a screen-opening subpage, an advertisement subpage and an application home page.
In this embodiment, the device fills data metadata information corresponding to each card layout into each card layout to form a combined application page including a screen-opening subpage, an advertisement subpage and an application home page, that is, according to the sequence of the screen-opening subpage, the advertisement subpage and the application home page, the data metadata information of each card layout belonging to the screen-opening subpage is filled into each card layout belonging to the screen-opening subpage to form the screen-opening subpage, then the data metadata information of each card layout belonging to the advertisement subpage is filled into each card layout belonging to the advertisement subpage to form the advertisement subpage, and finally the data metadata information of each card layout belonging to the application home page is filled into each card layout belonging to the application home page to form the application home page; after the screen-opening sub-page, the advertisement sub-page and the application home page are formed, a combined application page comprising the screen-opening sub-page, the advertisement sub-page and the application home page is formed, at the moment, the screen-opening sub-page is positioned at the highest layer of the combined application page, the advertisement sub-page is positioned at the middle layer of the combined application page, and the application home page is positioned at the lowest layer of the combined application page.
In specific implementation, the current available CPU resource of the equipment is obtained, whether the current available CPU resource exceeds the preset CPU resource or not is determined, if the current available CPU resource exceeds the preset CPU resource, the forming operation of the screen opening sub-page, the advertisement sub-page and the application home page is executed at the same time, and if the current available CPU resource is lower than the preset CPU resource, the forming operation of the screen opening sub-page is executed firstly, then the forming operation of the advertisement sub-page is executed, and then the forming operation of the application home page is executed. It should be noted that the preset CPU resource may be set by a person skilled in the art based on actual situations, and this embodiment is not limited in particular.
And step S103, sequentially loading and displaying the screen opening sub-page, the advertisement sub-page and the application home page in the combined application page.
In this embodiment, after forming the combined application page, the device sequentially loads and displays the screen-opening sub-page, the advertisement sub-page, and the application home page in the combined application page, and specifically, first loads and displays the screen-opening sub-page in the combined application page, that is, the level state of the screen-opening sub-page is set to be a visible state, and the level states of the advertisement sub-page and the application home page are set to be a hidden state; hiding the screen opening sub-page when the display duration of the screen opening sub-page reaches the corresponding display duration, and loading and displaying the advertisement sub-page in the combined application page after the screen opening sub-page is hidden, namely setting the hierarchical states of the screen opening sub-page and the application home page as hidden states, and setting the hierarchical state of the advertisement sub-page as visible states; and when the display duration of the advertisement subpage reaches the corresponding display duration, hiding the advertisement subpage, and after hiding the advertisement subpage, loading and displaying the application home page in the combined application page, namely setting the hierarchical states of the screen opening subpage and the advertisement subpage into a hidden state, and setting the hierarchical state of the application home page into a visible state. And storing the screen opening sub-page, the advertisement sub-page and the application home page in the combined application page to a preset storage area.
In specific implementation, a screen-opening sub-page can be formed according to card list configuration information required by loading the screen-opening sub-page, the screen-opening sub-page is displayed, then an advertisement sub-page is formed according to the card list configuration information required by loading the advertisement sub-page while the screen-opening sub-page is displayed, and the advertisement sub-page is displayed when the display duration of the screen-opening sub-page reaches the corresponding display duration; and forming an application home page according to card list configuration information required by loading the application home page while displaying the advertisement sub-page, and displaying the application home page when the display duration of the advertisement sub-page reaches the corresponding display duration. That is, while one sub-page display operation is performed, another sub-page forming operation is performed.
In this embodiment, when the application program is started, the present invention requests the server to load the page configuration data required by the open-screen subpage, the advertisement subpage, and the application home page, forms a combined application page including the open-screen subpage, the advertisement subpage, and the application home page based on the page configuration data, and then sequentially loads and displays the open-screen subpage, the advertisement subpage, and the application home page in the combined application page.
Further, based on the first embodiment, a second embodiment of the page loading method of the present invention is provided, and the difference from the foregoing embodiment is that before step S101, the page loading method further includes:
step a, determining whether a combined application page comprising a screen-opening sub-page, an advertisement sub-page and an application home page is stored in a preset storage area;
in this embodiment, when it is monitored that a preset application program is started, the device determines whether a combined application page including the screen-opening sub-page, the advertisement sub-page, and the application home page is stored in a preset storage area, that is, determines whether a combined application page including the screen-opening sub-page tag, the advertisement sub-page tag, and the application home page tag is stored in the preset storage area, if a combined application page including the screen-opening sub-page tag, the advertisement sub-page tag, and the application home page tag is stored in the preset storage area, it is not necessary to perform a forming operation of the combined application page, and if a combined application page including the screen-opening sub-page tag, the advertisement sub-page tag, and the application home page tag is not stored in the preset storage area, it is necessary to perform a forming operation of the combined application page.
And b, if a combined application page comprising the screen opening sub-page, the advertisement sub-page and the application home page is stored in the preset storage area, sequentially loading and displaying the screen opening sub-page, the advertisement sub-page and the application home page in the combined application page.
In this embodiment, if a combined application page including a screen-opening sub-page, an advertisement sub-page, and an application home page is stored in a preset storage area, the device sequentially loads and displays the screen-opening sub-page, the advertisement sub-page, and the application home page in the combined application page, specifically, loads and displays the screen-opening sub-page in the combined application page first, that is, sets a level state of the screen-opening sub-page to a visible state, and sets a level state of the advertisement sub-page and the application home page to a hidden state; hiding the screen opening sub-page when the display duration of the screen opening sub-page reaches the corresponding display duration, and loading and displaying the advertisement sub-page in the combined application page after the screen opening sub-page is hidden, namely setting the hierarchical states of the screen opening sub-page and the application home page as hidden states, and setting the hierarchical state of the advertisement sub-page as visible states; hiding the advertisement subpage when the display duration of the advertisement subpage reaches the corresponding display duration, and loading and displaying an application home page in the combined application page after the advertisement subpage is hidden, namely setting the hierarchical states of the screen opening subpage and the advertisement subpage as hidden states, and setting the hierarchical state of the application home page as visible states; and if a combined application page comprising the screen opening sub-page, the advertisement sub-page and the application home page is not stored in the preset storage area, requesting a server to load page configuration data required by the screen opening sub-page, the advertisement sub-page and the application home page, forming a combined application page comprising the screen opening sub-page, the advertisement sub-page and the application home page according to the page configuration data, and then sequentially loading and displaying the screen opening sub-page, the advertisement sub-page and the application home page in the combined application page.
In the embodiment, a combined application page comprising the screen-opening sub-page, the advertisement sub-page and the application home page is stored in the local storage area, so that the combined application page can be quickly acquired from the local storage area when the application program is started, the loading time of the screen-opening sub-page, the advertisement sub-page and the application home page is reduced, and the page jump speed is effectively improved.
Further, referring to fig. 4, a third embodiment of the page loading method of the present invention is proposed based on the first or second embodiment, and the difference from the foregoing embodiment is that after step S103, the page loading method further includes:
step S104, receiving page configuration data of each application page sent by the server, generating each rendering page according to the page configuration data of each application page, and storing each rendering page;
in this embodiment, after the device displays the application home page, it receives page configuration data of each application page sent by the server, generates each display page according to the page configuration data of each application page, and stores each rendering page, that is, based on an issuing order of the page configuration data of each page, executes page composition operation and page rendering operation to generate each rendering page, specifically, based on the issuing order of the page configuration data of each page, sequentially obtains page configuration data of a page, extracts layout meta information from the page configuration data, then generates a layout page according to the layout meta information, extracts data meta information from component configuration data of the page, then fills the data meta information into the layout page to form a display page, renders the display page to obtain a rendering page, and repeatedly executes the above steps to generate each rendering page.
In specific implementation, the current available CPU resource of the equipment is obtained, whether the current available CPU resource exceeds the preset CPU resource is determined, if the current available CPU resource exceeds the preset CPU resource, the number of synchronous execution pages is determined according to the current available CPU resource, namely, a pre-stored mapping relation table of the current available CPU resource and the number of synchronous execution pages is obtained, the number of synchronous execution pages corresponding to the current available CPU resource is inquired from the mapping relation table, and then page composition operation and page rendering operation of the corresponding number of pages are executed according to the number of synchronous execution pages, and each rendering page is generated; and if the current available CPU resource is lower than the preset CPU resource, executing the page composition operation and the page rendering operation of one page each time. The preset CPU resource can be set according to the total CPU resource or set by a user according to specific needs. When the CPU resource does not exceed the preset CPU resource, the number of synchronous pages which can be executed simultaneously can be determined according to the mapping relation between the available CPU resource and the number of synchronous pages, for example, in the mapping relation, when the available CPU resource is less than A, the number of synchronous pages which can be executed simultaneously is 2; when the available CPU resource is more than or equal to A and less than B, the number of the synchronous pages which can be correspondingly executed at the same time is 3; and when the available CPU resource is greater than or equal to B and less than C, the number of the corresponding synchronous pages which can be executed simultaneously is 4, wherein A < B < C.
Step S105, when a page jump instruction is monitored, reading a corresponding rendering page from each rendering page according to the page jump instruction, and displaying the rendering page.
In this embodiment, when a triggered page jump instruction is monitored, the device reads a corresponding rendering page from each rendering page according to the page jump instruction, and displays the rendering page, that is, queries and queries a mapping relationship table between a pre-stored page jump instruction and a rendering page, acquires the rendering page corresponding to the page jump instruction, and displays the rendering page. In specific implementation, when a triggered page jump instruction is monitored, whether a corresponding rendering page exists in each stored rendering page is determined, if the corresponding rendering page does not exist in each stored rendering page, page configuration data of the corresponding page is requested from a server, a display page is formed based on the page configuration data, then the display page is rendered, and the rendered display page is displayed. Further, when the page configuration data in the server is updated, the rendering pages in the equipment are synchronously updated.
In the embodiment, each rendering page is stored in the local device, so that when a page jump instruction is monitored, a corresponding rendering page is rapidly selected from the rendering pages stored in the local device for display, and the jump fluency among the pages is effectively improved.
Further, based on the first, second, or third embodiment, a fourth embodiment of the page loading method of the present invention is provided, and the difference from the foregoing embodiment is that the page loading method further includes:
and step c, receiving a page updating request sent by the server, and updating the combined application page stored in the preset storage area according to the page configuration updating data in the page updating request.
In this embodiment, the device receives a page update request sent by the server, and updates the composite application page stored in the preset storage area according to the page configuration update data in the page update request, that is, reads the page configuration update data from the page update request, and updates the composite application page stored in the preset storage area according to the card list configuration information in the page configuration update data.
Specifically, according to a page level tag in the page configuration updating data, determining a sub-page to be updated stored in a combined application page in a preset storage area, namely extracting at least one page level tag from the page configuration updating data, and determining a sub-page corresponding to the at least one page level tag as at least one sub-page to be updated; updating the sub-page to be updated in the combined application page according to the card list configuration information of the sub-page to be updated in the page configuration updating data, namely extracting card list configuration information corresponding to the hierarchical level label from the page configuration updating data, reading layout meta-information and data meta-information of each card from the card list configuration information, forming the layout of each card according to the layout meta-information of each card, finally correspondingly filling the layout of each card according to the data meta-information of each card, thereby forming an updating sub-page, and replacing the sub-page to be updated with the updating sub-page to realize the updating of the combined application page.
The specific determination mode of the sub-page to be updated is as follows: acquiring at least one page level tag from the page configuration updating data, and determining whether the at least one page level tag is at least one of a screen-opening sub-page tag, an advertisement sub-page tag and an application home page tag, wherein if the page level tag is one and the page level tag is the screen-opening page tag, the advertisement page tag or the APP home page tag, the sub-page to be updated is the screen-opening page tag, the advertisement page tag or the APP home page tag; if the number of the page level tags is two, and the two page level tags are respectively an open screen sub-page tag and an advertisement sub-page tag, or an advertisement sub-page tag and an application home page tag, or an open screen sub-page tag and an application home page tag, the sub-page to be updated comprises an open screen sub-page and an advertisement sub-page, or an advertisement sub-page and an application home page, or an open screen sub-page and an application home page; if the number of the page level tags is three, the sub-page to be updated comprises an open screen sub-page, an advertisement sub-page and an application home page.
In this embodiment, when the page configuration data required by the screen opening sub-page, the advertisement sub-page and the application home page loaded in the server is updated, the corresponding combined application page stored in the local device can be synchronously updated.
In addition, the embodiment of the invention also provides a page loading device.
Referring to fig. 5, fig. 5 is a functional module diagram of the page loading apparatus according to the first embodiment of the present invention.
The page loading apparatus of the present invention is a virtual apparatus, and is stored in the memory 1005 of the page loading device shown in fig. 1, and is used for implementing all functions of a page loading program; when the preset application program is monitored to be started, requesting a server to load page configuration data required by a screen opening sub-page, an advertisement sub-page and an application home page; forming a combined application page comprising a screen opening sub-page, an advertisement sub-page and an application home page according to the page configuration data; and sequentially loading and displaying the screen opening sub-page, the advertisement sub-page and the application home page in the combined application page.
Specifically, in this embodiment, the page loading apparatus includes:
the request module 101 is configured to request the server to load page configuration data required by the screen-opening subpage, the advertisement subpage and the application home page when it is monitored that the preset application program is started;
the page forming module 102 is configured to form a combined application page including a screen-opening sub-page, an advertisement sub-page, and an application home page according to the page configuration data;
and the loading display module 103 is used for sequentially loading and displaying the screen opening sub-page, the advertisement sub-page and the application home page in the combined application page.
Further, the page forming module 102 is further configured to:
card list configuration information corresponding to the screen opening sub-page, the advertisement sub-page and the application home page is obtained from the page configuration data;
and forming a combined application page comprising the screen opening sub-page, the advertisement sub-page and the application home page according to the card list configuration information corresponding to the screen opening sub-page, the advertisement sub-page and the application home page respectively.
Further, the loading display module 103 is further configured to:
loading and displaying an open-screen sub-page in the combined application page, and hiding the open-screen sub-page when the display duration of the open-screen sub-page reaches the corresponding display duration;
after the open sub-page is hidden, loading and displaying an advertisement sub-page in the combined application page, and hiding the advertisement sub-page when the display duration of the advertisement sub-page reaches the corresponding display duration;
and after hiding the advertisement subpage, loading and displaying an application home page in the combined application page.
Further, the page loading device further includes:
the determining module is used for determining whether a combined application page comprising a screen-opening sub-page, an advertisement sub-page and an application home page is stored in a preset storage area;
the loading display module 103 is further configured to, if a combined application page including a screen-opening sub-page, an advertisement sub-page, and an application home page is stored in the preset storage area, sequentially load and display the screen-opening sub-page, the advertisement sub-page, and the application home page in the combined application page;
the request module 101 is further configured to request the server to load page configuration data required by the screen-opening sub-page, the advertisement sub-page, and the application home page if a combined application page including the screen-opening sub-page, the advertisement sub-page, and the application home page is not stored in the preset storage area.
Further, the page loading device further includes:
the page rendering module is used for receiving page configuration data of each application page sent by the server, generating each rendering page according to the page configuration data of each application page, and storing each rendering page;
and the display module is used for reading the corresponding rendering page from each rendering page according to the page jump instruction and displaying the rendering page when the page jump instruction is monitored.
Further, the page loading device further includes:
and the page updating module is used for receiving a page updating request sent by the server and updating the combined application page stored in the preset storage area according to the page configuration updating data in the page updating request.
Further, the page update module is further configured to:
determining a sub-page to be updated stored in the combined application page in a preset storage area according to the page level label in the page configuration updating data
And updating the sub-page to be updated in the combined application page according to the card list configuration information of the sub-page to be updated in the page configuration updating data.
The function implementation of each module in the page loading apparatus corresponds to each step in the page loading method embodiment, and the functions and implementation processes thereof are not described in detail herein.
In addition, the embodiment of the invention also provides a readable storage medium.
The readable storage medium of the present invention stores a page loading program, wherein the page loading program, when executed by a processor, implements the steps of the page loading method as described above.
The method for implementing the page loading program when executed may refer to various embodiments of the page loading method of the present invention, and details thereof are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or the portions contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (7)

1. A page loading method is characterized by comprising the following steps:
when the preset application program is monitored to be started, requesting a server to load page configuration data required by a screen opening sub-page, an advertisement sub-page and an application home page, wherein the page configuration data comprises card list configuration information and a screen opening sub-page tag required by loading the screen opening sub-page, card list configuration information and an advertisement sub-page tag required by loading the advertisement sub-page and card list configuration information and an application home page tag required by loading the application home page;
forming a combined application page comprising a screen opening sub-page, an advertisement sub-page and an application home page according to the page configuration data;
sequentially loading and displaying an open screen sub-page, an advertisement sub-page and an application home page in the combined application page;
the requesting of the server for loading the page configuration data required by the screen opening sub-page, the advertisement sub-page and the application home page includes:
acquiring an open sub-page tag, an advertisement sub-page tag and an application home page tag from the local, and generating an acquisition request of page configuration data carrying the open sub-page tag, the advertisement sub-page tag and the application home page tag;
after the step of sequentially loading and displaying the screen opening sub-page, the advertisement sub-page and the application home page in the combined application page, the method further comprises the following steps:
receiving page configuration data of each application page sent by a server, generating each rendering page according to the page configuration data of each application page, and storing each rendering page;
when a page jump instruction is monitored, reading a corresponding rendering page from each rendering page according to the page jump instruction, and displaying the rendering page;
after the step of sequentially loading and displaying the open sub-page, the advertisement sub-page and the application home page in the combined application page, the method further comprises the following steps:
receiving a page updating request sent by a server, and updating a combined application page stored in a preset storage area according to page configuration updating data in the page updating request;
the step of updating the combined application page stored in the preset storage area according to the page configuration updating data in the page updating request comprises the following steps:
determining a sub-page to be updated stored in a combined application page in a preset storage area according to a page level tag in the page configuration updating data;
updating the sub-page to be updated in the combined application page according to the card list configuration information of the sub-page to be updated in the page configuration updating data;
the receiving page configuration data of each application page sent by the server, and generating each rendering page according to the page configuration data of each application page, includes:
acquiring a mapping relation table of the pre-stored current available CPU resource and the number of the synchronous execution pages, inquiring the number of the synchronous execution pages corresponding to the current available CPU resource from the mapping relation table, and then executing page composition operation and page rendering operation of the corresponding number of pages according to the number of the synchronous execution pages to generate each rendering page; if the current available CPU resource is lower than the preset CPU resource, executing the page composition operation and the page rendering operation of one page each time;
the updating the sub-page to be updated in the combined application page according to the card list configuration information of the sub-page to be updated in the page configuration updating data includes:
extracting at least one page level label from the page configuration updating data, and determining a sub-page corresponding to the at least one page level label as at least one sub-page to be updated; extracting card list configuration information corresponding to the hierarchical tags from the page configuration updating data, reading layout meta information and data meta information of each card from the card list configuration information, forming each card layout according to the layout meta information of each card, finally filling each card layout correspondingly according to the data meta information of each card, thereby forming an updating sub-page, and replacing the sub-page to be updated with the updating sub-page to realize the updating of the combined application page.
2. The page loading method according to claim 1, wherein the step of forming a combined application page including an open sub-page, an advertisement sub-page and an application home page according to the page configuration data comprises:
acquiring card list configuration information corresponding to the screen opening sub-page, the advertisement sub-page and the application home page from the page configuration data;
reading layout meta-information and data meta-information of each card from card list configuration information corresponding to each of the screen opening sub-page, the advertisement sub-page and the application home page;
forming respective corresponding card layouts of the screen opening sub-page, the advertisement sub-page and the application home page according to the layout meta-information of each card;
and filling the data element information corresponding to each card layout into each card layout to form a combined application page comprising a screen-opening sub-page, an advertisement sub-page and an application home page.
3. The page loading method according to claim 1, wherein said step of sequentially loading and displaying the open sub-page, the advertisement sub-page and the application home page in the combined application page comprises:
loading and displaying an open-screen sub-page in the combined application page, and hiding the open-screen sub-page when the display duration of the open-screen sub-page reaches the corresponding display duration;
after the open sub-page is hidden, loading and displaying an advertisement sub-page in the combined application page, and hiding the advertisement sub-page when the display duration of the advertisement sub-page reaches the corresponding display duration;
and after hiding the advertisement subpage, loading and displaying an application home page in the combined application page.
4. The page loading method according to any one of claims 1 to 3, wherein said step of requesting the server for loading the page configuration data required for the open sub-page, the advertisement sub-page and the application top page further comprises:
determining whether a combined application page comprising a screen-opening sub-page, an advertisement sub-page and an application home page is stored in a preset storage area;
if a combined application page comprising a screen opening sub-page, an advertisement sub-page and an application home page is stored in a preset storage area, sequentially loading and displaying the screen opening sub-page, the advertisement sub-page and the application home page in the combined application page;
if a combined application page comprising a screen-opening sub-page, an advertisement sub-page and an application home page is not stored in the preset storage area, executing the following steps: and requesting the server to load page configuration data required by the screen opening sub-page, the advertisement sub-page and the application home page.
5. A page loading apparatus, characterized in that the page loading apparatus comprises:
the system comprises a request module, a server and a display module, wherein the request module is used for requesting to load page configuration data required by an open screen sub-page, an advertisement sub-page and an application home page when the preset application program is monitored to be started, and the page configuration data comprises card list configuration information and an open screen sub-page tag required by loading the open screen sub-page, card list configuration information and an advertisement sub-page tag required by loading the advertisement sub-page and card list configuration information and an application home page tag required by loading the application home page;
the page forming module is used for forming a combined application page comprising a screen opening sub-page, an advertisement sub-page and an application home page according to the page configuration data;
the loading display module is used for sequentially loading and displaying the screen opening sub-page, the advertisement sub-page and the application home page in the combined application page;
the request module is also used for locally acquiring an open screen sub-page tag, an advertisement sub-page tag and an application home page tag and generating an acquisition request of page configuration data carrying the open screen sub-page tag, the advertisement sub-page tag and the application home page tag;
the page loading device further comprises:
the page rendering module is used for receiving page configuration data of each application page sent by the server, generating each rendering page according to the page configuration data of each application page, and storing each rendering page;
the display module is used for reading a corresponding rendering page from each rendering page according to a page jump instruction when the page jump instruction is monitored, and displaying the rendering page;
the page loading device further comprises:
the page updating module is used for receiving a page updating request sent by a server and updating a combined application page stored in a preset storage area according to page configuration updating data in the page updating request;
the page updating module is further configured to determine a sub-page to be updated stored in a combined application page in a preset storage area according to a page level tag in the page configuration updating data; updating the sub-page to be updated in the combined application page according to the card list configuration information of the sub-page to be updated in the page configuration updating data;
the page rendering module is further configured to obtain a mapping relationship table of prestored current available CPU resources and numbers of synchronously executed pages, query the numbers of synchronously executed pages corresponding to the current available CPU resources from the mapping relationship table, and then execute page composition operations and page rendering operations of a corresponding number of pages according to the numbers of synchronously executed pages to generate rendered pages; if the current available CPU resource is lower than the preset CPU resource, executing the page composition operation and the page rendering operation of one page each time;
the page updating module is further configured to extract at least one page level tag from the page configuration updating data, and determine a sub-page corresponding to the at least one page level tag as at least one sub-page to be updated; extracting card list configuration information corresponding to the hierarchical tags from the page configuration updating data, reading layout meta information and data meta information of each card from the card list configuration information, forming each card layout according to the layout meta information of each card, finally filling each card layout correspondingly according to the data meta information of each card, thereby forming an updating sub-page, and replacing the sub-page to be updated with the updating sub-page to realize the updating of the combined application page.
6. A page loading device, characterized in that the page loading device comprises a processor, a memory, and a page loader stored on the memory and executable by the processor, wherein the page loader, when executed by the processor, implements the steps of the page loading method according to any one of claims 1 to 4.
7. A readable storage medium having a page loader stored thereon, wherein the page loader when executed by a processor implements the steps of the page loading method as recited in any one of claims 1 to 4.
CN201810947641.6A 2018-08-17 2018-08-17 Page loading method, device, equipment and readable storage medium Active CN110020325B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810947641.6A CN110020325B (en) 2018-08-17 2018-08-17 Page loading method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810947641.6A CN110020325B (en) 2018-08-17 2018-08-17 Page loading method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110020325A CN110020325A (en) 2019-07-16
CN110020325B true CN110020325B (en) 2023-04-11

Family

ID=67188382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810947641.6A Active CN110020325B (en) 2018-08-17 2018-08-17 Page loading method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110020325B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413907A (en) * 2019-07-26 2019-11-05 北京昆仑万维科技股份有限公司 For showing method, apparatus, equipment and the computer-readable medium of applying homepage
CN111198996A (en) * 2019-12-20 2020-05-26 上海淇玥信息技术有限公司 Page display method and device and electronic equipment
CN111198725B (en) * 2019-12-30 2023-02-28 掌阅科技股份有限公司 Application starting processing method, computing equipment and computer storage medium
CN112286587A (en) * 2020-06-29 2021-01-29 上海柯林布瑞信息技术有限公司 Data visualization page loading method and device, server, client and medium
CN112099873B (en) * 2020-09-15 2023-06-02 广州华多网络科技有限公司 Application program home page loading method, device, equipment and storage medium
CN115640477A (en) * 2022-08-26 2023-01-24 百度在线网络技术(北京)有限公司 Content recommendation method, device, equipment, medium and product of application program home page
CN117130692B (en) * 2023-10-23 2024-01-23 成都赛力斯科技有限公司 Application management method, device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020794A (en) * 2016-05-10 2016-10-12 浪潮软件股份有限公司 Layout method of complex page portal page

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8326686B2 (en) * 2006-03-30 2012-12-04 Google Inc. Automatically generating ads and ad-serving index
US8301728B2 (en) * 2006-07-21 2012-10-30 Yahoo! Inc. Technique for providing a reliable trust indicator to a webpage
US9335921B2 (en) * 2011-06-10 2016-05-10 Amx Llc Providing subpages in a touch panel user interface
CN106354873B (en) * 2015-09-22 2019-12-20 广州神马移动信息科技有限公司 Webpage loading method, device and system
CN107402781B (en) * 2017-06-26 2020-10-27 珠海大横琴科技发展有限公司 Open screen page display management method, terminal and computer readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020794A (en) * 2016-05-10 2016-10-12 浪潮软件股份有限公司 Layout method of complex page portal page

Also Published As

Publication number Publication date
CN110020325A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
CN110020325B (en) Page loading method, device, equipment and readable storage medium
CA2769981C (en) Information display device, information display method, information display program, recording medium and information display system
CN112114913B (en) Application program interface updating method and device, computer equipment and storage medium
CN109361948B (en) Interface management method, intelligent terminal and readable storage medium
CN107015801B (en) Webpage display method and application terminal
CN106649497B (en) Webpage display method and device
CN113568699B (en) Content display method, device, equipment and storage medium
CN108197024B (en) Embedded browser debugging method, debugging terminal and computer readable storage medium
CN110046072A (en) Monitoring method, device, terminal and the readable storage medium storing program for executing of the page
CN111367518A (en) Page layout method and device, computing equipment and computer storage medium
CN111737618A (en) Vector diagram display method and device for Web end and computer equipment
CN112035198A (en) Home page loading method, television and storage medium
CN111625312A (en) APP skin changing method and device, electronic equipment and storage medium
CN108156534B (en) Method and device for generating demonstration application and computer readable storage medium
CN112307377A (en) Information display method and device and electronic equipment
CN111125205A (en) Signboard data display method, terminal and storage medium
CN111538553B (en) Dual-core Web desktop application access processing method and device and storage medium
CN113468450A (en) Page control method and device
CN112328940A (en) Method and device for embedding transition page into webpage, computer equipment and storage medium
US20070121145A1 (en) System and program for displaying device information using browser
CN116644252A (en) Page loading method and device, electronic equipment and storage medium
CN114064774A (en) Application program list view loading method, device, equipment and storage medium
CN115964588A (en) Webpage display method and device, electronic equipment and storage medium
CN112632417A (en) Data processing method, data processing device, storage medium and electronic equipment
CN117908947A (en) Platform information configuration method, device, equipment and storage medium

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