Page loading method, system and equipment and storage medium
By detecting target operations and loading static and dynamic data on the user side, the front-end page loading method is optimized, solving the problems of large page resources and long loading time, and improving user experience.
Patent Information
- Application Number
- CN202410742086.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-17
AI Technical Summary
In the existing front-end page loading method, the page resources are large and the loading time is long, resulting in poor user experience and easy user loss.
By detecting the target operation on the user side, determine the target identification, and load static data and dynamic data in the local storage space according to the identification. Static data has a higher priority than dynamic data, reducing the storage of dynamic data on the user side and increasing storage on the bank server. Static data and dynamic data are stored on the user side.
Improved front-end page loading speed, reduced loading time, and improved user experience.
Smart Images

Figure CN118656557A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a page loading method, system, device and storage medium. Background Art
[0002] The speed of front-end page loading determines whether it can provide a better experience for users. If the front-end page loads quickly, users do not need to wait too long to see the page content. On the contrary, if the front-end page loads slowly, users will feel impatient, causing them to give up access and even cause user loss. In order to provide users with a better experience and avoid customer loss, the speed of front-end page loading is of great importance to all industries, especially the financial industry. However, the commonly used front-end page loading method is mostly the H5 offline package solution, which still has the problem of large page resources and long page loading time. Summary of the invention
[0003] In view of this, one of the purposes of the present application is to provide a page loading method, system, computer device and computer-readable storage medium, which can at least solve some of the above-mentioned technical problems.
[0004] In a first aspect, an embodiment of the present application provides a page loading method, which is applied to a user end and includes:
[0005] Under the condition that a target operation is detected and the target operation is a preset operation, determining a target identifier according to the target operation;
[0006] Under the condition that the target identifier is detected to be stored in the first storage space, first target access data is determined in the first storage space according to the target identifier, and a first target page is generated according to the first target access data;
[0007] Under the condition that it is detected that the target identifier is not stored in the first storage space, an access request is generated according to the target identifier, and the access request is sent to the bank service end, and static data and dynamic data identifiers fed back by the bank service end according to the access request are received;
[0008] Determining dynamic data in a second storage space according to the dynamic data identifier, and generating second target access data according to the static data and the dynamic data, wherein both the first storage space and the second storage space are storage spaces of the user terminal;
[0009] A second target page is generated according to the second target access data, and both the first target page and the second target page are used for display at the user end.
[0010] Optionally, generating a first target page according to the first target access data includes:
[0011] Acquire first location information associated with the first target access data;
[0012] The first target access data is loaded to a target position of a preset page according to the first position information to obtain the first target page.
[0013] Optionally, generating a second target page according to the second target access data includes:
[0014] Acquire second location information associated with the second target access data;
[0015] Assigning loading priorities to the static data and the dynamic data respectively;
[0016] The static data and the dynamic data are loaded to the target position of the preset page according to the second position information and the loading priority to obtain the second target page, wherein the loading priority of the static data is greater than the loading priority of the dynamic data.
[0017] Optionally, the dynamic data includes at least one of text, image and video, and the generating the access request according to the target identifier includes:
[0018] Acquire operation information of the user terminal, and generate the access request according to the operation information and the target identifier, wherein the operation information includes CPU occupancy and / or GPU occupancy;
[0019] The step of respectively allocating loading priorities for the static data and the dynamic data comprises:
[0020] Loading priorities are respectively assigned to the static data, the text, the image, and the video according to the CPU occupancy rate and / or the GPU occupancy rate.
[0021] Optionally, the method further includes:
[0022] Under the condition that the dynamic data cannot be determined in the second storage space according to the dynamic data identifier, the dynamic data associated with the dynamic data identifier is obtained from the bank service end according to the dynamic data identifier, and the obtained dynamic data is stored in the second storage space.
[0023] In a second aspect, an embodiment of the present application provides a page loading method, which is applied to a bank service end, and the method includes:
[0024] In response to an access request generated by the user terminal according to the target identifier, determining static data and dynamic data identifiers;
[0025] The static data and dynamic data identifiers are sent to the user terminal so that the user terminal determines the dynamic data in the target storage space according to the dynamic data identifier, generates target access data according to the static data and the dynamic data, and generates a target page according to the target access data, wherein the target storage space is the storage space of the user terminal, and the target page is used for display at the user terminal.
[0026] In a third aspect, an embodiment of the present application provides a page loading system, which is applied to the page loading method of the first aspect, and the system includes:
[0027] A first detection module is used to determine a target identifier according to the target operation when a target operation is detected and the target operation is a preset operation;
[0028] a second detection module, configured to determine first target access data in the first storage space according to the target identifier, and generate a first target page according to the first target access data, if the target identifier is detected to be stored in the first storage space;
[0029] a third detection module, configured to generate an access request according to the target identifier upon detecting that the target identifier is not stored in the first storage space, send the access request to the bank service end, and receive static data and dynamic data identifiers fed back by the bank service end according to the access request;
[0030] A first generating module, configured to determine the dynamic data in the second storage space according to the dynamic data identifier, and to generate second target access data according to the static data and the dynamic data, wherein the first storage space and the second storage space are both storage spaces of the user terminal;
[0031] The second generating module is used to generate a second target page according to the second target access data, and the first target page and the second target page are both used to be displayed on the user terminal.
[0032] In a fourth aspect, an embodiment of the present application provides a page loading system, which is applied to the page loading method of the second aspect, and the system includes:
[0033] A determination module, configured to determine static data and dynamic data identifiers in response to an access request generated by the user terminal according to a target identifier;
[0034] A sending module is used to send the static data and dynamic data identifiers to the user terminal, so that the user terminal determines the dynamic data in the target storage space according to the dynamic data identifier, and generates target access data according to the static data and the dynamic data, and generates a target page according to the target access data, wherein the target storage space is the storage space of the user terminal, and the target page is used for display at the user terminal.
[0035] In a fifth aspect, an embodiment of the present application provides a computer device, comprising a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the page loading method provided in the first aspect and / or the second aspect is implemented.
[0036] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by one or more processors, it implements the page loading method provided in the first aspect and / or the second aspect.
[0037] The page loading method provided by the present application can determine the target identifier according to the target operation under the condition that the target operation is detected and the target operation is a preset operation. Under the condition that the target identifier is stored in the first storage space, the first target access data is determined in the first storage space according to the target identifier, and the first target page is generated according to the first target access data. And under the condition that the target identifier is not stored in the first storage space, an access request is generated according to the target identifier, and the access request is sent to the bank service end, and the static data and dynamic data identifiers fed back by the bank service end according to the access request are received. Then, dynamic data is determined in the second storage space according to the dynamic data identifier, and the second target access data is generated according to the static data and the dynamic data, wherein the first storage space and the second storage space are both storage spaces of the user end; the second target page is generated according to the second target access data, and the first target page and the second target page are both used for display on the user end. The first storage space and the second storage space in the present application are both storage spaces of the user end. By storing static data with small resource occupation on the bank service end and storing dynamic data with large resource occupation in the second storage space, the loading speed of the front-end page can be improved and the loading time of the front-end page can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. It should be understood that the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A method flow chart of a page loading method applied to a user terminal provided in an embodiment of the present application;
[0040] Figure 2 A method flow chart of a page loading method applied to a bank server provided in an embodiment of the present application;
[0041] Figure 3 A schematic diagram of functional modules of a page loading system applied to a user terminal provided in an embodiment of the present application;
[0042] Figure 4 A schematic diagram of functional modules of a page loading system applied to a bank server provided in an embodiment of the present application;
[0043] Figure 5 A diagram of the internal structure of a computer device provided in an embodiment of the present application.
[0044] Description of reference numerals:
[0045] The page loading system 300 applied to the user side, the first detection module 310, the second detection module 320, the third detection module 330, the first generation module 340, the second generation module 350, the page loading system 400 applied to the bank service side, the determination module 410, the sending module 420. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0048] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0049] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0050] In various embodiments of the present application, the expression "or" or "at least one of A or / and B" includes any combination or all combinations of the words listed at the same time. For example, the expression "A or B" or "at least one of A or / and B" may include A, may include B, or may include both A and B.
[0051] In the description of the present application, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. appear to indicate an orientation or position relationship, it is based on the orientation or position relationship shown in the drawings, or is the orientation or position relationship in which the product of the invention is usually placed when used. It is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application.
[0052] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.
[0053] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.
[0054] See also Figure 1 , Figure 1 A method flow chart of a page loading method applied to a user terminal provided in an embodiment of the present application, and each step of the method will be described in detail below.
[0055] S110: Under the condition that a target operation is detected and the target operation is a preset operation, a target identifier is determined according to the target operation.
[0056] In this embodiment, the user end may refer to a user end using a bank service end, such as a smart terminal using a bank APP or a bank webpage link. The target operation is in the form of some click, tap, shake, rotate or gesture operations, and different operations will trigger different functions. For example, click may refer to the operation generated when browsing a bank webpage through a computer, or may refer to the touch, tap, shake, rotate or gesture operation generated when browsing an implicit APP through a smart phone.
[0057] Specifically, taking rotation as an example, when opening a bank APP, rotating the smartphone 180 degrees clockwise or counterclockwise will lock the current bank login account, and you will need to enter the password again to enter the bank APP and use the functions in the bank APP normally. Rotating the smartphone 180 degrees clockwise or counterclockwise can also be used to obtain personal deposit information, which can be set as needed, with no limit on the number of times. Accordingly, the target identifier is associated with the operation, and the target identifier is also associated with the data. For example, the operation of rotating the smartphone 180 degrees clockwise or counterclockwise corresponds to target identifier 001. Target identifier 001 can be associated with the instruction to lock the current bank login account, or it can be associated with personal deposit information.
[0058] The preset operations include operations such as clicks, taps, shakes, rotations or gestures pre-stored on the user side. When the user side detects that a target operation exists and corresponds to at least one of the preset operations, the target identifier corresponding to the target operation can be determined. For an introduction to the target identifier, please refer to the above example.
[0059] S120 , under the condition that it is detected that the target identifier is stored in the first storage space, first target access data is determined in the first storage space according to the target identifier, and a first target page is generated according to the first target access data.
[0060] In this embodiment, the first storage space is a local storage space of the user terminal. The target identifier and the first target access data in the first storage space and the mapping relationship between the two can be stored through at least one data mapping table, so that the first target access data can be quickly determined through the target identifier through at least one data mapping table. The first target access data refers to the data that needs to be accessed by the target operation generated on the user terminal, such as the personal deposit information in the above example.
[0061] After the first target access data is determined, the first target access data can be quickly retrieved from the first storage space, and then a first target page is generated and loaded on a display interface of the user terminal.
[0062] This embodiment queries the data stored locally on the user end to determine whether there is access data corresponding to the target operation, and loads the target page from the local storage space of the user end without downloading new data, which can greatly shorten the page loading time. For example, when loading personal deposit information, the target operation can be quickly identified and the first target page can be quickly generated and loaded according to the target operation. The user can also obtain his or her deposit information in a very short time, which reduces the waiting time for the user to generate the target operation and improves the user's usage experience.
[0063] In some embodiments, the target identifier and data associated with the target identifier in the first storage space can be stored in a preset hash table. Using a hash table to store data is sufficient to further improve the data query speed, thereby indirectly improving the loading speed of the first target page.
[0064] S130, under the condition that it is detected that the target identifier is not stored in the first storage space, an access request is generated according to the target identifier, and the access request is sent to the bank service end, and static data and dynamic data identifiers fed back by the bank service end according to the access request are received.
[0065] In this embodiment, the first storage space does not store the target identifier, which can be understood as the first storage space does not store the access data corresponding to the target operation, and it needs to be obtained from the bank service end. Specifically, the user end can send an access request to the bank service end, and the bank service end feeds back the static data and dynamic data identifier to the user end according to the access request.
[0066] Among them, taking the bank web page link as an example, static data may include the website's logo, title, navigation bar, fixed text content and other data, which usually occupy very little memory and can be obtained through the bank server. The dynamic data identifier can be used to determine the corresponding dynamic data, and the memory of the dynamic data identifier is also very small. The bank server sends the static data and the dynamic data identifier to the user end in a short time, and the user end can determine the corresponding dynamic data in another local storage space according to the dynamic data identifier, that is, the second storage space in the following embodiment.
[0067] S140, determining dynamic data in a second storage space according to the dynamic data identifier, and generating second target access data according to the static data and the dynamic data, wherein the first storage space and the second storage space are both storage spaces of the user end.
[0068] S150, generating a second target page according to the second target access data, wherein both the first target page and the second target page are used for display on the user end.
[0069] As mentioned above, the second storage space is also a local storage space of the user end. Unlike the first storage space, the second storage space can be used to store some public resources corresponding to bank webpage links that have a slightly larger memory size, such as more than 3MB. This embodiment can quickly generate the second target access data by combining the static data of the bank service end and the dynamic data of the second storage space, thereby avoiding the need for the user end to download the public resources with a slightly larger memory size online, thereby improving the loading speed of the page.
[0070] The page loading method provided by the embodiment of the present application can determine the target identifier according to the target operation under the condition that the target operation is detected and the target operation is a preset operation. Under the condition that the target identifier is detected to be stored in the first storage space, the first target access data is determined in the first storage space according to the target identifier, and the first target page is generated according to the first target access data. And under the condition that the target identifier is not stored in the first storage space, an access request is generated according to the target identifier, and the access request is sent to the bank service end, and the static data and dynamic data identifiers fed back by the bank service end according to the access request are received. Then, dynamic data is determined in the second storage space according to the dynamic data identifier, and the second target access data is generated according to the static data and the dynamic data, wherein the first storage space and the second storage space are both storage spaces of the user end; the second target page is generated according to the second target access data, and the first target page and the second target page are both used for display on the user end. The first storage space and the second storage space in the present application are both storage spaces of the user end. By storing static data with small resource occupation on the bank service end and storing dynamic data with large resource occupation in the second storage space, the loading speed of the front-end page can be improved and the loading time of the front-end page can be reduced.
[0071] In a possible implementation, generating a first target page according to first target access data includes:
[0072] Acquire first location information associated with first target access data;
[0073] The first target access data is loaded to a target position of a preset page according to the first position information to obtain a first target page.
[0074] Specifically, the first location information can be used to limit the specific location of the first target access data on the preset page, and taking into account the different sizes of display interfaces, the first location information of the first target access data is different in the APP in the smartphone and in the bank web link on the computer. The first location information and the target location have different corresponding relationships in different display interfaces on the user side, so that the first target access data can be accurately loaded into the preset page to obtain an accurate first target page.
[0075] Optionally, generating a second target page according to the second target access data includes:
[0076] acquiring second location information associated with the second target access data;
[0077] Assign loading priorities to static data and dynamic data respectively;
[0078] The static data and the dynamic data are loaded to the target position of the preset page according to the second position information and the loading priority to obtain a second target page, wherein the loading priority of the static data is greater than the loading priority of the dynamic data.
[0079] As mentioned above, the second position information in this embodiment has the same function as the first position information in the above embodiment, which will not be described in detail here.
[0080] This embodiment also introduces a loading priority, and loads static data and dynamic data to the target location of the preset page together with the second location information, which can not only accurately load the static data and dynamic data in the second target access data to the preset page, but also load according to the loading priority of different data. And in this embodiment, considering that the space occupied by dynamic data is larger than that occupied by static data, the loading priority of static data is higher than that of dynamic data.
[0081] Optionally, the dynamic data includes at least one of text, image, and video, and generating an access request according to the target identifier includes:
[0082] Obtaining operation information of the user terminal, and generating an access request according to the operation information and the target identifier, wherein the operation information includes CPU occupancy and / or GPU occupancy;
[0083] Assign loading priorities to static data and dynamic data separately, including:
[0084] Assign loading priorities to static data, text, images, and videos based on CPU usage and / or GPU usage.
[0085] Specifically, the operating information of the user terminal includes the operating information of the smartphone and / or the operating information of the computer. The operating information in this embodiment is not limited to the CPU occupancy rate and the GPU occupancy rate, and may also include other operating information closely related to the user terminal, which is not specifically limited here.
[0086] Loading priorities are assigned to static data, text, images and videos according to the CPU occupancy and / or GPU occupancy, respectively. Taking the CPU occupancy as an example, when the CPU occupancy is below 30%, the same loading priority can be assigned to static data, text, images and videos. When the CPU occupancy is above 30%, the loading priority assigned to static data is greater than the loading priority assigned to text, images and videos.
[0087] In some embodiments, when the CPU occupancy rate is above 70%, the loading priorities assigned to text, images and videos respectively decrease in sequence, that is, text information can be loaded first. Text information can display key information that the user needs to know to a certain extent. Prioritizing the loading of text information enables the user to quickly obtain the information corresponding to the target operation, which shortens the page loading time to a certain extent and improves the user experience.
[0088] In a possible implementation, the method further includes:
[0089] Under the condition that the dynamic data cannot be determined in the second storage space according to the dynamic data identifier, the dynamic data associated with the dynamic data identifier is obtained from the bank service end according to the dynamic data identifier, and the obtained dynamic data is stored in the second storage space.
[0090] In this embodiment, it is impossible to determine the dynamic data in the second storage space based on the dynamic data identifier, which means that the dynamic data corresponding to the dynamic data identifier does not exist in the current second storage space. At this time, it is necessary to obtain it from the bank server, and the obtained dynamic data needs to be cached in the second storage space for fast reuse, thereby improving the page loading speed.
[0091] From the above analysis, it can be seen that the page loading method provided by the embodiment of the present application can determine the target identifier according to the target operation under the condition that the target operation is detected and the target operation is a preset operation. Under the condition that the target identifier is detected to be stored in the first storage space, the first target access data is determined in the first storage space according to the target identifier, and the first target page is generated according to the first target access data. And under the condition that the target identifier is not stored in the first storage space, an access request is generated according to the target identifier, and the access request is sent to the bank service end, and the static data and dynamic data identifiers fed back by the bank service end according to the access request are received. Then, dynamic data is determined in the second storage space according to the dynamic data identifier, and the second target access data is generated according to the static data and the dynamic data, wherein the first storage space and the second storage space are both storage spaces of the user end; the second target page is generated according to the second target access data, and the first target page and the second target page are both used for display on the user end. The first storage space and the second storage space in the present application are both storage spaces of the user end. By storing static data with small resource occupation on the bank service end and storing dynamic data with large resource occupation in the second storage space, the loading speed of the front-end page can be improved and the loading time of the front-end page can be reduced.
[0092] This application also provides a page loading method, please see Figure 2 , Figure 2A method flow chart of a page loading method applied to a bank server is provided in an embodiment of the present application. Each step of the method will be described in detail below.
[0093] S210, in response to an access request generated by the user terminal according to the target identifier, determining static data and dynamic data identifiers.
[0094] S220, sending static data and dynamic data identifiers to the user end, so that the user end determines the dynamic data in the target storage space according to the dynamic data identifier, and generates target access data according to the static data and the dynamic data, and generates a target page according to the target access data, wherein the target storage space is the storage space of the user end, and the target page is used for display on the user end.
[0095] In this embodiment, the target storage space is the second storage space in the above method embodiment, and the target access data is the second target access data in the above embodiment. For the specific implementation process, please refer to the specific description of the above method embodiment, which will not be repeated here.
[0096] The page loading method provided in the embodiment of the present application can determine the static data and dynamic data identifiers in response to the access request generated by the user terminal according to the target identifier. The static data and dynamic data identifiers are sent to the user terminal so that the user terminal determines the dynamic data in the target storage space according to the dynamic data identifier, generates the target access data according to the static data and the dynamic data, and generates the target page according to the target access data, wherein the target storage space is the storage space of the user terminal, and the target page is used for display on the user terminal. In the present application, the target page is generated according to the dynamic data in the target storage space and the static data of the bank service end, wherein the target storage space is the local storage space of the user terminal, thereby avoiding the situation of downloading dynamic data, improving the loading speed of the target page, and thus improving the user experience.
[0097] Corresponding to the above method embodiment, the present application also provides a page loading system, see Figure 3 , Figure 3 A functional module diagram of a page loading system 300 applied to a user terminal provided in an embodiment of the present application, wherein the system includes:
[0098] 310 a first detection module, configured to determine a target identifier according to the target operation when a target operation is detected and the target operation is a preset operation;
[0099] 320 a second detection module, configured to determine first target access data in the first storage space according to the target identifier under the condition that the target identifier is detected to be stored in the first storage space, and generate a first target page according to the first target access data;
[0100] 330 a third detection module, configured to generate an access request according to the target identifier under the condition that the target identifier is not stored in the first storage space, send the access request to the bank service end, and receive static data and dynamic data identifiers fed back by the bank service end according to the access request;
[0101] 340 a first generating module, configured to determine the dynamic data in the second storage space according to the dynamic data identifier, and to generate second target access data according to the static data and the dynamic data, wherein the first storage space and the second storage space are both storage spaces of the user end;
[0102] 350 A second generating module is used to generate a second target page according to the second target access data. Both the first target page and the second target page are used to be displayed on the user end.
[0103] The page loading system applied to the user end provided by the embodiment of the present application can determine the target identifier according to the target operation through the first detection module under the condition that the target operation is detected and the target operation is a preset operation. The first target access data is determined in the first storage space according to the target identifier under the condition that the target identifier is stored in the first storage space through the second detection module, and the first target page is generated according to the first target access data. And the access request is generated according to the target identifier under the condition that the target identifier is not stored in the first storage space through the third detection module, and the access request is sent to the bank service end, and the static data and dynamic data identifier fed back by the bank service end according to the access request are received. Then, the dynamic data is determined in the second storage space according to the dynamic data identifier through the first generation module, and the second target access data is generated according to the static data and the dynamic data, wherein the first storage space and the second storage space are both storage spaces of the user end. Finally, the second generation module generates the second target page according to the second target access data, and both the first target page and the second target page are used for display on the user end. The first storage space and the second storage space in this application are both storage spaces on the user side. By storing static data that occupies less resources on the bank service side and dynamic data that occupies more resources in the second storage space, the loading speed of the front-end page can be increased and the loading time of the front-end page can be reduced.
[0104] Corresponding to the above method embodiment, the present application also provides a page loading system, see Figure 4 , Figure 4 A functional module diagram of a page loading system 400 applied to a bank server provided in an embodiment of the present application, wherein the system includes:
[0105] 410 is a determination module, which is used to determine static data and dynamic data identifiers in response to an access request generated by the user terminal according to the target identifier.
[0106] 420 sending module, used to send the static data and dynamic data identifiers to the user terminal, so that the user terminal determines the dynamic data in the target storage space according to the dynamic data identifier, and generates target access data according to the static data and the dynamic data, and generates a target page according to the target access data, wherein the target storage space is the storage space of the user terminal, and the target page is used for display at the user terminal.
[0107] The page loading system applied to the bank server provided by the embodiment of the present application can determine the static data and dynamic data identifiers in response to the access request generated by the user terminal according to the target identifier through the determination module. And the static data and dynamic data identifiers are sent to the user terminal through the sending module, so that the user terminal determines the dynamic data in the target storage space according to the dynamic data identifier, and generates the target access data according to the static data and the dynamic data, and generates the target page according to the target access data, wherein the target storage space is the storage space of the user terminal, and the target page is used for display on the user terminal. In the present application, the target page is jointly generated according to the dynamic data in the target storage space and the static data of the bank server, wherein the target storage space is the local storage space of the user terminal, thereby avoiding the situation of downloading dynamic data, improving the loading speed of the target page, and thus improving the user experience.
[0108] This application also provides a computer device, see Figure 5 , Figure 5 An internal structure diagram of a computer device provided for an embodiment of the present application. The computer device includes a processor, a memory, and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program, which, when executed by the processor, enables the processor to implement the page loading method applied to the computer device in the above embodiment. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to execute the page loading method. Those skilled in the art will appreciate that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0109] The embodiment of the present application further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the page loading method in the method embodiment is implemented.
[0110] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRA M), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRD RAM), and memory bus dynamic RAM (RDRAM), etc.
[0111] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
Claims
1. A page loading method, It is characterized in that Applied to a user terminal, the method includes: Under the condition that a target operation is detected and the target operation is a preset operation, determining a target identifier according to the target operation; Under the condition that the target identifier is detected to be stored in the first storage space, first target access data is determined in the first storage space according to the target identifier, and a first target page is generated according to the first target access data; Under the condition that it is detected that the target identifier is not stored in the first storage space, an access request is generated according to the target identifier, and the access request is sent to the bank service end, and static data and dynamic data identifiers fed back by the bank service end according to the access request are received; Determining dynamic data in a second storage space according to the dynamic data identifier, and generating second target access data according to the static data and the dynamic data, wherein both the first storage space and the second storage space are storage spaces of the user terminal; A second target page is generated according to the second target access data, and both the first target page and the second target page are used for display at the user end.
2. The method according to claim 1, It is characterized in that The generating a first target page according to the first target access data includes: Acquire first location information associated with the first target access data; The first target access data is loaded to a target position of a preset page according to the first position information to obtain the first target page.
3. The method according to claim 2, It is characterized in that The step of generating a second target page according to the second target access data includes: Acquire second location information associated with the second target access data; Assigning loading priorities to the static data and the dynamic data respectively; The static data and the dynamic data are loaded to the target position of the preset page according to the second position information and the loading priority to obtain the second target page, wherein the loading priority of the static data is greater than the loading priority of the dynamic data.
4. The method according to claim 3, It is characterized in that The dynamic data includes at least one of text, image and video, and the generating the access request according to the target identifier includes: Acquire operation information of the user terminal, and generate the access request according to the operation information and the target identifier, wherein the operation information includes CPU occupancy and / or GPU occupancy; The step of respectively allocating loading priorities for the static data and the dynamic data comprises: Loading priorities are respectively assigned to the static data, the text, the image, and the video according to the CPU occupancy rate and / or the GPU occupancy rate.
5. The method according to claim 1, It is characterized in that The method further comprises: Under the condition that the dynamic data cannot be determined in the second storage space according to the dynamic data identifier, the dynamic data associated with the dynamic data identifier is obtained from the bank service end according to the dynamic data identifier, and the obtained dynamic data is stored in the second storage space.
6. A page loading method, It is characterized in that Applied to a bank service end, the method includes: In response to an access request generated by the user terminal according to the target identifier, determining static data and dynamic data identifiers; The static data and dynamic data identifiers are sent to the user terminal so that the user terminal determines the dynamic data in the target storage space according to the dynamic data identifier, generates target access data according to the static data and the dynamic data, and generates a target page according to the target access data, wherein the target storage space is the storage space of the user terminal, and the target page is used for display at the user terminal.
7. A page loading system, It is characterized in that The page loading method applied to any one of claims 1 to 5, wherein the system comprises: A first detection module is used to determine a target identifier according to the target operation when a target operation is detected and the target operation is a preset operation; a second detection module, configured to determine first target access data in the first storage space according to the target identifier, and generate a first target page according to the first target access data, if the target identifier is detected to be stored in the first storage space; a third detection module, configured to generate an access request according to the target identifier upon detecting that the target identifier is not stored in the first storage space, send the access request to the bank service end, and receive static data and dynamic data identifiers fed back by the bank service end according to the access request; A first generating module, configured to determine the dynamic data in the second storage space according to the dynamic data identifier, and to generate second target access data according to the static data and the dynamic data, wherein the first storage space and the second storage space are both storage spaces of the user terminal; The second generating module is used to generate a second target page according to the second target access data, and the first target page and the second target page are both used to be displayed on the user terminal.
8. A page loading system, It is characterized in that Applied to the page loading method according to claim 6, the system comprises: A determination module, configured to determine static data and dynamic data identifiers in response to an access request generated by the user terminal according to a target identifier; A sending module is used to send the static data and dynamic data identifiers to the user terminal, so that the user terminal determines the dynamic data in the target storage space according to the dynamic data identifier, and generates target access data according to the static data and the dynamic data, and generates a target page according to the target access data, wherein the target storage space is the storage space of the user terminal, and the target page is used for display at the user terminal.
9. A computer device, It is characterized in that The computer device comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the following is achieved: The page loading method according to any one of claims 1 to 6; and / or, The page loading method as claimed in claim 7.
10. A computer-readable storage medium, It is characterized in that The computer readable storage medium stores a computer program, which, when executed by one or more processors, implements: The page loading method according to any one of claims 1 to 6; and / or, The page loading method as claimed in claim 7.
