Resource loading method and device and storage medium

By using local resource warehouses to manage resources and preload them on the terminal device, the problem of slow resource load response speed is solved, the amount of data transmission is reduced and the response speed is improved, and fast access is achieved.

CN119322642APending Publication Date: 2025-01-17BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310878860.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-17
Publication Date
2025-01-17

AI Technical Summary

Technical Problem

During the use of terminal device applications, there is a problem of slow response speed when loading resources, especially because the server needs to issue a large amount of data, resulting in wasted bandwidth and traffic.

Method used

By using local resource warehouses to manage resources uniformly on the terminal, the server only needs to issue the identification and target version information of the resource to be loaded. The terminal obtains and preloads the resources from the local resource warehouse to ensure that the local resources are consistent with the server version to reduce the Data transfer volume and increase response speed.

Benefits of technology

It reduces the amount of data transmission from the server to the terminal, saves bandwidth and traffic, improves the response speed of resource loading, and ensures that you can quickly obtain the required resources during subsequent visits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119322642A_ABST
    Figure CN119322642A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a resource loading method and device and a storage medium, and the method comprises the steps: obtaining an identifier of a to-be-loaded resource and target version information from a server through a terminal in response to a preset operation instruction; according to the related information of the to-be-loaded resource, obtaining the to-be-loaded resource from a local current resource set; and pre-loading the to-be-loaded resource before accessing the to-be-loaded resource. The method comprises the following steps: uniformly managing resources by adopting a local resource warehouse on a terminal, triggering to obtain an identifier and target version information of a to-be-loaded resource from a server through a preset operation instruction, and obtaining the to-be-loaded resource from a resource set of the local resource warehouse for preloading on the premise that the local resource warehouse is consistent with the server. The data volume transmitted from the server to the terminal is reduced, the bandwidth and the consumed flow are saved, quick access is realized when the resource needs to be accessed subsequently, and the response speed is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of computer and network communication technology, and in particular, to a resource loading method, device, and storage medium. Background Art

[0002] When using an application on a terminal device, some resources are usually loaded, such as decoration resources.

[0003] When an application needs to load a resource, it usually requests the server, which sends the corresponding resource to the terminal, and then the terminal loads the resource and displays it, which may result in a slow response speed. Summary of the invention

[0004] The embodiments of the present disclosure provide a resource loading method, device and storage medium to improve the response speed of loading resources.

[0005] In a first aspect, an embodiment of the present disclosure provides a resource loading method, including:

[0006] In response to a preset operation instruction, obtaining an identifier of the resource to be loaded and target version information from the server;

[0007] Compare the target version information with the current version information of the local current resource set, and if the current version information is the same as the target version information, obtain the resource to be loaded from the local current resource set according to the identifier;

[0008] The resource to be loaded is preloaded before accessing the resource to be loaded.

[0009] In a second aspect, an embodiment of the present disclosure provides a resource loading method, including:

[0010] receiving a first request sent by a terminal, where the first request is sent by the terminal based on a preset operation instruction;

[0011] Determining an identifier of a resource to be loaded and target version information according to the first request;

[0012] The identifier of the resource to be loaded and the target version information are sent to the terminal, so that the terminal obtains the resource to be loaded from the local current resource set for preloading according to the identifier of the resource to be loaded and the target version information.

[0013] In a third aspect, an embodiment of the present disclosure provides a resource loading device, including:

[0014] An acquisition unit, configured to acquire relevant information of the resource to be loaded from the server in response to a preset operation instruction;

[0015] A query unit, configured to compare the target version information with the current version information of the local current resource set, and if the current version information is the same as the target version information, obtain the resource to be loaded from the local current resource set according to the identifier;

[0016] The loading unit is used to preload the resource to be loaded before accessing the resource to be loaded.

[0017] In a fourth aspect, an embodiment of the present disclosure provides a resource loading device, including:

[0018] A receiving unit, configured to receive a first request sent by a terminal, where the first request is sent by the terminal based on a preset operation instruction;

[0019] a determining unit, configured to determine an identifier of a resource to be loaded and target version information according to the first request;

[0020] The sending unit is used to send the identifier of the resource to be loaded and the target version information to the terminal, so that the terminal obtains the resource to be loaded from the local resource collection for preloading according to the identifier of the resource to be loaded and the target version information.

[0021] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor and a memory;

[0022] The memory stores computer-executable instructions;

[0023] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the resource loading method described in the first aspect and various possible designs of the first aspect, or the resource loading method described in the second aspect and various possible designs of the second aspect.

[0024] In a sixth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the resource loading method described in the first aspect and various possible designs of the first aspect, or the resource loading method described in the second aspect and various possible designs of the second aspect is implemented.

[0025] In the seventh aspect, an embodiment of the present disclosure provides a computer program product, including computer execution instructions. When a processor executes the computer execution instructions, it implements the resource loading method described in the first aspect and various possible designs of the first aspect, or the resource loading method described in the second aspect and various possible designs of the second aspect.

[0026] The resource loading method, device and storage medium provided by the embodiments of the present disclosure obtain the identification and target version information of the resource to be loaded from the server through the terminal in response to the preset operation instruction; compare the target version information with the current version information of the local current resource collection, and if the current version information is the same as the target version information, obtain the resource to be loaded from the local current resource collection according to the identification; and preload the resource to be loaded before accessing the resource to be loaded. By using a local resource warehouse on the terminal to uniformly manage resources, and triggering the acquisition of the identification and target version information of the resource to be loaded from the server through preset operation instructions, the resource to be loaded can be obtained from the current resource collection of the local resource warehouse for preloading on the premise that the current version information of the current resource collection of the local resource warehouse is consistent with that of the server, which reduces the amount of data transmitted from the server to the terminal, saves bandwidth and traffic consumption, and can achieve fast access when the resource needs to be accessed later, thereby improving the response speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the embodiments of the present disclosure 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. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0028] Figure 1 An example diagram of the system architecture of a resource loading method provided in an embodiment of the present disclosure;

[0029] Figure 2 A schematic diagram of a resource loading method flow chart provided in an embodiment of the present disclosure;

[0030] Figure 3 A schematic diagram of the system architecture of a resource loading method provided by another embodiment of the present disclosure;

[0031] Figure 4 A schematic diagram of a resource loading method flow chart provided by another embodiment of the present disclosure;

[0032] Figure 5 A structural block diagram of a resource loading device provided in an embodiment of the present disclosure;

[0033] Figure 6 A structural block diagram of a resource loading device provided by another embodiment of the present disclosure;

[0034] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present disclosure. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0036] When using an application on a terminal device, some resources are usually loaded, such as cosmetic resources, which may include avatar frame decorations, entry animations, and the like.

[0037] When an application needs to load a resource, it usually requests the server, which sends the corresponding resource to the terminal, which then loads and displays it. For example, for costume resources, which are usually pictures or animation resources, there are different styles or types. When a costume resource needs to be loaded, the terminal sends a request to the server, and the server sends the costume resource to the terminal using a specific data structure. However, as the business develops, the resources may become larger and more diverse, resulting in a large amount of bandwidth and traffic being wasted each time the server sends the resource requested by the terminal, which is time-consuming and may lead to a slow response speed in loading resources.

[0038] In order to solve the above technical problems, the present disclosure considers using a local resource warehouse on the terminal to uniformly manage resources. The server only needs to send relevant information of the resources to be loaded to the terminal, and then obtain the resources to be loaded from the local resource collection, which reduces the amount of data transmitted from the server to the terminal, saves bandwidth and consumed traffic; in addition, the process of querying the resources to be loaded from the local resource collection and loading the resources to be loaded also takes time. Considering that when performing certain preset operations in the application, there may be some subsequent operations after these preset operations, and these subsequent operations will access some resources that need to be loaded. For example, in a live broadcast application, when the anchor performs After entering the live broadcast room, you will usually choose to play the opening special effects, that is, after the operation command to enter the live broadcast room, there may be an operation command to play the opening special effects, and the operation command to play the opening special effects requires loading the relevant resources of the opening special effects. Therefore, before the operation command to play the opening special effects is triggered, the relevant resources of the opening special effects can be obtained from the local resource warehouse in advance and preloaded. Then, when the operation command to play the opening special effects is triggered, since the relevant resources of the opening special effects have been preloaded or partially preloaded (preloading has not yet been completed), the operation command to play the opening special effects can be responded to more quickly to play the opening special effects, thereby improving the response speed.

[0039] The resource loading method provided by the present disclosure is applicable to the following scenarios: Figure 1 As shown, a preset operation instruction for the application is triggered on the terminal, and relevant information of the resource to be loaded is obtained from the server; the terminal compares the target version information with the current version information of the local current resource collection, wherein the current local current resource collection can be stored in the local resource warehouse of the terminal; if the current version information is the same as the target version information, the resource to be loaded is obtained from the local current resource collection according to the identifier; and the resource to be loaded is preloaded before accessing the resource to be loaded.

[0040] It should be noted that the user information and data involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0041] The resource loading method disclosed in the present invention will be described in detail below in conjunction with specific embodiments.

[0042] refer to Figure 2 , Figure 2 A schematic diagram of a resource loading method provided in an embodiment of the present disclosure. The method of this embodiment can be applied in a terminal device, and the resource loading method includes:

[0043] S201. In response to a preset operation instruction, obtain an identifier of a resource to be loaded and target version information from a server.

[0044] In this embodiment, the resources to be loaded are resources that need to be accessed by subsequent operation instructions in the terminal application after the preset operation instructions. The resources to be loaded may be different in different applications. For example, the resources to be loaded in the live broadcast application may be dressing resources, including avatar frame decorations, entry animations, various special effects involved in the live broadcast, etc.

[0045] In this embodiment, when certain preset operations are performed in the terminal application, there may be some subsequent operations after these preset operations, and these subsequent operations will access some resources that need to be loaded. For example, in the live broadcast application, when the anchor enters the live broadcast room, he or she will usually choose to play the opening special effect, that is, after the operation instruction to enter the live broadcast room, there may be an operation instruction to play the opening special effect, and the operation instruction to play the opening special effect requires loading the relevant resources of the opening special effect. Usually, after the anchor triggers the opening special effect, the server is requested to load and play the relevant resources of the opening special effect. If the amount of resource data is relatively large, When the value is large, the response speed when requesting resources is slow. Therefore, in this embodiment, for some preset operation instructions of the application, the alternative subsequent operation instructions that exist after the preset operation instructions and the resources that need to be accessed by these alternative subsequent operation instructions can be analyzed, and the mapping relationship between different preset operation instructions and the resources that need to be accessed by the corresponding alternative subsequent operation instructions can be obtained. Then, after detecting that the preset operation instruction is triggered in the application, the resources that may be accessed subsequently can be known in advance as the resources to be loaded, and the relevant information of the resources to be loaded can be obtained in advance, including the identification of the resources to be loaded and the target version information.

[0046] For example, the above mapping relationship may include: the operation instruction of entering the live broadcast room corresponds to the relevant resources of the opening special effects; the operation instruction of opening the data card corresponds to the dressing resources of the data card, etc.

[0047] Optionally, the above mapping relationship can be pre-configured on the terminal, and then when the terminal detects that a preset operation instruction of the application is triggered, the resource to be loaded is determined according to the mapping relationship, and then the identification of the resource to be loaded and the target version information are requested from the server. The target version information is requested because the resource collection on the server may be frequently updated, so the version information of the resource to be loaded at different times may be different, and it is necessary to obtain the latest version information of the resource to be loaded as the target version information of the resource to be loaded.

[0048] Optionally, the above mapping relationship can also be pre-configured on the server. After a preset operation instruction of the application is triggered on the terminal, the server detects that the preset operation instruction is triggered, determines the resources to be loaded according to the mapping relationship, and sends the identification of the resources to be loaded and the target version information to the terminal in advance.

[0049] Furthermore, considering that the server directly sends the resources to be loaded to the terminal, which occupies bandwidth and wastes traffic, and the resources to be loaded may also be sent repeatedly, in this embodiment, a local resource warehouse can be used on the terminal to uniformly manage resources related to one or more applications, and the server only needs to send the identifier of the resource to be loaded and the target version information to the terminal, so that the terminal can obtain the resource to be loaded from the resource collection of the local resource warehouse according to the identifier of the resource to be loaded and the target version information, without the need for the server to send the complete resource data of the resource to be loaded to the terminal. Optionally, the identifier of the resource to be loaded is used for the terminal to query and obtain the resource to be loaded from the resource collection of the local resource warehouse according to the identifier of the resource to be loaded; in addition, the target version information is the version information of the resource to be loaded in the resource collection of the server, and of course, it is also the version information of the resource collection of the server. The target version information is to verify the consistency between the resource collection version of the server and the resource collection version of the local resource warehouse, and also to be able to obtain the required version of the resource to be loaded from the local resource warehouse.

[0050] S202: Compare the target version information with the current version information of the local current resource set. If the current version information is the same as the target version information, obtain the resource to be loaded from the local current resource set according to the identifier.

[0051] In this embodiment, after obtaining the identification and target version information of the resource to be loaded, the terminal can retrieve the resource to be loaded from the local resource warehouse according to the identification and target version information of the resource to be loaded. If the resource to be loaded is retrieved, the resource to be loaded can be obtained from the local resource warehouse.

[0052] Among them, the target version information can be first compared with the current version information of the current resource collection in the local resource warehouse. If the target version information is the same as the current version information, it proves that the resource collection version of the server is consistent with the version of the current resource collection in the local resource warehouse. Then, the resource to be loaded can be retrieved from the local resource library according to the identifier of the resource to be loaded. If the resource to be loaded is retrieved, the resource to be loaded can be obtained from the local resource warehouse, so that the resource to be loaded that meets the target version information can be obtained from the local resource warehouse.

[0053] S203: Preload the resource to be loaded before accessing the resource to be loaded.

[0054] In this embodiment, after acquiring the resources to be loaded, the terminal can load the resources to be loaded at any time, for example, loading the resources to be loaded when the operation of accessing the resources to be loaded is triggered. However, in order to improve the response speed, the terminal can load the resources to be loaded in advance before the operation of accessing the resources to be loaded is triggered, that is, preload the resources to be loaded. In this way, if the operation of accessing the resources to be loaded is triggered later, the resource that has been loaded can be directly accessed without having to load it temporarily, which greatly improves the response speed.

[0055] The resource loading method provided in this embodiment obtains the identifier and target version information of the resource to be loaded from the server side through the terminal in response to the preset operation instruction; compares the target version information with the current version information of the local current resource collection, and if the current version information is the same as the target version information, obtains the resource to be loaded from the local current resource collection according to the identifier; and preloads the resource to be loaded before accessing the resource to be loaded. By using a local resource warehouse on the terminal to uniformly manage resources, and triggering the acquisition of the identifier and target version information of the resource to be loaded from the server side through preset operation instructions, the resource to be loaded can be obtained from the current resource collection of the local resource warehouse for preloading on the premise that the current version information of the current resource collection of the local resource warehouse is consistent with that of the server, which reduces the amount of data transmitted from the server side to the terminal, saves bandwidth and traffic consumption, and can achieve fast access when the resource needs to be accessed later, thereby improving the response speed.

[0056] In any of the above embodiments, the terminal uniformly manages the resource collection of the application through the local resource warehouse, and the resource collection of the application does not exist in the local resource warehouse initially, for example, when the application is just installed on the terminal, or after the resource collection of the application in the local resource warehouse is cleared, the terminal can obtain the resource collection of the application from the server at an appropriate time (for example, when the application is started, or the terminal triggers certain specific operation instructions for the application, such as accessing certain specific pages, triggering certain specific functions, etc.) and store it in the local resource warehouse; in addition, it can also be detected later whether the resource collection in the local resource warehouse is consistent with the resource collection on the server. If inconsistency is detected, the latest resource collection is obtained from the server to update the local resource warehouse.

[0057] Optionally, detecting whether the resource collection in the local resource warehouse is consistent with the resource collection on the server side can be achieved by comparing version information. The detection time can be when the application is started, or when the terminal triggers certain specific operation instructions for the application (such as accessing certain specific pages, triggering certain specific functions), or it can also be detected at a fixed time. The specific detection process can be that the terminal requests the version information of the resource collection on the server side from the server side, and then compares it with the version information of the resource collection in the local resource warehouse. The terminal can also send the version information of the resource collection in the local resource warehouse to the server side, and the server side compares the version information of the resource collection. Optionally, both the terminal and the server side can process the resource collection through algorithms such as MD5, and use the obtained results as version information. When the resource collection on the server side changes arbitrarily, the version information obtained through the MD5 algorithm will change, and by comparing it with the version information obtained by the terminal through the MD5 algorithm for processing the resource collection in the local resource warehouse, it can be determined whether the resource collection in the local resource warehouse is consistent with the resource collection on the server side.

[0058] Based on any of the above embodiments, Figure 3 As shown, a local resource warehouse and a resource management unit of the local resource warehouse can be configured on the terminal, wherein the local resource warehouse can uniformly store the resource collection of the application, and the terminal can obtain the resource collection of the application from the server at an appropriate time and store it in the local resource warehouse. Optionally, each resource may include some other fields in addition to specific resource data (such as pictures, animations, videos, audios, etc.), such as resource identifiers, business type identifiers, priority information, etc. These fields can be obtained from the server, or directly carried in the resource collection obtained from the server, wherein the business type identifier is used to identify the business type to which the resource belongs, and the priority information is used to identify the priority of the resource when preloading, so that when there are multiple resources to be loaded, the multiple resources to be loaded are preloaded in sequence according to the priority information; and the resource management unit can realize interaction with the local resource warehouse, including pulling resource collections, storing resource collections in the local resource warehouse (including the memory and disk corresponding to the local resource warehouse), updating resource collections, querying resources to be loaded, and preloading resources to be loaded according to priority, etc.

[0059] On the basis of the above embodiment, the step S202 of comparing the target version information with the current version information of the local current resource set, and if the current version information is the same as the target version information, obtaining the resource to be loaded from the local current resource set according to the identifier may specifically include:

[0060] S301, sending a resource acquisition request to a resource management unit of the local resource warehouse, wherein the resource acquisition request includes an identifier of the resource to be loaded and target version information;

[0061] S302: The resource management unit compares the target version information with the current version information of the current resource set in the local resource warehouse. If the current version information is the same as the target version information, the resource to be loaded is obtained from the current resource set in the local resource warehouse according to the identifier.

[0062] In this embodiment, when the terminal is using the application, after detecting that a preset operation instruction is triggered, the application can obtain the identifier of the resource to be loaded and the target version information from the server, and then the application sends a resource acquisition request to the resource management unit of the local resource warehouse, and the resource acquisition request includes the identifier of the resource to be loaded and the target version information, so as to request to obtain the resource to be loaded. The resource management unit compares the target version information carried in the resource acquisition request with the current version information of the current resource collection in the local resource warehouse. If the resource management unit determines that the current version information of the current resource collection in the local resource warehouse is the same as the target version information, it means that the current resource collection in the local resource warehouse is consistent with the server, and then the resource to be loaded can be retrieved from the local resource warehouse based on the identifier. If the resource management unit retrieves the resource to be loaded, the resource to be loaded can be obtained and returned to the application for preloading.

[0063] If the resource management unit determines that the current version information of the current resource collection in the local resource warehouse is different from the target version information, it means that the current resource collection in the local resource warehouse is inconsistent with the server, and the resource collection on the server has been updated. At this time, the resources to be loaded that meet the target version information cannot be obtained from the local resource warehouse. The resource management unit can return a first feedback message to the application. The first feedback message is used to indicate that the current version information of the current resource collection in the local resource warehouse is different from the target version information. The application can obtain the resources to be loaded from the server in response to the first feedback message to quickly preload the resources to be loaded.

[0064] Of course, when responding to the first feedback message, the application may not obtain the resources to be loaded from the server separately, but obtain the latest resource collection from the server and send the latest resource collection to the resource management unit, so that the resource management unit updates the current resource collection in the local resource warehouse to the latest resource collection, and then obtains the preloaded resources through the resource management unit and returns them to the application, thereby ensuring the consistency of the resource collection in the local resource warehouse and the server; or, when responding to the first feedback message, the application may first obtain the resources to be loaded from the server, to ensure that the resources to be loaded can be preloaded quickly without waiting for the local resource warehouse to be updated. At any time after obtaining the resources to be loaded from the server, the application can obtain the latest resource collection from the server and send the latest resource collection to the resource management unit, so that the resource management unit updates the current resource collection in the local resource warehouse to the latest resource collection, thereby ensuring the consistency of the resource collection in the local resource warehouse and the server.

[0065] If the resource management unit fails to retrieve the resource to be loaded when retrieving the resource to be loaded from the local resource repository based on the identifier, it means that the resource collection in the local resource repository is inconsistent with the resource collection on the server. For example, the resource collection on the server may have just been updated. The resource management unit may return a second feedback message to the application. The second feedback message is used to indicate that the current resource collection in the local resource repository does not include the resource to be loaded. The application may obtain the resource to be loaded from the server in response to the second feedback message to quickly preload the resource to be loaded.

[0066] Of course, similar to the above embodiment, when responding to the second feedback message, the application may not obtain the resources to be loaded from the server separately, but obtain the latest resource collection from the server, and send the latest resource collection to the resource management unit, so that the resource management unit updates the current resource collection in the local resource warehouse to the latest resource collection, and then obtains the preloaded resources through the resource management unit and returns them to the application; or, when responding to the second feedback message, the application may first obtain the resources to be loaded from the server, and at any time after obtaining the resources to be loaded from the server, the application can obtain the latest resource collection from the server, and send the latest resource collection to the resource management unit, so that the resource management unit updates the current resource collection in the local resource warehouse to the latest resource collection.

[0067] Based on any of the above embodiments, after the application obtains the latest resource set from the server and sends it to the resource management unit, the resource management unit updates the current resource set in the local resource warehouse to the latest resource set.

[0068] Optionally, the local resource warehouse in the terminal is configured with memory (such as cache) and disk, where the disk is used to persistently store the current resource collection, and the current resource collection stored in the disk can be written into the memory. With the help of the higher reading speed of the memory, the resource management unit can be supported to quickly find and obtain the resources to be loaded. When the resource collection is updated, the current resource collection in the memory and disk corresponding to the local resource warehouse needs to be updated to the latest resource collection.

[0069] It should be noted that during the update process, the data format of the latest resource collection can be converted into a unified data format for storage in the memory and disk corresponding to the local resource warehouse, especially the resource data, as well as the resource identification, business type identification, priority information and other fields are converted into a unified format to facilitate resource retrieval.

[0070] refer to Figure 4 , Figure 4 A schematic diagram of a resource loading method provided in an embodiment of the present disclosure. The method of this embodiment can be applied in a server, corresponding to the resource loading method on the terminal side, and the resource loading method includes:

[0071] S401. Receive a first request sent by a terminal, where the first request is sent by the terminal based on a preset operation instruction;

[0072] S402: Determine the identifier of the resource to be loaded and the target version information according to the first request;

[0073] S403: Send the identifier of the resource to be loaded and the target version information to the terminal, so that the terminal obtains the resource to be loaded from a local resource collection for preloading according to the identifier of the resource to be loaded and the target version information.

[0074] Among them, the server can pre-configure the mapping relationship between different preset operation instructions and the resources that the corresponding alternative subsequent operation instructions need to access. Then, after the terminal triggers the preset operation instruction, the terminal can send a first request to the server. The first request can be a network request corresponding to the preset operation instruction. For example, the preset operation instruction is an operation instruction to enter the live broadcast room, and the first request is a request to the server for the live broadcast room data stream. Based on the first request, the server can determine that the terminal has triggered the preset operation instruction, and can determine the resources to be loaded based on the mapping relationship according to the preset operation instruction, and then obtain the identification of the resources to be loaded and the target version information. Of course, the resources to be loaded can also be determined by other means, which are not limited here.

[0075] In addition, if the terminal can determine the resources to be loaded by itself, the terminal can also directly request the identification of the resources to be loaded and the target version information from the server. That is, the terminal can send a first request to the server based on a preset operation instruction. The first request can be a request for the identification of the resources to be loaded and the target version information, or the first request includes a request for the identification of the resources to be loaded and the target version information. After receiving the request for relevant information of the resources to be loaded sent by the terminal, the server directly sends the identification of the resources to be loaded and the target version information to the terminal.

[0076] On the basis of the above embodiment, the target version information is used to compare with the current version information of the local current resource set to determine whether the current resource set is the latest, and the identifier of the resource to be loaded is used by the terminal to obtain the resource to be loaded from the current resource set according to the identifier. The local current resource set can be stored in a local resource warehouse.

[0077] Based on any of the above embodiments, the method may further include:

[0078] A request for obtaining resources to be loaded is received when the terminal cannot obtain the resources to be loaded from the local current resources; and in response to the request for obtaining resources to be loaded, the resources to be loaded are sent to the terminal.

[0079] Based on any of the above embodiments, the method may further include:

[0080] A resource set update request sent by the terminal is received; and in response to the resource set update request, a latest resource set is sent to the terminal, where the latest resource set is used to update a local current resource set of the terminal.

[0081] The implementation principle and technical effects of the resource loading method embodiment on the server side can be found in the resource loading method embodiment on the terminal side, which will not be repeated here.

[0082] Corresponding to the resource loading method on the terminal side of the above embodiment, Figure 5 The structural block diagram of the resource loading device provided in the embodiment of the present disclosure can be used to implement the technical solution of the method embodiment on the terminal side. For the convenience of explanation, only the part related to the embodiment of the present disclosure is shown. Figure 5 The resource loading device 500 includes: an acquisition unit 501, a query unit 502, and a loading unit 503.

[0083] The acquisition unit 501 is used to obtain the identifier of the resource to be loaded and the target version information from the server in response to the preset operation instruction;

[0084] A query unit 502 is used to compare the target version information with the current version information of the local current resource set, and if the current version information is the same as the target version information, obtain the resource to be loaded from the local current resource set according to the identifier;

[0085] The loading unit 503 is used to preload the resource to be loaded before accessing the resource to be loaded.

[0086] In one or more embodiments of the present disclosure, the query unit 502 compares the target version information with the current version information of the local current resource collection, and if the current version information is the same as the target version information, then obtains the resource to be loaded from the local current resource collection according to the identifier, and is used to:

[0087] Sending a resource acquisition request to a resource management unit of the local resource warehouse, wherein the resource acquisition request includes an identifier of the resource to be loaded and target version information;

[0088] The resource management unit compares the target version information with the current version information of the current resource set in the local resource warehouse, and if the current version information is the same as the target version information, obtains the resource to be loaded from the current resource set in the local resource warehouse according to the identifier.

[0089] In one or more embodiments of the present disclosure, the acquisition unit 501 is also used to obtain the resource to be loaded from the server after receiving a first feedback message or a second feedback message from the resource management unit, wherein the first feedback message is used to indicate that the current version information is different from the target version information, and the second feedback message is used to indicate that the current resource collection in the local resource repository does not include the resource to be loaded.

[0090] In one or more embodiments of the present disclosure, after receiving the first feedback message or the second feedback message of the resource management unit, or after acquiring the resource to be loaded from the server, the acquisition unit 501 is further configured to:

[0091] The latest resource set is obtained from the server, and the latest resource set is sent to the resource management unit, so that the resource management unit updates the current resource set in the local resource warehouse to the latest resource set.

[0092] In one or more embodiments of the present disclosure, the acquisition unit 501 sends the latest resource set to the resource management unit so that the resource management unit updates the current resource set in the local resource warehouse to the latest resource set, and is used to:

[0093] The latest resource set is sent to the resource management unit, so that the resource management unit updates the current resource set in the memory and disk corresponding to the local resource warehouse to the latest resource set.

[0094] In one or more embodiments of the present disclosure, any resource of the current resource set in the local resource repository also carries priority information; when the loading unit 503 preloads the resource to be loaded before accessing the resource to be loaded, it is used to:

[0095] If there are multiple resources to be loaded, the multiple resources to be loaded are preloaded in sequence according to the priority information.

[0096] The resource loading device provided in this embodiment can be used to execute the technical solution of the method embodiment on the terminal side mentioned above. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.

[0097] Corresponding to the resource loading method on the server side of the above embodiment, Figure 6 The structural block diagram of the resource loading device provided in the embodiment of the present disclosure can be used to execute the method embodiment of the above-mentioned server side. For the convenience of explanation, only the part related to the embodiment of the present disclosure is shown. Figure 6 The resource loading device 600 includes: a receiving unit 601, a determining unit 602, and a sending unit 603.

[0098] The receiving unit 601 is configured to receive a first request sent by a terminal, where the first request is sent by the terminal based on a preset operation instruction;

[0099] A determining unit 602, configured to determine an identifier of a resource to be loaded and target version information according to the first request;

[0100] The sending unit 603 is used to send the identifier of the resource to be loaded and the target version information to the terminal, so that the terminal obtains the resource to be loaded from the local current resource set for preloading according to the identifier of the resource to be loaded and the target version information.

[0101] In one or more embodiments of the present disclosure, an identifier and target version information, wherein the target version information is used to compare the current version information of the local current resource collection to determine whether the current resource collection is the latest, and the identifier of the resource to be loaded is used by the terminal to obtain the resource to be loaded from the current resource collection according to the identifier.

[0102] In one or more embodiments of the present disclosure, the receiving unit 601 is further configured to receive a resource acquisition request to be loaded sent by the terminal when the terminal cannot acquire the resource to be loaded from the local current resource set;

[0103] The sending unit 603 is further configured to send the resource to be loaded to the terminal in response to the request for obtaining the resource to be loaded.

[0104] In one or more embodiments of the present disclosure, the receiving unit 601 is further configured to receive a resource set update request sent by the terminal;

[0105] The sending unit 603 is further configured to send the latest resource set to the terminal in response to the resource set update request, where the latest resource set is used to update the local current resource set of the terminal.

[0106] The resource loading device provided in this embodiment can be used to execute the technical solution of the method embodiment on the server side. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.

[0107] refer to Figure 7 , which shows a schematic diagram of the structure of an electronic device 700 suitable for implementing the embodiment of the present disclosure, and the electronic device 700 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0108] like Figure 7As shown, the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 to a random access memory (RAM) 703. Various programs and data required for the operation of the electronic device 700 are also stored in the RAM 703. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0109] Typically, the following devices may be connected to the I / O interface 705: input devices 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 708 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 709. The communication devices 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 700 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0110] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes 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 device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method on the terminal side or the service side of the embodiment of the present disclosure are executed.

[0111] It should be noted that the computer-readable medium disclosed above 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 disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, 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 suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0112] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0113] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the terminal side or server side embodiment.

[0114] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0115] 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 disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / 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.

[0116] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0117] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0118] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.

[0119] In a first aspect, according to one or more embodiments of the present disclosure, a resource loading method is provided, comprising:

[0120] In response to a preset operation instruction, obtaining an identifier of the resource to be loaded and target version information from the server;

[0121] Compare the target version information with the current version information of the local current resource set, and if the current version information is the same as the target version information, obtain the resource to be loaded from the local current resource set according to the identifier;

[0122] The resource to be loaded is preloaded before accessing the resource to be loaded.

[0123] The comparing the target version information with the current version information of the local current resource set, and if the current version information is the same as the target version information, acquiring the resource to be loaded from the local current resource set according to the identifier, includes:

[0124] Sending a resource acquisition request to a resource management unit of the local resource warehouse, wherein the resource acquisition request includes an identifier of the resource to be loaded and target version information;

[0125] The resource management unit compares the target version information with the current version information of the current resource set in the local resource warehouse, and if the current version information is the same as the target version information, obtains the resource to be loaded from the current resource set in the local resource warehouse according to the identifier.

[0126] According to one or more embodiments of the present disclosure, the method further includes:

[0127] If a first feedback message or a second feedback message of the resource management unit is received, the resource to be loaded is obtained from the server, wherein the first feedback message is used to indicate that the current version information is different from the target version information, and the second feedback message is used to indicate that the current resource collection in the local resource repository does not include the resource to be loaded.

[0128] According to one or more embodiments of the present disclosure, after receiving the first feedback message or the second feedback message of the resource management unit, or after acquiring the resource to be loaded from the server, the method further includes:

[0129] The latest resource set is obtained from the server, and the latest resource set is sent to the resource management unit, so that the resource management unit updates the current resource set in the local resource warehouse to the latest resource set.

[0130] According to one or more embodiments of the present disclosure, the sending the latest resource set to the resource management unit so that the resource management unit updates the current resource set in the local resource warehouse to the latest resource set includes:

[0131] The latest resource set is sent to the resource management unit, so that the resource management unit updates the current resource set in the memory and disk corresponding to the local resource warehouse to the latest resource set.

[0132] According to one or more embodiments of the present disclosure, any resource of the current resource set in the local resource warehouse also carries priority information; and preloading the resource to be loaded before accessing the resource to be loaded includes:

[0133] If there are multiple resources to be loaded, the multiple resources to be loaded are preloaded in sequence according to the priority information.

[0134] In a second aspect, according to one or more embodiments of the present disclosure, a resource loading method is provided, including:

[0135] Receiving a first request sent by a terminal, where the first request is sent by the terminal based on a preset operation instruction;

[0136] Determining an identifier of a resource to be loaded and target version information according to the first request;

[0137] The identifier of the resource to be loaded and the target version information are sent to the terminal, so that the terminal obtains the resource to be loaded from the local current resource set for preloading according to the identifier of the resource to be loaded and the target version information.

[0138] According to one or more embodiments of the present disclosure, the target version information is used to compare with the current version information of the local current resource collection to determine whether the current resource collection is the latest, and the identifier of the resource to be loaded is used by the terminal to obtain the resource to be loaded from the current resource collection according to the identifier.

[0139] According to one or more embodiments of the present disclosure, the method further includes:

[0140] receiving a request for obtaining a resource to be loaded sent by the terminal when the terminal cannot obtain the resource to be loaded from the local current resource set;

[0141] In response to the request for obtaining the resource to be loaded, the resource to be loaded is sent to the terminal.

[0142] According to one or more embodiments of the present disclosure, the method further includes:

[0143] receiving a resource set update request sent by the terminal;

[0144] In response to the resource set update request, a latest resource set is sent to the terminal, where the latest resource set is used to update a local current resource set of the terminal.

[0145] In a third aspect, according to one or more embodiments of the present disclosure, a resource loading device is provided, including:

[0146] An acquisition unit, configured to acquire, in response to a preset operation instruction, an identifier of a resource to be loaded and target version information from a server;

[0147] A query unit, configured to compare the target version information with the current version information of the local current resource set, and if the current version information is the same as the target version information, obtain the resource to be loaded from the local current resource set according to the identifier;

[0148] The loading unit is used to preload the resource to be loaded before accessing the resource to be loaded.

[0149] According to one or more embodiments of the present disclosure, when the query unit compares the target version information with the current version information of the local current resource collection, if the current version information is the same as the target version information, then when acquiring the resource to be loaded from the local current resource collection according to the identifier, it is used to:

[0150] Sending a resource acquisition request to a resource management unit of the local resource warehouse, wherein the resource acquisition request includes an identifier of the resource to be loaded and target version information;

[0151] The resource management unit compares the target version information with the current version information of the current resource set in the local resource warehouse, and if the current version information is the same as the target version information, obtains the resource to be loaded from the current resource set in the local resource warehouse according to the identifier.

[0152] According to one or more embodiments of the present disclosure, the acquisition unit is also used to obtain the resource to be loaded from the server after receiving a first feedback message or a second feedback message from the resource management unit, wherein the first feedback message is used to indicate that the current version information is different from the target version information, and the second feedback message is used to indicate that the current resource collection in the local resource repository does not include the resource to be loaded.

[0153] According to one or more embodiments of the present disclosure, after receiving the first feedback message or the second feedback message of the resource management unit, or after acquiring the resource to be loaded from the server, the acquisition unit is further configured to:

[0154] The latest resource set is obtained from the server, and the latest resource set is sent to the resource management unit, so that the resource management unit updates the current resource set in the local resource warehouse to the latest resource set.

[0155] According to one or more embodiments of the present disclosure, when the acquisition unit sends the latest resource set to the resource management unit so that the resource management unit updates the current resource set in the local resource warehouse to the latest resource set, it is used to:

[0156] The latest resource set is sent to the resource management unit, so that the resource management unit updates the current resource set in the memory and disk corresponding to the local resource warehouse to the latest resource set.

[0157] According to one or more embodiments of the present disclosure, any resource of the current resource set in the local resource repository also carries priority information; when the loading unit preloads the resource to be loaded before accessing the resource to be loaded, it is used to:

[0158] If there are multiple resources to be loaded, the multiple resources to be loaded are preloaded in sequence according to the priority information.

[0159] In a fourth aspect, according to one or more embodiments of the present disclosure, a resource loading device is provided, including:

[0160] A receiving unit, configured to receive a first request sent by a terminal, where the first request is sent by the terminal based on a preset operation instruction;

[0161] a determining unit, configured to determine an identifier of a resource to be loaded and target version information according to the first request;

[0162] The sending unit is used to send the identifier of the resource to be loaded and the target version information to the terminal, so that the terminal obtains the resource to be loaded from the local current resource set for preloading according to the identifier of the resource to be loaded and the target version information.

[0163] According to one or more embodiments of the present disclosure, the target version information is used to compare with the current version information of the local current resource collection to determine whether the current resource collection is the latest, and the identifier of the resource to be loaded is used by the terminal to obtain the resource to be loaded from the current resource collection according to the identifier.

[0164] According to one or more embodiments of the present disclosure, the receiving unit is further configured to receive a resource acquisition request to be loaded sent by the terminal when the terminal cannot acquire the resource to be loaded from the local current resource set;

[0165] The sending unit is further configured to send the resource to be loaded to the terminal in response to the request for obtaining the resource to be loaded.

[0166] According to one or more embodiments of the present disclosure, the receiving unit is further configured to receive a resource set update request sent by the terminal;

[0167] The sending unit is further configured to send the latest resource set to the terminal in response to the resource set update request, where the latest resource set is used to update the local current resource set of the terminal.

[0168] In a fifth aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;

[0169] The memory stores computer-executable instructions;

[0170] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the resource loading method described in the first aspect and various possible designs of the first aspect, or the resource loading method described in the second aspect and various possible designs of the second aspect.

[0171] In a sixth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the resource loading method described in the first aspect and various possible designs of the first aspect, or the resource loading method described in the second aspect and various possible designs of the second aspect is implemented.

[0172] In the seventh aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, comprising computer execution instructions. When a processor executes the computer execution instructions, the resource loading method described in the first aspect and various possible designs of the first aspect, or the resource loading method described in the second aspect and various possible designs of the second aspect is implemented.

[0173] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.

[0174] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0175] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A resource loading method, characterized in that: include: In response to a preset operation instruction, obtaining an identifier of the resource to be loaded and target version information from the server; Compare the target version information with the current version information of the local current resource set, and if the current version information is the same as the target version information, obtain the resource to be loaded from the local current resource set according to the identifier; The resource to be loaded is preloaded before accessing the resource to be loaded.

2. The method according to claim 1, characterized in that The comparing the target version information with the current version information of the local current resource set, and if the current version information is the same as the target version information, acquiring the resource to be loaded from the local current resource set according to the identifier, includes: Sending a resource acquisition request to a resource management unit of a local resource warehouse, wherein the resource acquisition request includes an identifier of the resource to be loaded and target version information; The resource management unit compares the target version information with the current version information of the current resource set in the local resource warehouse, and if the current version information is the same as the target version information, obtains the resource to be loaded from the current resource set in the local resource warehouse according to the identifier.

3. The method according to claim 2, characterized in that Also includes: If a first feedback message or a second feedback message of the resource management unit is received, the resource to be loaded is obtained from the server, wherein the first feedback message is used to indicate that the current version information is different from the target version information, and the second feedback message is used to indicate that the current resource collection in the local resource repository does not include the resource to be loaded.

4. The method according to claim 3, characterized in that After receiving the first feedback message or the second feedback message of the resource management unit, or after acquiring the resource to be loaded from the server, the method further includes: The latest resource set is obtained from the server, and the latest resource set is sent to the resource management unit, so that the resource management unit updates the current resource set in the local resource warehouse to the latest resource set.

5. The method according to claim 4, characterized in that The sending the latest resource set to the resource management unit so that the resource management unit updates the current resource set in the local resource warehouse to the latest resource set includes: The latest resource set is sent to the resource management unit, so that the resource management unit updates the current resource set in the memory and disk corresponding to the local resource warehouse to the latest resource set.

6. The method according to any one of claims 2 to 5, characterized in that: Any resource in the current resource set in the local resource warehouse also carries priority information; and preloading the resource to be loaded before accessing the resource to be loaded includes: If there are multiple resources to be loaded, the multiple resources to be loaded are preloaded in sequence according to the priority information.

7. A resource loading method, characterized in that: include: receiving a first request sent by a terminal, where the first request is sent by the terminal based on a preset operation instruction; Determining an identifier of a resource to be loaded and target version information according to the first request; The identifier of the resource to be loaded and the target version information are sent to the terminal, so that the terminal obtains the resource to be loaded from the local current resource set for preloading according to the identifier of the resource to be loaded and the target version information.

8. The method according to claim 7, characterized in that The target version information is used to compare with the current version information of the local current resource set to determine whether the current resource set is the latest, and the identifier of the resource to be loaded is used by the terminal to obtain the resource to be loaded from the current resource set according to the identifier.

9. The method according to claim 7, characterized in that: Also includes: receiving a request for obtaining a resource to be loaded sent by the terminal when the terminal cannot obtain the resource to be loaded from the local current resource set; In response to the request for obtaining the resource to be loaded, the resource to be loaded is sent to the terminal.

10. The method according to claim 7, characterized in that Also includes: receiving a resource set update request sent by the terminal; In response to the resource set update request, a latest resource set is sent to the terminal, where the latest resource set is used to update a local current resource set of the terminal.

11. A resource loading device, characterized in that: include: An acquisition unit, configured to acquire, in response to a preset operation instruction, an identifier of a resource to be loaded and target version information from a server; A query unit, configured to compare the target version information with the current version information of the local current resource set, and if the current version information is the same as the target version information, obtain the resource to be loaded from the local current resource set according to the identifier; The loading unit is used to preload the resource to be loaded before accessing the resource to be loaded.

12. A resource loading device, characterized in that: include: A receiving unit, configured to receive a first request sent by a terminal, where the first request is sent by the terminal based on a preset operation instruction; a determining unit, configured to determine an identifier of a resource to be loaded and target version information according to the first request; The sending unit is used to send the identifier of the resource to be loaded and the target version information to the terminal, so that the terminal obtains the resource to be loaded from the local current resource set for preloading according to the identifier of the resource to be loaded and the target version information.

13. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method according to any one of claims 1 to 10.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the method according to any one of claims 1 to 10 is implemented.

15. A computer program product, characterized in that The method comprises computer-executable instructions, and when a processor executes the computer-executable instructions, the method according to any one of claims 1 to 10 is implemented.