Page data loading method and device

By configuring multiple logical nodes and their priority data loading logic for the page, the problem of too long loading time for large data floors is solved, and data is loaded in sequence according to importance, improving the page display effect and user experience.

CN119690538APending Publication Date: 2025-03-25BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411803217.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-09
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

In Internet mobile applications, the amount of data on some floors is large, which leads to too long loading time, affects the user experience, and may lead to the undisplayed important data.

Method used

By responding to the loading instruction triggered by the user, the data loading logic pre-configured for the current page is obtained. The data loading logic includes multiple logical nodes and their respective corresponding priority levels. Load the data to be loaded for multiple logical nodes according to the priority order, and determine the next logical node after loading to continue loading.

Benefits of technology

The data loading is realized in sequence according to the importance of page data, so that the page display effect is in line with expectations, and at the same time, the user's page browsing experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690538A_ABST
    Figure CN119690538A_ABST
Patent Text Reader

Abstract

The invention discloses a page data loading method and device, and relates to the technical field of page data loading. The specific implementation mode of the method comprises the steps that in response to a loading instruction triggered by a user for a current page, data loading logic pre-configured for the current page is obtained, and the data loading logic comprises a plurality of logic nodes and priorities corresponding to the logic nodes respectively; the priority is determined according to the to-be-loaded data corresponding to each logic node; loading the to-be-loaded data corresponding to the plurality of logic nodes according to the priority sequence; wherein in the process of loading the to-be-loaded data corresponding to the current logic node, whether loading of the to-be-loaded data corresponding to the current logic node is completed or not is determined, if yes, the next logic node is determined, and the to-be-loaded data corresponding to the next logic node is obtained and loaded. According to the embodiment, data loading is sequentially carried out according to the importance of the page data, so that the page display effect conforms to expectation, and the page browsing experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of page data loading, and in particular to a page data loading method and device. Background Art

[0002] At present, in Internet mobile applications (applications, applets, etc.), in order to display pages, it is usually necessary to use floor-based components to build display pages. Among them, due to the large amount of data on individual floors, the data needs to be loaded through scrolling paging within the floor; when there are many floors, it is also necessary to load the floors through scrolling paging, and display the floors and pages sequentially.

[0003] However, when the amount of data in one of the floors is large, the loading time for this floor is too long, and other important floors have no chance to be displayed within the user's limited waiting time; if this floor is placed at the end, the important data in this floor may not have a chance to be displayed, thus affecting the page display effect and also affecting the user experience. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a method and device for loading page data, including: in response to a loading instruction for a current page triggered by a user, obtaining a data loading logic pre-configured for the current page, the data loading logic including multiple logical nodes and their corresponding priorities; the priority is determined according to the data to be loaded corresponding to each logical node; the data to be loaded corresponding to the multiple logical nodes are loaded according to the priority order; wherein, in the process of loading the data to be loaded corresponding to the current logical node, it is determined whether the data to be loaded corresponding to the current logical node is loaded completely, and when the data to be loaded corresponding to the current logical node is loaded completely, the next logical node corresponding to the current logical node is determined, and the data to be loaded corresponding to the next logical node is obtained and loaded. Thus, the loading process of the page data is decomposed into multiple logical nodes, and the page data is separated into multiple data to be loaded corresponding to the multiple logical nodes one by one, priorities are set for the multiple logical nodes and the corresponding data to be loaded according to the importance of the multiple data to be loaded, and the data to be loaded corresponding to the multiple logical nodes are loaded in sequence according to the priority order, thereby realizing the sequential loading of data according to the importance of the page data, so that the page display effect meets expectations, and at the same time improves the user's page browsing experience.

[0005] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for loading page data is provided.

[0006] A method for loading page data according to an embodiment of the present invention comprises: in response to a loading instruction for a current page triggered by a user, obtaining a data loading logic pre-configured for the current page, the data loading logic comprising a plurality of logic nodes and their respective corresponding priorities; the priority is determined according to the data to be loaded corresponding to each logic node; the data to be loaded corresponding to the plurality of logic nodes are loaded according to the priority order; wherein, in the process of loading the data to be loaded corresponding to the current logic node, determining whether the data to be loaded corresponding to the current logic node has been loaded, and in the case that the data to be loaded corresponding to the current logic node has been loaded, determining a next logic node corresponding to the current logic node, and obtaining and loading the data to be loaded corresponding to the next logic node.

[0007] Optionally, the data loading logic also includes a priority identifier corresponding to each logical node, a floor identifier to which the data to be loaded corresponds to each logical node, and a sub-page identifier corresponding to the data to be loaded within the floor; each priority identifier corresponds to one or more logical nodes; and one or more logical nodes correspond to different floor identifiers, respectively.

[0008] Optionally, determining the next logical node corresponding to the current logical node includes: determining a current priority identifier corresponding to the current logical node; determining whether there is an unexecuted logical node whose priority corresponds to the current priority identifier; if there is an unexecuted logical node, determining the unexecuted logical node as the next logical node; if there is no unexecuted logical node, determining a logical node of the next priority corresponding to the current priority identifier as the next logical node.

[0009] Optionally, a logical node of the next priority level corresponding to the current priority identifier is determined as the next logical node, including: when there are multiple logical nodes of the next priority level, determining the floor identifiers corresponding to the multiple logical nodes respectively; and according to the data loading order indicated by the floor identifier, determining a logical node with a front data loading order from the multiple logical nodes and using it as the next logical node.

[0010] Optionally, determining whether the data to be loaded corresponding to the current logical node has been loaded includes: determining the first floor identifier and the first sub-page identifier corresponding to the current logical node; determining the first sub-page data corresponding to the first floor identifier and the first sub-page identifier; and determining whether the first sub-page data has been loaded.

[0011] Optionally, determining whether the first sub-page data has been loaded includes: determining the distance between the bottom of the last page displayed after loading the first sub-page data and the bottom edge of the page window; judging whether the distance is not greater than a preset threshold; if the distance is not greater than the preset threshold, determining that the first sub-page data has been loaded.

[0012] Optionally, obtaining and loading the data to be loaded corresponding to the next logical node includes: determining the second floor identifier and the second sub-page identifier corresponding to the next logical node; determining the second sub-page data indicated by the second sub-page identifier in the floor indicated by the second floor identifier; and obtaining and loading the second sub-page data.

[0013] Optionally, the method provided by the present invention also includes: dividing the page data corresponding to the current page into multiple floors; dividing the page data corresponding to each floor into multiple sub-page data; and configuring data loading logic for the current page according to the importance corresponding to the floors and the multiple sub-page data.

[0014] To achieve the above objective, according to another aspect of an embodiment of the present invention, a device for loading page data is provided.

[0015] A page data loading device according to an embodiment of the present invention includes: a loading logic acquisition module, which is used to respond to a loading instruction for a current page triggered by a user, and obtain a data loading logic pre-configured for the current page, wherein the data loading logic includes multiple logic nodes and their corresponding priorities; the priority is determined according to the data to be loaded corresponding to each logic node; a page data loading module, which is used to load the data to be loaded corresponding to the multiple logic nodes according to the priority order; wherein, in the process of loading the data to be loaded corresponding to the current logic node, it is determined whether the data to be loaded corresponding to the current logic node has been loaded, and when the data to be loaded corresponding to the current logic node has been loaded, the next logic node corresponding to the current logic node is determined, and the data to be loaded corresponding to the next logic node is obtained and loaded.

[0016] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device for loading page data is provided.

[0017] An electronic device for loading page data according to an embodiment of the present invention comprises: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement a method for loading page data according to an embodiment of the present invention.

[0018] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided.

[0019] A computer-readable storage medium according to an embodiment of the present invention stores a computer program, and when the program is executed by a processor, a method for loading page data according to an embodiment of the present invention is implemented.

[0020] An embodiment of the above invention has the following advantages or beneficial effects: by responding to the loading instruction for the current page triggered by the user, the data loading logic pre-configured for the current page is obtained, and the data loading logic includes multiple logical nodes and their corresponding priorities; the priority is determined according to the data to be loaded corresponding to each logical node; the data to be loaded corresponding to the multiple logical nodes are loaded according to the priority order; wherein, in the process of loading the data to be loaded corresponding to the current logical node, it is determined whether the data to be loaded corresponding to the current logical node is loaded completely, and when the data to be loaded corresponding to the current logical node is loaded completely, the next logical node corresponding to the current logical node is determined, and the data to be loaded corresponding to the next logical node is obtained and loaded. Thus, the loading process of the page data is decomposed into multiple logical nodes, and the page data is separated into multiple data to be loaded corresponding to the multiple logical nodes one by one, and priorities are set for the multiple logical nodes and the corresponding data to be loaded according to the importance of the multiple data to be loaded, and the data to be loaded corresponding to the multiple logical nodes are loaded in sequence according to the priority order, so that the data is loaded in sequence according to the importance of the page data, so that the page display effect meets expectations, and the user's page browsing experience is improved at the same time.

[0021] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0023] Figure 1 is a flow chart of a method for loading page data according to an embodiment of the present invention;

[0024] Figure 2 is a schematic diagram of data loading logic of a current page according to an embodiment of the present invention;

[0025] Figure 3 is a schematic diagram of a logic for judging whether a loading page corresponding to a current logic node has reached the bottom according to an embodiment of the present invention;

[0026] Figure 4 is a schematic diagram of a data loading process of each logical node of a current page according to an embodiment of the present invention;

[0027] Figure 5 is a flow chart of another method for loading page data according to an embodiment of the present invention;

[0028] Figure 6 is a schematic diagram of main modules of a device for loading page data according to an embodiment of the present invention;

[0029] Figure 7 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0030] Figure 8 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0031] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0032] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.

[0033] It should be pointed out that the embodiments of the present invention and the technical features therein may be combined with each other without conflict.

[0034] Figure 1 4 is a schematic diagram of main steps of a method for loading page data according to an embodiment of the present invention.

[0035] like Figure 1 As shown, the method for loading page data in the embodiment of the present invention mainly includes steps S101-S102:

[0036] Step S101: in response to a loading instruction for the current page triggered by a user, obtain a data loading logic pre-configured for the current page, the data loading logic including a plurality of logic nodes and their corresponding priorities; the priority is determined according to the data to be loaded corresponding to each logic node.

[0037] In this embodiment, the method for loading page data of this embodiment is described in detail by taking the product details page of a product browsed by a user on an e-commerce website as an example. Among them, the current page refers to the entire product details page. The loading instruction for the current page refers to the user using the page navigation key to control the page to scroll up or slide, or it may refer to the user sliding the page display screen upward with his finger. Different pages correspond to different page data, and the page display effects to be achieved are also different, so different data loading logics need to be pre-configured for different pages. In the case where the data display effect needs to be adjusted later, the corresponding data loading logic can be modified. In order to conveniently and flexibly control the data loading of the current page, the data loading logic of the current page is divided into multiple logical nodes, and the page data of the current page is divided into multiple data to be loaded, so that multiple logical nodes correspond to multiple data to be loaded one by one, and the corresponding priorities are set for multiple logical nodes according to the importance of each of the multiple data to be loaded. When the user triggers the loading instruction for the current page, the data loading logic corresponding to the current page is obtained, so as to load the corresponding data to be loaded in sequence according to the priority order of the multiple logical nodes, so as to display the current page.

[0038] In actual page development, due to various restrictions, it may sometimes be impossible to completely divide the page data according to importance, such as setting data of different importance in separate floor components, and sorting multiple floor components according to the importance of the divided data, and then loading each floor component in sequence according to the sorting. In order to cope with the above situation, and in this case effectively improve the flexibility of data loading, the page data is divided into multiple floors and the data in the floor is divided into multiple sub-pages according to the required display effect and the specific content of the page data. In an optional embodiment of the present invention, the method provided in this embodiment also includes: dividing the page data corresponding to the current page into multiple floors; dividing the page data corresponding to each floor into multiple sub-page data; configuring data loading logic for the current page according to the importance corresponding to the floor and the multiple sub-page data. For example, the page data of some product details pages involves the following parts: specification parameters, activity areas, in-store products, product introductions, service content, etc. According to the relevance of data content or the need of page development, floor segmentation is performed. Data with high relevance can be set on the same floor. For example, the page data corresponding to the specification parameters and service content is set to floor 1, that is, the floor identification of this floor is 1; the page data corresponding to the activity area and the in-store goods is set to floor 2, that is, the floor identification is 2; the content corresponding to the product introduction is set to floor 3, that is, the floor identification is 3. Further, the data in each floor can be further divided into sub-page data. For example, the specification parameter part in floor 1 can be set to sub-page 1, and the service content part can be set to sub-page 2. In other words, sub-page 1 in floor 1 is the specification parameter part, and sub-page 2 in floor 1 is the service content part. In other words, the logical node corresponding to the page data of the specification parameter part has a floor identification of 1 and a sub-page identification of 1. The activity area part in floor 2 can be set to sub-page 1 and the in-store goods part can be set to sub-page 2. It can be understood that the activity area part and the in-store goods part can also be set in the same sub-page. The product introduction part in floor 3 can include one or more sub-pages. Here, it is assumed that floor 3 includes 20 sub-pages.

[0039] Some subpages on the same floor need to be displayed first, and some need to be displayed later. In order to realize flexible control of the display order of different subpages on different floors, in an optional embodiment of the present invention, the data loading logic also includes a priority identifier corresponding to each logical node, and a floor identifier to which the data to be loaded belongs corresponding to each logical node, and a subpage identifier corresponding to the data to be loaded in the floor; each priority identifier corresponds to one or more logical nodes; one or more logical nodes correspond to different floor identifiers. After the current page is divided into multiple floors and each floor is divided into multiple subpages, the priorities corresponding to multiple logical nodes are set according to the importance of the floors and subpages. For example, according to the required page display effect, the display order of each part is as follows: specification parameters, activity area + in-store goods, product introduction, service content, then four logical nodes can be set, and the four logical nodes correspond to the specification parameters, activity area + in-store goods, product introduction, and service content one by one. Furthermore, the priorities and data to be loaded corresponding to the four logical nodes can be represented in the form of an array, such as [1, 1, 1], [2, 2, 2], [2, 3, 20], and [3, 1,2], wherein the first number in the ternary array is the priority identifier of the corresponding logical node, the second number is the floor identifier of the data to be loaded corresponding to the logical node, and the third number is the maximum sub-page identifier corresponding to the data to be loaded, which indicates that when the data loading of the logical node is executed, the sub-page indicated by this number is loaded. For example, the sub-page identifier is 1, which indicates that the data loading this time is loaded from the starting end of the corresponding floor to sub-page 1; for another example, when the data loading of the logical node [2, 3,20] is executed, it is loaded from the starting end of floor 3 to sub-page 20; for another example, when the data loading of the logical node [3, 1, 2] is executed, since sub-page 1 of floor 1 has been loaded before, the data in floor 1 is loaded next, and loaded to sub-page 2, that is, only sub-page 2 is loaded. Therefore, the range of sub-pages loaded for each logical node depends on which sub-page the last data loading was executed on. This loading continues from the sub-page loaded last time. For example, if the last data loading was to sub-page 5, this loading starts from sub-page 6. The data loading logic of the current page is as follows: Figure 2 As shown, in this embodiment, data loading is performed according to the priority order of the logical nodes, and the priority order is determined by the priority identifier and the floor identifier, wherein the dotted line indicates the bottom of the page window.

[0040] In this embodiment, among the four logical nodes [1, 1, 1], [2, 2, 2], [2, 3, 20], and [3, 1, 2], the priority identifier of [1, 1, 1] is 1, and its corresponding priority is the highest. Therefore, the data to be loaded of the logical node [1, 1, 1] is loaded first, where the data to be loaded is the sub-page data corresponding to the sub-page 1 in the floor 1, that is, the data content corresponding to the specification parameter part.

[0041] Step S102: Loading the data to be loaded corresponding to the multiple logical nodes according to the priority order; wherein, in the process of loading the data to be loaded corresponding to the current logical node, determining whether the data to be loaded corresponding to the current logical node has been loaded, and when the data to be loaded corresponding to the current logical node has been loaded, determining the next logical node corresponding to the current logical node, and obtaining and loading the data to be loaded corresponding to the next logical node.

[0042] Among them, the priority order of the logical node is determined according to the priority identifier and the floor identifier. Specifically, the priority order is first determined according to the priority identifier. When the priority identifiers are the same, the priority order is determined according to the floor identifier. After obtaining the data loading logic of the current page, the corresponding data to be loaded is loaded in sequence according to the priority order of multiple logical nodes. For example, the logical node with the highest priority is loaded first, such as [1, 1, 1], that is, the current logical node is [1, 1, 1]. After the data loading corresponding to the current logical node [1, 1, 1] is completed, the next logical node is determined according to the priority. Since the priority identifier of the current logical node is 1, the priority identifier of the next priority is 2, so the logical nodes of the next priority are determined to be two [2, 2, 2] and [2, 3, 20]. The next logical node of the current node is determined from the two logical nodes, and the data loading of the next logical node is executed.

[0043] In order to realize the switching of logical nodes during the data loading process, it is necessary to monitor whether the data loading of the current logical node has been completed. In an optional embodiment of the present invention, determining whether the data to be loaded corresponding to the current logical node has been loaded includes: determining the first floor identifier and the first sub-page identifier corresponding to the current logical node; determining the first sub-page data corresponding to the first floor identifier and the first sub-page identifier; determining whether the first sub-page data has been loaded. In order to determine whether the data loading of the current logical node has been completed, it is first necessary to know the data to be loaded corresponding to the current logical node. Therefore, the corresponding data to be loaded can be determined by the floor identifier and the sub-page identifier corresponding to the logical node, and then it is determined whether the data to be loaded has been loaded.

[0044] In order to accurately determine whether the data loading of the current logical node has been completed, in an optional embodiment of the present invention, determining whether the first sub-page data has been loaded includes: determining the distance between the bottom of the last page of the page displayed after loading the first sub-page data and the bottom edge of the page window; judging whether the distance is not greater than a preset threshold; and determining that the first sub-page data has been loaded when the distance is not greater than the preset threshold. During the page display process, it can be intuitively determined whether the data to be loaded has been loaded based on the bottoming distance of the display page corresponding to the data to be loaded. The bottoming distance refers to the distance between the bottom of the displayed page and the bottom edge of the page display window. If the distance is not greater than the preset threshold, it can be determined that the page loaded this time has bottomed out, that is, the data to be loaded of the current logical node has been loaded. The judgment logic of whether the loaded page corresponding to the current logical node has bottomed out is as follows: Figure 3 As shown, A refers to the current page, B refers to the display page corresponding to the current logical node, and C refers to the page window.

[0045] In order to achieve the switching between logical nodes, so as to promote the data loading process, in an optional embodiment of the present invention, determining the next logical node corresponding to the current logical node includes: determining the current priority identifier corresponding to the current logical node; determining whether there is an unexecuted logical node with a priority corresponding to the current priority identifier; if there is an unexecuted logical node, determining the unexecuted logical node as the next logical node; if there is no unexecuted logical node, determining the logical node of the next priority corresponding to the current priority identifier as the next logical node. Since there may be multiple logical nodes with the same priority, after the current logical node is executed, first confirm whether there are other unexecuted logical nodes with the same priority, if there are, execute the unexecuted logical nodes with the same priority, if not, determine the logical node of the next priority. For example, after the current logical node is [1, 1, 1], it is determined that there are no other unexecuted logical nodes with a priority of 1, then determine the logical node with a priority of 2. If there is only one logical node with a priority of 2, then directly determine it as the next logical node to be executed.

[0046] There is another situation that there are multiple logical nodes of the next priority level of the current priority level. In this case, how to determine the next logical node of the current logical node. In an optional embodiment of the present invention, the logical node of the next priority level corresponding to the current priority level identifier is determined as the next logical node, including: in the case of multiple logical nodes of the next priority level, determining the floor identifiers corresponding to the multiple logical nodes respectively; according to the data loading order indicated by the floor identifier, determining the logical node with the previous data loading order from the multiple logical nodes and using it as the next logical node. There are multiple logical nodes of the next priority level of the current logical node, such as [2, 2, 2] and [2, 3, 20]. The priority of these two logical nodes is 2. Therefore, it is necessary to determine the priority order between the two according to the floor identifier. Assuming that the smaller the floor identifier number, the higher the priority, it can be determined that the priority of [2, 2, 2] is higher than [2, 3, 20]. Therefore, the logical node [2, 2, 2] is determined as the next logical node, that is, the subpage 1-2 of floor 2 is loaded.

[0047] In an optional embodiment of the present invention, obtaining and loading the data to be loaded corresponding to the next logical node includes: determining the second floor identifier and the second sub-page identifier corresponding to the next logical node; determining the second sub-page data indicated by the second sub-page identifier in the floor indicated by the second floor identifier; obtaining and loading the second sub-page data. When the next logical node is determined to be [2, 2, 2], sub-page 1 and sub-page 2 in floor 2 are determined to be data to be loaded, and therefore, sub-page 1 and sub-page 2 of floor 2 are loaded.

[0048] After the execution of the logic node [2, 2, 2] is completed, the unexecuted logic node [2, 3, 20] of the same priority is determined, and after the execution of the logic node [2, 3, 20] is completed, the logic node [3, 1, 2] is executed next. The data loading process diagram of each logic node on the current page is as follows Figure 4As shown. To summarize, the loading order of the entire current page is subpage 1 of floor 1, subpages 1 and 2 of floor 2, subpages 1-20 of floor 3, and subpage 2 of floor 1. In actual applications, there may be many floors on a product details page, and each floor may correspond to hundreds of subpages. The data is divided into multiple priorities according to its importance. Therefore, there will be jumps back and forth between different floors during page loading, such as jumping from floor 1 to floor 5, and then jumping from floor 5 back to floor 2. In addition, there may be multiple priorities for different subpages on the same floor. Therefore, subpages on the same floor may be loaded multiple times, and can be set to load in the order of subpage page numbers, or to load the subpages in the middle first, and then load the subpages in other parts. According to the actual situation, the loading order can be flexibly set by configuring the data loading logic of the page.

[0049] The following is a further exemplary description of the method for loading page data of this embodiment. The method for loading page data of this embodiment mainly includes the following steps: Figure 5 As shown:

[0050] Step S501: in response to a loading instruction for the current page triggered by a user, obtaining data loading logic pre-configured for the current page.

[0051] Step S502: Determine the logical node with the highest priority as the current logical node according to the priority order.

[0052] Step S503: Acquire and load the to-be-loaded data corresponding to the current logical node.

[0053] Step S504: Determine whether the data to be loaded corresponding to the current logical node has been loaded. If so, execute step S505; if not, continue to execute step S503.

[0054] Step S505: Determine whether there is an unexecuted logical node with the same priority as the current logical node. If yes, execute step S506; if not, execute step S507.

[0055] Step S506: Determine that the unexecuted logical node is the next logical node.

[0056] Step S507: Determine whether there is a logical node of the next priority level. If yes, execute step S508; if not, end data loading.

[0057] Step S508: Determine whether there are multiple logical nodes of the next priority level. If yes, execute step S509; if not, execute step S510.

[0058] Step S509: Determine the logical node with the smaller floor identification number among the multiple logical nodes of the next priority as the next logical node.

[0059] Step S510: determine the logical node of the next priority as the next logical node, and execute step S503.

[0060] The method for loading page data of the embodiment of the invention obtains the data loading logic pre-configured for the current page in response to the loading instruction for the current page triggered by the user, and the data loading logic includes multiple logical nodes and their corresponding priorities; the priority is determined according to the data to be loaded corresponding to each logical node; the data to be loaded corresponding to the multiple logical nodes are loaded according to the priority order; wherein, in the process of loading the data to be loaded corresponding to the current logical node, it is determined whether the data to be loaded corresponding to the current logical node is loaded completely, and when the data to be loaded corresponding to the current logical node is loaded completely, the next logical node corresponding to the current logical node is determined, and the data to be loaded corresponding to the next logical node is obtained and loaded. Thus, the loading process of the page data is decomposed into multiple logical nodes, and the page data is separated into multiple data to be loaded corresponding to the multiple logical nodes one by one, priorities are set for the multiple logical nodes and the corresponding data to be loaded according to the importance of the multiple data to be loaded, and the data to be loaded corresponding to the multiple logical nodes are loaded in sequence according to the priority order, thereby realizing the data loading in sequence according to the importance of the page data, so that the page display effect meets expectations, and at the same time improves the user's page browsing experience.

[0061] Figure 6 4 is a schematic diagram of main modules of a device for loading page data according to an embodiment of the present invention.

[0062] like Figure 6 As shown, the page data loading device 600 of the embodiment of the present invention includes:

[0063] The loading logic acquisition module 601 is used to obtain the data loading logic pre-configured for the current page in response to the loading instruction triggered by the user. The data loading logic includes a plurality of logic nodes and their corresponding priorities. The priority is determined according to the data to be loaded corresponding to each logic node.

[0064] The page data loading module 601 is used to load the data to be loaded corresponding to multiple logical nodes according to the priority order; wherein, in the process of loading the data to be loaded corresponding to the current logical node, it is determined whether the data to be loaded corresponding to the current logical node has been loaded. When the data to be loaded corresponding to the current logical node has been loaded, the next logical node corresponding to the current logical node is determined, and the data to be loaded corresponding to the next logical node is obtained and loaded.

[0065] In an optional embodiment of the present invention, the data loading logic also includes a priority identifier corresponding to each logical node, a floor identifier to which the data to be loaded corresponding to each logical node belongs, and a sub-page identifier corresponding to the data to be loaded within the floor; each priority identifier corresponds to one or more logical nodes; and one or more logical nodes correspond to different floor identifiers, respectively.

[0066] In an optional embodiment of the present invention, the page data loading module 602 is further used to determine a current priority identifier corresponding to the current logical node; determine whether there is an unexecuted logical node whose priority corresponds to the current priority identifier; if there is an unexecuted logical node, determine the unexecuted logical node as the next logical node; if there is no unexecuted logical node, determine the logical node of the next priority corresponding to the current priority identifier as the next logical node.

[0067] In an optional embodiment of the present invention, the page data loading module 602 is also used to determine the floor identifiers corresponding to the multiple logical nodes when there are multiple logical nodes of the next priority level; according to the data loading order indicated by the floor identifier, the logical node with the previous data loading order is determined from the multiple logical nodes and used as the next logical node.

[0068] In an optional embodiment of the present invention, the page data loading module 602 is also used to determine the first floor identifier and the first sub-page identifier corresponding to the current logical node; determine the first sub-page data corresponding to the first floor identifier and the first sub-page identifier; and determine whether the first sub-page data has been loaded.

[0069] In an optional embodiment of the present invention, the page data loading module 602 is also used to determine the distance between the bottom of the last page displayed after loading the first sub-page data and the bottom edge of the page window; determine whether the distance is not greater than a preset threshold; if the distance is not greater than the preset threshold, determine that the first sub-page data has been loaded.

[0070] In an optional embodiment of the present invention, the page data loading module 602 is also used to determine the second floor identifier and the second sub-page identifier corresponding to the next logical node; determine the second sub-page data indicated by the second sub-page identifier in the floor indicated by the second floor identifier; and obtain and load the second sub-page data.

[0071] In an optional embodiment of the present invention, the loading logic acquisition module 601 is also used to divide the page data corresponding to the current page into multiple floors; divide the page data corresponding to each floor into multiple sub-page data; and configure the data loading logic for the current page according to the importance corresponding to the floors and the multiple sub-page data.

[0072] The device for loading page data of the embodiment of the present invention obtains the data loading logic pre-configured for the current page by responding to the loading instruction for the current page triggered by the user, and the data loading logic includes multiple logical nodes and their corresponding priorities respectively; the priority is determined according to the data to be loaded corresponding to each logical node; the data to be loaded corresponding to the multiple logical nodes are loaded according to the priority order; wherein, in the process of loading the data to be loaded corresponding to the current logical node, it is determined whether the data to be loaded corresponding to the current logical node is loaded completely, and when the data to be loaded corresponding to the current logical node is loaded completely, the next logical node corresponding to the current logical node is determined, and the data to be loaded corresponding to the next logical node is obtained and loaded. Thus, the loading process of the page data is decomposed into multiple logical nodes, and the page data is separated into multiple data to be loaded corresponding to the multiple logical nodes one by one, priorities are set for the multiple logical nodes and the corresponding data to be loaded according to the importance of the multiple data to be loaded, and the data to be loaded corresponding to the multiple logical nodes are loaded in sequence according to the priority order, thereby realizing the data loading in sequence according to the importance of the page data, so that the page display effect meets expectations, and at the same time improves the user's page browsing experience.

[0073] Figure 7 An exemplary system architecture 700 is shown to which the method for loading page data or the apparatus for loading page data according to the embodiment of the present invention can be applied.

[0074] like Figure 7 As shown, system architecture 700 may include clients 701, 704, 705, network 702, and server 703. Network 702 is used to provide a medium for communication links between clients 701, 704, 705, and server 703. Network 702 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0075] Clients 701, 704, 705 interact with server 703 through network 702 to receive or send messages, etc. The user triggers a loading instruction for the current page through client 701, 704, 705, and server 703 responds to the page loading instruction of client 701, 704, 705, obtains the corresponding data loading logic, loads the page data according to the data loading logic, and displays the data loading result to the user through client 701, 704, 705.

[0076] The server 703 may be a server that provides various services, for example, a background management server that provides support for the server 703 to obtain data loading logic and analyze and process the data loading logic. The background management server may analyze and process the obtained data loading logic, and send the processing results, such as the corresponding display page after the data is loaded, to the clients 701, 704, 705.

[0077] It should be noted that the page data loading method provided in the embodiment of the present invention is generally executed by the server 703 , and accordingly, the page data loading device is generally disposed in the server 703 .

[0078] It should be understood that Figure 7 The number of clients, networks, and servers in the embodiment is only for illustration. Any number of clients, networks, and servers may be provided as required.

[0079] Reference below Figure 8 , which shows a schematic diagram of the structure of a computer system 800 of an electronic device suitable for implementing an embodiment of the present invention. Figure 8 The client shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0080] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 to a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the computer system 800 are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0081] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage section 808 as needed.

[0082] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above-mentioned functions defined in the system of the present invention are executed.

[0083] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0084] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0085] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes a loading logic acquisition module and a page data loading module. The names of these modules do not constitute a limitation on the modules themselves in some cases, for example, the page data loading module may also be described as "a module for acquiring and loading the data to be loaded corresponding to the next logical node".

[0086] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device includes: in response to a loading instruction for the current page triggered by a user, obtaining a data loading logic pre-configured for the current page, the data loading logic includes a plurality of logical nodes and their corresponding priorities; the priority is determined according to the data to be loaded corresponding to each logical node; the data to be loaded corresponding to the plurality of logical nodes are loaded according to the priority order; wherein, in the process of loading the data to be loaded corresponding to the current logical node, it is determined whether the data to be loaded corresponding to the current logical node is loaded completely, and when the data to be loaded corresponding to the current logical node is loaded completely, the next logical node corresponding to the current logical node is determined, and the data to be loaded corresponding to the next logical node is obtained and loaded.

[0087] According to the technical solution of the embodiment of the present invention, by responding to the loading instruction for the current page triggered by the user, the data loading logic pre-configured for the current page is obtained, and the data loading logic includes multiple logical nodes and their corresponding priorities; the priority is determined according to the data to be loaded corresponding to each logical node; the data to be loaded corresponding to the multiple logical nodes are loaded according to the priority order; wherein, in the process of loading the data to be loaded corresponding to the current logical node, it is determined whether the data to be loaded corresponding to the current logical node is loaded completely, and when the data to be loaded corresponding to the current logical node is loaded completely, the next logical node corresponding to the current logical node is determined, and the data to be loaded corresponding to the next logical node is obtained and loaded. Thus, the loading process of the page data is decomposed into multiple logical nodes, and the page data is separated into multiple data to be loaded corresponding to the multiple logical nodes one by one, and priorities are set for the multiple logical nodes and the corresponding data to be loaded according to the importance of the multiple data to be loaded, and the data to be loaded corresponding to the multiple logical nodes are loaded in sequence according to the priority order, thereby realizing the data loading in sequence according to the importance of the page data, so that the page display effect meets expectations, and at the same time improves the user's page browsing experience.

[0088] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for loading page data, characterized in that: include: In response to a loading instruction for a current page triggered by a user, obtaining a data loading logic pre-configured for the current page, the data loading logic including a plurality of logic nodes and their corresponding priorities; The priority is determined according to the data to be loaded corresponding to each logical node; Load the data to be loaded corresponding to the multiple logical nodes according to the priority order; In the process of loading the data to be loaded corresponding to the current logical node, it is determined whether the data to be loaded corresponding to the current logical node has been loaded. If the data to be loaded corresponding to the current logical node has been loaded, the next logical node corresponding to the current logical node is determined, and the data to be loaded corresponding to the next logical node is obtained and loaded.

2. The method according to claim 1, characterized in that The data loading logic further includes a priority identifier corresponding to each logical node, an identifier of a floor to which the data to be loaded corresponding to each logical node belongs, and an identifier of a subpage corresponding to the data to be loaded in the floor; Each priority identifier corresponds to one or more logical nodes; the one or more logical nodes correspond to different floor identifiers respectively.

3. The method according to claim 2, characterized in that The determining the next logical node corresponding to the current logical node includes: Determine a current priority identifier corresponding to the current logical node; Determine whether there is an unexecuted logical node with a priority corresponding to the current priority identifier; In the case where the unexecuted logical node exists, determining the unexecuted logical node as the next logical node; In the case that the unexecuted logical node does not exist, a logical node of the next priority level corresponding to the current priority level identifier is determined as the next logical node.

4. The method according to claim 3, characterized in that The step of determining a logical node of a next priority level corresponding to the current priority level identifier as the next logical node comprises: In the case where there are multiple logical nodes of the next priority, determining floor identifiers corresponding to the multiple logical nodes respectively; According to the data loading order indicated by the floor identification, a logical node with a preceding data loading order is determined from the plurality of logical nodes and is used as the next logical node.

5. The method according to any one of claims 2 to 4, characterized in that: The determining whether the to-be-loaded data corresponding to the current logical node has been loaded includes: Determine a first floor identifier and a first sub-page identifier corresponding to the current logical node; Determine first sub-page data corresponding to the first floor identifier and the first sub-page identifier; Determine whether the first sub-page data has been loaded.

6. The method according to claim 5, characterized in that The determining whether the first sub-page data has been loaded includes: Determine the distance between the bottom of the last page displayed after loading the first sub-page data and the bottom edge of the page window; Determining whether the distance is not greater than a preset threshold; When the distance is not greater than the preset threshold, it is determined that the first sub-page data has been completely loaded.

7. The method according to any one of claims 2 to 4, characterized in that: The acquiring and loading the to-be-loaded data corresponding to the next logical node includes: Determine a second floor identifier and a second sub-page identifier corresponding to the next logical node; Determine the second sub-page data indicated by the second sub-page identifier in the floor indicated by the second floor identifier; Acquire and load the second sub-page data.

8. The method according to any one of claims 1 to 4, characterized in that: Also includes: Dividing the page data corresponding to the current page into multiple floors; Divide the page data corresponding to each floor into multiple sub-page data; According to the importance levels respectively corresponding to the floors and the plurality of sub-page data, data loading logic is configured for the current page.

9. A device for loading page data, characterized in that: include: A loading logic acquisition module, configured to acquire a data loading logic pre-configured for the current page in response to a loading instruction triggered by a user, wherein the data loading logic includes a plurality of logic nodes and their corresponding priorities; The priority is determined according to the data to be loaded corresponding to each logical node; A page data loading module is used to load the data to be loaded corresponding to the multiple logical nodes according to the priority order; wherein, in the process of loading the data to be loaded corresponding to the current logical node, it is determined whether the data to be loaded corresponding to the current logical node has been loaded. If the data to be loaded corresponding to the current logical node has been loaded, the next logical node corresponding to the current logical node is determined, and the data to be loaded corresponding to the next logical node is obtained and loaded.

10. An electronic device for loading page data, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.

11. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

12. A computer program product, comprising a computer program, characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.