Window page loading method and device, electronic equipment and storage medium

By determining and using historical metadata from the media files to be loaded, the problem of slow loading of window pages is solved, and the display window pages is quickly loaded, which improves the user experience.

CN119248410APending Publication Date: 2025-01-03CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411457827.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

During the window page loading process of multimedia applications, as the window display content increases and the image clarity needs increase, the loading resources increase, resulting in a slow loading process and the display window page cannot be rendered in time, affecting the user's visual perception.

Method used

By determining the metadata from the media file to be loaded, including the first metadata that successfully matches the historical element and the second metadata that fails to match, a display page is generated, and the historical element is updated based on the second metadata, Directly use the historical primitives that match successfully to replace the loading resources required for the first primitive data, save real-time loading resources, and quickly load the display window page.

Benefits of technology

It realizes the method of quickly generating display window pages, which reduces loading resource usage, improves loading speed, avoids image display lag, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248410A_ABST
    Figure CN119248410A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of images, and discloses a window page loading method and device, electronic equipment and a storage medium, and the method comprises the following steps: determining to-be-loaded metadata and primitive data from a to-be-loaded media file of a specified application; wherein the primitive data comprises first primitive data successfully matched with historical primitives and second primitive data unsuccessfully matched with the historical primitives; the historical primitive comes from at least one of a historical window page, a historical entity file in a storage library and a historical media file in each application; generating a display page of the specified application according to the historical primitives successfully matched with the first primitive data, loading resources required for loading the metadata and loading resources required for the second primitive data, and updating the historical primitives based on the second primitive data and the loading resources required for the second primitive data; and according to the display page corresponding to each specified application and other to-be-loaded data, loading to obtain a current window page of the display window. The method is high in loading speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image technology, and in particular to a method, device, electronic device and storage medium for loading a window page. Background Art

[0002] With the development of multi-media applications and users' demand for different media applications, it is necessary to simultaneously display the display pages of multiple media applications in the display window of the display terminal, that is, it is necessary to simultaneously load the media files in each media application to render the display pages of each media application, thereby obtaining the entire window page of the display window.

[0003] As the window display content increases and the demand for display image clarity increases, more loading resources are required, resulting in a slow loading process and an inability to render the window page of the display window in time, which affects the user's visual perception due to image display freezes. Summary of the invention

[0004] In view of the above problems, the present application provides a window page loading method, device, electronic device and storage medium for quickly generating a window page of a display window.

[0005] According to one aspect of the present application, a loading method is provided, the loading method comprising: determining metadata and graphic elements to be loaded from the media files to be loaded of a specified application; wherein the graphic elements comprise first graphic elements that successfully match the historical graphic elements, and second graphic elements that fail to match; the historical graphic elements are derived from at least one of a historical window page, a historical entity file in a repository, and historical media files in each application; generating a display page of the specified application based on historical graphic elements that successfully match the first graphic elements, loading resources required for loading the metadata, and loading resources required for the second graphic elements, and updating the historical graphic elements based on the second graphic elements and the loading resources required for the second graphic elements; and loading the current window page of the display window based on the display pages corresponding to each specified application and other data to be loaded.

[0006] In an optional manner, the loading method also includes: if the current window page and the historical window page both include the same target primitive, the target primitive is updated to a new historical primitive, and the primitive number of the target primitive is used as the preset number of the new historical primitive; wherein the target primitive is not the historical primitive.

[0007] In an optional manner, the generating of the display page of the designated application based on the historical entities successfully matched with the first entity metadata, the loading resources required for loading the metadata, and the loading resources required for the second entity metadata further includes: decrypting the encrypted target key according to the private key to obtain the target key; wherein the encrypted target key is a public key paired with the private key, obtained by encrypting the target key; decrypting the historical entities successfully matched with the first entity metadata according to the target key to obtain the loading resources corresponding to the historical entities; generating the display page of the designated application based on the loading resources corresponding to the historical entities, the loading resources required for the metadata, and the loading resources required for the second entity metadata.

[0008] In an optional manner, the second graphic element data includes type data representing the graphic element type, color data representing the graphic element color, and shape data representing the graphic element shape; the updating of the historical graphic element based on the second graphic element data and the loading resources required by the second graphic element data further includes: loading the updated graphic element based on the loading resources required by the second graphic element data; determining the directory information of the updated graphic element based on the type data, color data, and shape data; wherein the directory information includes multiple subcategories; generating an encoding of the updated graphic element based on the directory information, and updating the historical graphic element based on the loading resources required by the second graphic element data and the encoding of the updated graphic element; wherein the length of the encoding is related to the number of subcategories of the directory information.

[0009] In an optional manner, the updating of the historical primitive based on the loading resources required by the second primitive data and the encoding of the updated primitive further includes: compressing and encrypting the loading resources required by the second primitive data to obtain the target loading resources corresponding to the updated primitive; updating the updated primitive to a historical primitive, and using the encoding of the updated primitive as index information to obtain the target loading resources.

[0010] In an optional manner, the generating of the display page of the specified application based on the historical graphics element successfully matched with the first graphics element metadata, the loading resources required for loading the metadata, and the loading resources required for loading the second graphics element metadata further includes: generating the initial display page of the specified application based on the loading resources required for loading the metadata and the loading resources required for loading the second graphics element metadata; inserting the historical graphics element successfully matched with the first graphics element into the initial display page to generate the display page of the specified application.

[0011] In an optional manner, the loading method further includes: matching each element number in the element data with a preset number of the historical element; using the element data with a successful match as the first element data, and using the element data with an unsuccessful match as the second element data.

[0012] According to another aspect of the present application, a window page loading device is provided, the loading device comprising: a determination module, used to determine metadata and graphic elements to be loaded from the media files to be loaded of the specified application; wherein the graphic elements include first graphic elements that successfully match the historical graphic elements, and second graphic elements that fail to match; the historical graphic elements are derived from at least one of the historical window pages, historical entity files in the repository, and historical media files in each application; a generation and update module, used to generate a display page of the specified application based on the historical graphic elements that successfully match the first graphic elements, the loading resources required to load the metadata, and the loading resources required for the second graphic elements, and update the historical graphic elements based on the second graphic elements and the loading resources required for the second graphic elements; a loading module, used to load the current window page of the display window according to the display pages corresponding to each specified application and other data to be loaded.

[0013] According to one aspect of the present application, an electronic device is provided, including: a controller; and a memory for storing one or more programs, wherein when the one or more programs are executed by the controller, the above-mentioned loading method is executed.

[0014] According to one aspect of the present application, a computer-readable storage medium is also provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the above-mentioned loading method.

[0015] According to one aspect of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned loading method.

[0016] This application processes and analyzes the to-be-loaded media files of the specified application to determine the first metadata that successfully matches the historical metadata, so as to directly use the successfully matched historical metadata to replace the loading resources required for the first metadata, so as to speed up the generation of the display page of the specified application, save real-time loading resources, and quickly load the window page of the display window. At the same time, the second metadata that does not successfully match the historical metadata is updated to the historical metadata, so as to update the historical metadata in real time and facilitate the rapid loading of subsequent window pages.

[0017] The above description is only an overview of the technical solutions of the embodiments of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 It is a flowchart of a method for loading a window page shown in an exemplary embodiment of the present application.

[0020] Figure 2 It is a window page schematic diagram of a display window shown in an exemplary embodiment of the present application.

[0021] Figure 3 is based on Figure 1 The exemplary embodiment shown is a flow chart of another method for loading a window page.

[0022] Figure 4 It is a schematic diagram of directory information shown in an exemplary embodiment of the present application.

[0023] Figure 5 It is a schematic diagram of a rendering process of a display page of a specified application shown in an exemplary embodiment of the present application.

[0024] Figure 6 It is a structural diagram of a window page loading device shown in an exemplary embodiment of the present application.

[0025] Figure 7 It is a structural diagram of a computer system of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0026] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0027] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0028] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0029] The term "multiple" as used in this application refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0030] The display requirements of the display window are increasing day by day, the required display content is increasing, and the demand for display image clarity is increasing. More loading resources are required, resulting in a slow loading process and an inability to render the window page of the display window in time, resulting in image display freezes and affecting the user's visual perception.

[0031] To this end, one aspect of the present application provides a method for loading a window page. Figure 1 , Figure 1 1 is a flow chart of a method for loading a window page shown in an exemplary embodiment of the present application. The loading method at least includes S110 to S130, which are described in detail as follows:

[0032] S110: Determine the metadata and graphic metadata to be loaded from the media files to be loaded of the specified application; wherein the graphic metadata includes the first graphic metadata that successfully matches the historical graphic element, and the second graphic metadata that fails to match; the historical graphic element comes from at least one of the historical window page, the historical entity file in the repository, and the historical media files in each application.

[0033] The media file to be loaded also includes audio data, etc., so that the specified application can load the corresponding output audio while loading the display page. Metadata is other image data in the loaded media file except for the image metadata. Metadata is image data that needs to occupy real-time loading resources to load.

[0034] The metadata includes but is not limited to the number of the corresponding primitive, type data representing the primitive type, color data representing the primitive color, shape data representing the primitive shape, etc. A primitive is the basic building block of an image, which can be an icon, pixel, color block, shape, texture, etc.

[0035] The sources of historical graphics are various, and their sources and applications are not limited to a single application. They can come from the historical window page of the display window, the historical entity files in the system repository (a database independent of each application), and the historical media files stored in the application. The historical graphics can be directly used to generate the corresponding virtual page. Different historical graphics correspond to different preset numbers. In some embodiments, the historical graphics also correspond to loading resources.

[0036] The data of various existing applications cannot be common and shared, and it is necessary to build data application rules, data storage repositories, etc. for different applications respectively, which makes data storage cumbersome and large in quantity. The present application overcomes the conventional solidified thinking, breaks the application restrictions of historical graphics, realizes the sharing of historical graphics, enables historical graphics to be shared between different applications, and directly uses historical graphics to generate display pages for various applications. At the same time, the historical graphics of the present application can not only generate display pages for corresponding applications, but also can be used to generate window pages for display windows, that is, historical graphics can be used to generate virtual pages at different levels. Obviously, the present application not only enriches the source of historical graphics, but also enriches its application.

[0037] The following is an exemplary description of how to determine the first metadata and the second metadata: match each entity number in the metadata with the preset number of the historical entity; use the metadata that successfully matches as the first metadata, and use the metadata that fails to match as the second metadata.

[0038] Among them, the element number of the first element data successfully matches the preset number of any historical element; and the element number of the second element data fails to match the preset numbers of all historical elements.

[0039] By traversing each primitive number, the traversed primitive numbers are matched one by one with the preset numbers of each historical primitive, so as to obtain the matching results of each primitive number, to ensure that the matching results of each primitive number are determined accurately without omission, thereby accurately determining the first primitive data and the second primitive data.

[0040] S120: Generate a display page for a specified application based on the historical primitives that successfully match the first primitive data, the loading resources required for the loading metadata, and the loading resources required for the second primitive data, and update the historical primitives based on the second primitive data and the loading resources required for the second primitive data.

[0041] The loading resource may be a memory resource, that is, occupying a memory resource of a corresponding size to complete the loading of the relevant data, thereby generating a display page of a specified application. The loading resource may also be a thread resource, that is, loading the relevant data through a relevant thread to generate a display page of a specified application.

[0042] The following is an example of how to generate a display page for a specified application:

[0043] Exemplarily, a decryption operation is performed on an encrypted target key according to a private key to obtain a target key; wherein the encrypted target key is obtained by encrypting the target key with a public key paired with the private key; a decryption operation is performed on a historical element that successfully matches the first element metadata according to the target key to obtain a loading resource corresponding to the historical element; a display page of a specified application is generated according to the loading resources corresponding to the historical element, the loading resources required for the metadata, and the loading resources required for the second element metadata.

[0044] For example: the target key is symmetric key A, private key B and public key C are paired asymmetric keys, and in some embodiments, symmetric key A can be encrypted using public key C and signed using private key B to obtain the encrypted target key. The encrypted target key can be decrypted according to private key B to obtain symmetric key A, and the historical element that successfully matches the first element data is decrypted using symmetric key A to quickly obtain the loading resources corresponding to the historical element without occupying real-time loading resources, so as to quickly generate a display page including the historical element. In some embodiments, after the historical element is decrypted, it is also necessary to decompress it to obtain the corresponding loading resources. Compressing and storing the loading resources of historical elements can save storage space to improve the utilization rate of element storage space.

[0045] In another exemplary embodiment, based on the loading resources required for the loading metadata and the loading resources required for the second metadata, an initial display page of a specified application is generated; the historical graphics element that successfully matches the first graphics element is inserted into the initial display page to generate a display page of the specified application. The historical graphics element is a ready-made image that can be directly inserted into the corresponding page, and it does not need to load resources for loading.

[0046] In this exemplary embodiment, relevant loading resources are loaded to generate an initial display page, and the historical graphic element is directly inserted into the initial display page, and the display page of the specified application can be generated more quickly without loading the loading resources related to the historical graphic element. In some embodiments, the historical graphic element needs to be decrypted and / or decompressed before the decrypted and / or decompressed historical graphic element can be inserted into the initial display page. For relevant instructions, refer to the above exemplary instructions.

[0047] This application can update historical graphics in real time to enrich historical graphics and facilitate the rapid generation of display pages and window pages of display windows of subsequent related applications.

[0048] S130: Load and obtain the current window page of the display window according to the display pages corresponding to the designated applications and other data to be loaded.

[0049] See also Figure 2 , Figure 2 : is a schematic diagram of a window page of a display window shown in an exemplary embodiment of the present application. In which, the specified applications A, B, and C occupy different positions in the display window respectively. The corresponding specified applications are loaded at different positions of the display window, thereby completing the page loading of the entire display window to generate a window page. In some embodiments, the entire display page of the specified application can be used as a new graphic element, for example: Figure 2 The display page generated by area A (the area displayed by designated application A) is used as a new graphic element, and a new graphic element can also be extracted according to the current window page of the display window to update the historical graphic element. For example: Figure 2 The display page combining areas B and C is used as a new graphic element.

[0050] This embodiment processes and analyzes the to-be-loaded media files of the specified application to determine the first metadata that successfully matches the historical metadata, thereby directly using the successfully matched historical metadata to replace the loading resources required by the first metadata, so as to speed up the generation of the display page of the specified application, save real-time loading resources, and quickly load the window page of the display window. At the same time, the second metadata that does not successfully match the historical metadata is updated to the historical metadata, so as to update the historical metadata in real time and facilitate the rapid loading of subsequent window pages.

[0051] In another exemplary embodiment, the current window page is compared and analyzed with the historical window page to determine the same graphic elements in the two so as to update the historical graphic elements.

[0052] Exemplarily, if the current window page and the historical window page both include the same target primitive, the target primitive is updated to a new historical primitive, and the primitive number of the target primitive is used as the preset number of the new historical primitive; wherein the target primitive is not a historical primitive.

[0053] The concept of a history window page can be a single page or multiple pages. For example, if a preset number of target primitives appear in multiple history window pages adjacent to the current moment, or if a preset number of history windows all include target primitives, the target primitives can be used as new history primitives to update the history primitives. In some embodiments, the corresponding loading resources need to be compressed and / or encrypted, and a connection is established with the primitive number, so as to quickly obtain the corresponding loading resources according to the primitive number for the generation of the corresponding virtual page.

[0054] In another exemplary embodiment of the present application, how to update the historical primitive based on the second primitive data and the loading resources required by the second primitive data is described in detail. Figure 3 , Figure 3 is based on Figure 1 The exemplary embodiment shown is a flow chart of another method for loading a window page. The loading method is as follows Figure 1 The S120 shown further includes S310 to S330; wherein the second graphic element data includes type data representing the type of graphic element, color data representing the color of the graphic element, and shape data representing the shape of the graphic element, which are described in detail as follows:

[0055] S310: Loading an updated primitive based on the loading resources required by the second primitive data.

[0056] The loading resources required for loading the second graphic element data in the designated application can obtain the graphic element displayed in the display page of the designated application, that is, the updated graphic element in this embodiment.

[0057] S320: Determine directory information of updated primitives according to type data, color data, and shape data; wherein the directory information includes multiple subcategories.

[0058] See also Figure 4 , Figure 4 This is a schematic diagram of directory information shown in an exemplary embodiment of the present application. Among them, detailed classification can be performed according to the type, color, and shape of the primitive. For example, the type is the first directory, the color is the second directory under the first directory (i.e., a subdirectory in the first directory), and the shape is the third directory under the second directory (i.e., a subdirectory in the second directory).

[0059] In some embodiments, the graphic metadata does not necessarily include type data, color data and shape data. Directory information can be generated by a single data, or based on two of the data, or by the above three data and other data.

[0060] S330: Generate a code for the updated primitive according to the directory information, and update the historical primitive based on the loading resources required by the second primitive data and the code for the updated primitive; wherein the length of the code is related to the number of subcategories in the directory information.

[0061] Among them, all historical graphics elements have corresponding codes and corresponding loading resources.

[0062] Exemplarily, the number of encoding bits of a primitive is closely related to the number of subcategories, and the number of encoding bits of an updated primitive = 5 (preset initial number) + number of subcategories. For example, the directory information of an updated primitive includes 2 subcategories, and the number of encoding bits is 5+2=7.

[0063] The following is a detailed introduction to the update process of historical elements:

[0064] The loading resources required for the second primitive data are compressed and encrypted to obtain the target loading resources corresponding to the updated primitive; the updated primitive is updated to the historical primitive, and the encoding of the updated primitive is used as index information to obtain the target loading resources.

[0065] Exemplarily, each sub-directory is determined by the corresponding digits in the code, the sub-directory corresponding to the type data is determined according to the 6th digit in the code, the sub-directory corresponding to the color data is determined according to the 7th digit, and the sub-directory corresponding to the shape data is determined according to the 8th digit.

[0066] See also Figure 5 , Figure 5 This is a schematic diagram of the rendering process of the display page of a specified application shown in an exemplary embodiment of the present application. Data processing is performed on the media file to be loaded, metadata and image metadata are determined, and it is detected whether there is a historical image element to be matched in the historical image element library; if so, the relevant data corresponding to the historical image element that successfully matches the first image element is directly obtained, and the data is decrypted and decompressed to obtain the corresponding loading resource or the image of the historical image element; if not, the loading resource required to load the second image element is directly obtained, and the second image element is updated to the historical image element.

[0067] Based on the loading resources required to load the metadata, the loading resources required to load the second graphic element, the loading resources corresponding to the historical graphic element or the image of the historical graphic element, the display page of the specified application is rendered to obtain the display image of each area of ​​the display window to generate the current window page of the display window.

[0068] Another aspect of the present application also provides a window page loading device, such as Figure 6 As shown, Figure 6 600 is a schematic diagram of a loading device for a window page according to an exemplary embodiment of the present application. The loading device 600 includes:

[0069] The determination module 610 is used to determine the metadata and the image metadata to be loaded from the media files to be loaded of the specified application; wherein the image metadata includes the first image metadata that successfully matches the historical image element and the second image metadata that fails to match; the historical image element comes from at least one of the historical window page, the historical entity file in the storage library, and the historical media files in each application;

[0070] A generation and update module 630 is used to generate a display page of a specified application according to the historical primitives successfully matched by the first primitive data, the loading resources required by the loading metadata, and the loading resources required by the second primitive data, and to update the historical primitives based on the second primitive data and the loading resources required by the second primitive data;

[0071] The loading module 650 is used to load the current window page of the display window according to the display pages corresponding to each designated application and other data to be loaded.

[0072] In another exemplary embodiment, the loading device 600 further includes:

[0073] An update module is used to update the target element to a new historical element if the current window page and the historical window page both include the same target element, and use the element number of the target element as the preset number of the new historical element; wherein the target element is not a historical element.

[0074] In another exemplary embodiment, the generation update module 630 further includes:

[0075] A first decryption unit is used to perform a decryption operation on the encrypted target key according to the private key to obtain the target key; wherein the encrypted target key is obtained by encrypting the target key with a public key paired with the private key;

[0076] A second decryption unit is used to perform a decryption operation on the historical graphic element that successfully matches the first graphic element data according to the target key to obtain a loading resource corresponding to the historical graphic element;

[0077] The display page generating unit is used to generate a display page of a specified application according to the loading resources corresponding to the historical graphic element, the loading resources required by the metadata, and the loading resources required by the second graphic element metadata.

[0078] In another exemplary embodiment, the second graphic element data includes type data representing a type of the graphic element, color data representing a color of the graphic element, and shape data representing a shape of the graphic element;

[0079] The generation update module 630 further includes:

[0080] An updating primitive unit, used for loading updated primitives based on the loading resources required by the second primitive data;

[0081] A directory information unit, used to determine directory information of the updated primitive according to the type data, the color data, and the shape data; wherein the directory information includes a plurality of subcategories;

[0082] The coding generation unit is used to generate the coding of the updated primitive according to the directory information, and update the historical primitive based on the loading resources required by the second primitive data and the coding of the updated primitive; wherein the length of the coding is related to the number of subcategories of the directory information.

[0083] In another exemplary embodiment, the code generation unit further comprises:

[0084] The compression and encryption section is used to compress and encrypt the loading resources required by the second primitive data to obtain the target loading resources corresponding to the updated primitive;

[0085] The update section is used to update the updated primitives to historical primitives, and use the encoding of the updated primitives as index information to obtain the target loading resources.

[0086] In another exemplary embodiment, the generation update module 630 further includes:

[0087] A first generating unit, configured to generate an initial display page of a specified application according to a loading resource required for loading metadata and a loading resource required for second metadata;

[0088] The second generating unit is used to insert the historical graphic element that successfully matches the first graphic element into the initial display page to generate a display page of a specified application.

[0089] In another exemplary embodiment, the loading device 600 further includes:

[0090] A matching module, used for matching each element number in the element data with the preset number of the historical element;

[0091] The matching result module is used to use the image metadata of successful matching as the first image metadata, and use the image metadata of failed matching as the second image metadata.

[0092] The loading device of the present application processes and analyzes the to-be-loaded media file of the specified application to determine the first metadata that successfully matches the historical metadata, thereby directly using the successfully matched historical metadata to replace the loading resources required for the first metadata, so as to speed up the generation of the display page of the specified application, save real-time loading resources, and quickly load the window page of the display window. At the same time, the second metadata that does not successfully match the historical metadata is updated to the historical metadata, so as to update the historical metadata in real time, which is convenient for the rapid loading of subsequent window pages.

[0093] It should be noted that the loading device provided in the above embodiment and the loading method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment and will not be repeated here.

[0094] Another aspect of the present application provides an electronic device, comprising: a controller; and a memory for storing one or more programs, wherein when the one or more programs are executed by the controller, the above-mentioned loading method is executed.

[0095] See also Figure 7 , Figure 7 1 is a schematic diagram of the structure of a computer system of an electronic device shown in an exemplary embodiment of the present application, which shows a schematic diagram of the structure of a computer system of an electronic device suitable for implementing an embodiment of the present application.

[0096] It should be noted that Figure 7 The computer system 700 of 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 application.

[0097] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 702 or the program loaded from the storage part 708 to the random access memory (RAM) 703, such as executing the method in the above embodiment. In the RAM 703, various programs and data required for system operation are also stored. The CPU 701, ROM 702 and RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0098] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.

[0099] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 709, and / or installed from a removable medium 711. When the computer program is executed by a central processing unit (CPU) 701, various functions defined in the system of the present application are executed.

[0100] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, 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 can 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), a 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 application, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0101] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, 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 alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart 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.

[0102] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0103] Another aspect of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the loading method as described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0104] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the loading method provided in each of the above embodiments.

[0105] According to one aspect of an embodiment of the present application, a computer system is also provided, including a central processing unit (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM), such as executing the method in the above embodiment. In RAM, various programs and data required for system operation are also stored. CPU, ROM and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0106] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.

[0107] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A method for loading a window page, characterized in that: The loading method comprises: Determine the metadata and image metadata to be loaded from the media files to be loaded of the specified application; wherein the image metadata includes first image metadata that successfully matches the historical image element and second image metadata that fails to match; the historical image element comes from at least one of the historical window page, the historical entity file in the storage repository, and the historical media files of each application; Generate a display page of the designated application according to the historical graphic element successfully matched by the first graphic element metadata, the loading resources required for loading the metadata, and the loading resources required for the second graphic element metadata, and update the historical graphic element based on the second graphic element metadata and the loading resources required for the second graphic element metadata; According to the display pages corresponding to each designated application and other data to be loaded, the current window page of the display window is loaded and obtained.

2. The loading method according to claim 1, characterized in that: The loading method further comprises: If the current window page and the historical window page both include the same target primitive, the target primitive is updated to a new historical primitive, and the primitive number of the target primitive is used as the preset number of the new historical primitive; wherein the target primitive is not the historical primitive.

3. The loading method according to claim 1, characterized in that: The step of generating the display page of the designated application according to the historical graphic element successfully matched by the first graphic element metadata, the loading resources required for loading the metadata, and the loading resources required for loading the second graphic element metadata further includes: Performing a decryption operation on the encrypted target key according to the private key to obtain the target key; wherein the encrypted target key is obtained by encrypting the target key with a public key paired with the private key; Decrypting the historical graphic element that successfully matches the first graphic element data according to the target key to obtain the loading resource corresponding to the historical graphic element; The display page of the designated application is generated according to the loading resources corresponding to the historical graphic element, the loading resources required by the metadata, and the loading resources required by the second graphic element.

4. The loading method according to claim 1, characterized in that: The second graphic element data includes type data representing the type of graphic element, color data representing the color of the graphic element, and shape data representing the shape of the graphic element; The updating of the historical primitives based on the second primitive data and the loading resources required by the second primitive data further includes: Based on the loading resources required by the second primitive data, loading the updated primitives; Determine the directory information of the updated graphic element according to the type data, color data and shape data; wherein the directory information includes a plurality of subcategories; Generate the code of the updated primitive according to the directory information, and update the historical primitive based on the loading resources required by the second primitive data and the code of the updated primitive; wherein the length of the code is related to the number of subcategories of the directory information.

5. The loading method according to claim 4, characterized in that: The updating of the historical primitive based on the loading resources required by the second primitive data and the encoding of the updated primitive further includes: Compressing and encrypting the loading resources required by the second primitive data to obtain the target loading resources corresponding to the updated primitive; The updated primitive is updated to a historical primitive, and the encoding of the updated primitive is used as index information to obtain the target loading resource.

6. The loading method according to claim 1, characterized in that: The step of generating the display page of the designated application according to the historical graphic element successfully matched by the first graphic element metadata, the loading resources required for loading the metadata, and the loading resources required for loading the second graphic element metadata further includes: Generate an initial display page of the designated application according to the loading resources required for loading the metadata and the loading resources required for loading the second image metadata; Inserting the historical graphic element that successfully matches the first graphic element into the initial display page to generate a display page for the designated application.

7. The loading method according to any one of claims 1 to 6, characterized in that: The loading method further comprises: Matching each primitive number in the primitive data with the preset number of the historical primitive; The metadata of the successfully matched graph is used as the first metadata, and the metadata of the unmatched graph is used as the second metadata.

8. A window page loading device, characterized in that: The loading device comprises: A determination module, used to determine metadata and image metadata to be loaded from the media files to be loaded of the specified application; wherein the image metadata includes first image metadata that successfully matches the historical image element and second image metadata that fails to match; the historical image element comes from at least one of the historical window page, the historical entity file in the repository, and the historical media files in each application; A generation and updating module is used to generate a display page of the specified application according to the historical graphic element successfully matched by the first graphic element metadata, the loading resources required for loading the metadata, and the loading resources required for the second graphic element metadata, and update the historical graphic element based on the second graphic element metadata and the loading resources required for the second graphic element metadata; The loading module is used to load the current window page of the display window according to the display pages corresponding to each designated application and other data to be loaded.

9. An electronic device, characterized in that: include: Controller; A memory for storing one or more programs, which, when executed by a controller, enables the controller to implement the loading method described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the loading method described in any one of claims 1 to 7.