A loading method of a UI interface and a related component thereof
By dividing the UI loading process into two steps—initial loading and full loading—and loading basic controls first followed by data information, the problem of excessively long UI loading time is solved, thus improving the user experience.
Patent Information
- Application Number
- CN202210867255.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-22
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2042-07-22
AI Technical Summary
In storage management systems, when the UI is loading a large amount of data, it can cause users to be unable to operate for too long, thus affecting the user experience.
The UI loading process is divided into two steps: initial loading and full loading. Basic controls are loaded first for user operation, and then data information is loaded for user viewing. The loading process is optimized by pre-setting a basic control library and database.
This reduces the time users are unable to operate the system, thus improving the user experience.
Smart Images

Figure CN115098194B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of user interaction, in particular to a UI interface loading method and related components thereof. BACKGROUND
[0002] In the current storage management system, users usually interact with the storage management system through the ISM (Integrated Storage Manager) system and perform operations on the UI (User Interface) to manage and view the information of the storage management system itself and various data files stored in the storage management system. When the user switches the UI interface, the new UI interface needs to load new data information, so the user cannot perform any operation on the UI interface until all the data information to be loaded by the UI interface is loaded. When the amount of data to be loaded by the UI interface is large, the user cannot operate for a long time, which affects the user experience. SUMMARY
[0003] The purpose of the present application is to provide a UI interface loading method and related components thereof, which can shorten the time when the user cannot operate and improve the user experience.
[0004] To solve the above technical problems, the present application provides a UI interface loading method, comprising:
[0005] When the interface loading instruction of the first UI interface is obtained, the basic controls and data information to be loaded by the first UI interface are determined.
[0006] All the basic controls to be loaded by the first UI interface in the preset basic control library are obtained.
[0007] All the basic controls are sent to the first UI interface, and when the first UI interface loads all the basic controls, the first UI interface is preliminarily loaded.
[0008] All the data information to be loaded by the first UI interface in the preset database is obtained.
[0009] All the data information is sent to the first UI interface, and when the first UI interface loads all the data information, the first UI interface is completely loaded.
[0010] Preferably, the basic controls to be loaded by the first UI interface are determined, comprising:
[0011] All the function modules to be loaded by the first UI interface are determined, and the function modules call task functions to realize the functions corresponding to the function modules themselves when receiving user instructions.
[0012] All the function modules are loaded as basic controls of the first UI interface.
[0013] Preferably, all the basic controls are sent to the first UI interface, including:
[0014] S21: determining a first data amount of each basic control needed to be loaded by the first UI interface;
[0015] S22: sorting each basic control according to data amount size, and taking the basic control with the smallest first data amount as a current control;
[0016] S23: sending the current control to the first UI interface;
[0017] S24: judging whether the first UI interface completes loading the current control within a first preset time length; if yes, entering S25; if no, entering S27;
[0018] S25: judging whether the first UI interface completes loading all the basic controls; if yes, entering a step of determining that the first UI interface is preliminarily loaded; if no, entering S26;
[0019] S26: displaying the current control on the first UI interface, and taking a next basic control of the current control as a new current control, and returning to S23;
[0020] S27: taking a next basic control of the current control as a new current control, and taking a previous basic control of the current control as a last basic control, and returning to S23.
[0021] Preferably, all the data information is sent to the first UI interface, including:
[0022] S31: determining a second data amount of each data information needed to be loaded by the first UI interface;
[0023] S32: sorting each data information according to data amount size, and taking the data information with the smallest second data amount as a current loading data;
[0024] S33: sending the current loading data to the first UI interface;
[0025] S34: judging whether the first UI interface completes loading the current loading data within a second preset time length; if yes, entering S35; if no, entering S37;
[0026] S35: judging whether the first UI interface finishes loading all the data information; if yes, entering a step of determining that the first UI interface is completely loaded; if no, entering S36;
[0027] S36: displaying the current loading data on the first UI interface, and returning to S33 with the next data information of the current loading data as new current loading data;
[0028] S37: returning to S33 with the next data information of the current loading data as new current loading data and the previous data information of the current loading data as the last data information.
[0029] Preferably, the basic controls and data information required by the first UI interface to be loaded are determined, including:
[0030] determining the third data amount of each data information required by the first UI interface to be loaded;
[0031] all the data information with the third data amount less than the preset data amount and the basic controls required by the first UI interface to be loaded are taken as new basic controls required by the first UI interface to be loaded;
[0032] all the data information with the third data amount not less than the preset data amount are taken as new data information required by the first UI interface to be loaded.
[0033] Preferably, before determining that the first UI interface is completely loaded, the method further includes:
[0034] S41: stopping loading the first UI interface when receiving an interface loading instruction of switching to a second UI interface;
[0035] S42: determining the basic controls and data information required by the second UI interface to be loaded;
[0036] S43: judging whether the basic controls loaded by the first UI interface include the basic controls required by the second UI interface to be loaded; if yes, entering S44; if no, entering S46;
[0037] S44: displaying the basic controls loaded by the first UI interface in the second UI interface, and entering S45;
[0038] S45: taking all the basic controls required by the second UI interface to be loaded except the basic controls loaded by the first UI interface as new basic controls required by the second UI interface to be loaded, and entering S46;
[0039] S46: taking the second UI interface as a new first UI interface, and entering a step of acquiring all basic controls required to be loaded by the first UI interface in a preset basic control library.
[0040] Preferably, before taking the second UI interface as a new first UI interface, the method further comprises:
[0041] S51: judging whether the data information loaded by the first UI interface includes the data information required to be loaded by the second UI interface; if yes, entering S52; if no, entering S55;
[0042] S52: judging whether the data display protocol of the first UI interface is consistent with the display protocol of the second UI interface; if yes, entering S53; if no, entering S55;
[0043] S53: displaying the data information loaded by the first UI interface in the second UI interface, and entering S54;
[0044] S54: taking all the data information required to be loaded by the second UI interface except the data information loaded by the first UI interface as new data information required to be loaded by the second UI interface, and entering S55;
[0045] S55: entering a step of taking the second UI interface as a new first UI interface.
[0046] The application further provides a UI interface loading device, comprising:
[0047] a memory for storing a computer program;
[0048] a processor for executing the computer program to realize the steps of the UI interface loading method.
[0049] The application further provides a UI interface loading system, comprising:
[0050] a determining unit for determining basic controls and data information required to be loaded by a first UI interface when an interface loading instruction of the first UI interface is acquired;
[0051] a basic control acquiring unit for acquiring all basic controls required to be loaded by the first UI interface in a preset basic control library;
[0052] a first loading unit for sending all the basic controls to the first UI interface, and determining that the first UI interface is preliminarily loaded when the first UI interface loads all the basic controls;
[0053] a data information acquisition unit, configured to acquire all data information required by the first UI interface to be loaded in a preset database;
[0054] a second loading unit, configured to send all the data information to the first UI interface, and determine that the first UI interface is completely loaded when the first UI interface loads all the data information.
[0055] The application further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the UI interface loading method.
[0056] The application provides a UI interface loading method and related components thereof, and relates to the field of user interaction. BRIEF DESCRIPTION OF DRAWINGS
[0057] In order to more clearly illustrate the technical solutions in the embodiments of the application, the drawings needed in the prior art and the embodiments will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings.
[0058] Figure 1 A flowchart of the UI interface loading method provided by the application;
[0059] Figure 2 A structural schematic diagram of the UI interface loading device provided by the application;
[0060] Figure 3 A structural schematic diagram of the UI interface loading system provided by the application. DETAILED DESCRIPTION
[0061] The core of the application is to provide a UI interface loading method and related components thereof, which can shorten the time when the user cannot operate and improve user experience.
[0062] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of the present application.
[0063] Please refer to Figure 1 , Figure 1 A flow chart of a loading method of a UI interface provided in the present application, comprising:
[0064] S11: When an interface loading instruction of a first UI interface is acquired, determining basic controls and data information required by the first UI interface to be loaded;
[0065] The content displayed in the UI interface is usually divided into two parts, one part is basic controls and the other part is data information. Specifically, the basic controls are usually functional modules or interactive controls in the UI interface. These functional modules can respond to the operation instructions of the user to produce certain results. The data information is usually the information mainly displayed to the user for viewing in the UI interface. These data information usually cannot interact with the operation of the user. For example, when the UI interface is a file searching interface, the file searching module, character input module and interface refreshing module and other functional modules on the UI interface all belong to the basic controls, and various files and parameters obtained by searching the files are the data information of the UI interface.
[0066] S12: Acquiring all basic controls required by the first UI interface to be loaded in a preset basic control library;
[0067] In order to enable the first UI interface to be loaded faster, in the present application, the basic controls of the UI interface are some controls on the UI interface that can respond to the operation instructions of the user, for example, modules that can implement certain functions when receiving operation instructions or modules that can respond when receiving operation instructions, etc. These basic controls can be used frequently by the user to perform various operations, such as using a search module to search for data or using a hyperlink module to enter other UI interfaces, etc. Therefore, all the basic controls that the UI interface needs to load can be stored in a preset basic control library, and then the preset basic control library is set in the local storage space of the server, so as to avoid the influence of network communication quality when obtaining the basic controls from the cloud, thereby causing the loading speed to be slow. In addition, in order to save the local storage space, the frequently used basic controls and the infrequently used basic controls can be determined in advance according to the frequency of the user using each basic control in the first UI interface, and the frequently used basic controls are all stored in the preset basic control library, and the infrequently used basic controls can be obtained from the cloud or from other servers.
[0068] S13: Send all the basic controls to the first UI interface, and determine that the first UI interface is preliminarily loaded when the first UI interface loads all the basic controls;
[0069] When the user performs operation to switch the UI interface, the new UI interface will load new data information, at this time, the UI interface will enter a loading state, and when the UI interface loads all the data information that it needs to load, it will leave the loading state. When the UI interface is in the loading state, the user cannot perform any operation on the UI interface. When the amount of data information loaded by the UI interface is large, or the UI interface needs to load data information from the cloud but the network communication between the server and the cloud is not smooth, the UI interface will enter a longer loading state, which will cause the user to be unable to operate for a long time. Based on this, the loading state of the UI interface can be divided into two steps of preliminary loading and complete loading. In the preliminary loading step, the basic controls in the UI interface are preferentially loaded, and after the basic controls are loaded, it is determined that the UI interface is preliminarily loaded. These basic controls are all function modules that can respond to the operation instructions of the user, so after the preliminary loading is completed, the user can perform operation on the UI interface, effectively shortening the time during which the user cannot operate.
[0070] S14: Obtain all the data information that the first UI interface needs to load in the preset database;
[0071] In order to enable the first UI interface to load all data information, in the present application, the information required by the first UI interface to load can be stored in a preset database in the cloud, and when the first UI interface needs to be loaded, the data information is obtained from the preset database in the cloud through network communication, so that the first UI interface is loaded. In addition, in order to enable the first UI interface to be loaded faster, the preset database can also be set in the local server, so as to avoid the influence of network communication quality when obtaining data information from the cloud, thereby causing the loading speed to be slow.
[0072] S5: sending all data information to the first UI interface, and determining that the first UI interface is completely loaded when the first UI interface loads all data information.
[0073] Since the loading steps of the first UI interface are divided into two steps, after the basic controls are loaded, that is, after the preliminary loading is completed, the loading step of the data information is entered, and when the data information is also loaded, the two parts contained in the first UI page are loaded. At this time, it can be determined that the first UI page is completely loaded, and the user can observe any data information that can be displayed on the first UI page and operate any basic control on the first UI page.
[0074] In summary, when the interface loading instruction of the first UI interface is obtained, the basic controls and data information required by the first UI interface are determined, and then all the basic controls are sent to the first UI interface by using the preset basic control library. When the first UI interface loads all the basic controls, it is determined that the first UI interface is preliminarily loaded, and finally all the data information in the preset database is sent to the first UI interface. When the first UI interface loads all the data information, it is determined that the first UI interface is completely loaded. By dividing the loading steps of the UI interface into two steps of preliminary loading and complete loading, the basic controls are loaded first to enable the user to operate, and then other data information is loaded to enable the user to view, which can shorten the time when the user cannot operate and improve the user experience.
[0075] On the basis of the above embodiment:
[0076] As a preferred embodiment, the basic controls required by the first UI interface to load are determined, including:
[0077] All the function modules are determined as the basic controls required by the first UI interface to load.
[0078] All the function modules are determined as the basic controls required by the first UI interface to load.
[0079] In order to shorten the time when the user cannot operate, in the present application, the first UI interface is usually provided with function modules, which can realize certain functions when receiving user instructions. It can be seen that the user can operate the function modules in the first UI interface through instructions, that is, when the user can operate the function modules, it means that the time when the user cannot operate has ended. In addition, considering that the data amount of the function modules is smaller than that of the data information required to be loaded by the first UI interface, the function modules can be used as the basic controls required to be loaded by the first UI interface, so that the first UI interface can preferentially load the function modules. Based on this, because the user can operate the function modules in the first UI interface through instructions, the time when the user cannot operate can be shortened by taking the function modules as the basic controls required to be loaded by the first UI interface to preferentially load the function modules.
[0080] As a preferred embodiment, all the basic controls are sent to the first UI interface, including:
[0081] S21: determining the first data amount of each basic control required to be loaded by the first UI interface;
[0082] S22: sorting the basic controls according to the data amount, and taking the basic control with the smallest first data amount as the current control;
[0083] S23: sending the current control to the first UI interface;
[0084] S24: judging whether the first UI interface completes loading the current control within a first preset time length; if yes, proceeding to S25; if no, proceeding to S27;
[0085] S25: judging whether the first UI interface completes loading all the basic controls; if yes, proceeding to the step of determining the first UI interface loaded preliminarily; if no, proceeding to S26;
[0086] S26: displaying the current control on the first UI interface, and taking the next basic control of the current control as a new current control, and returning to S23;
[0087] S27: taking the next basic control of the current control as a new current control, and taking the previous basic control of the current control as the last basic control, and returning to S23.
[0088] In order to improve the loading speed, in the present application, considering that the data sizes of different basic controls are different, the basic controls can be sorted according to the data sizes of the basic controls, and then the basic controls are loaded in turn from small to large data size. When a basic control is loaded, the basic control is directly displayed on the first UI interface, instead of waiting for all the basic controls to be loaded and then displaying all the basic controls at the same time. That is, after the first basic control is loaded, the user can operate the first basic control, and after the second basic control is loaded, the user can operate the second basic control, and the subsequent loaded basic controls are the same. During the loading of the basic controls, if the basic control cannot be loaded within the first preset time period due to data errors or short-term interface failures of the basic control, in order to improve the loading speed, the loading of the basic control is stopped, the basic control is placed at the end of the sorting, and the next basic control is loaded, so as to avoid too long loading time of the basic control. Based on this, the basic controls are loaded in turn according to the data size, which can improve the loading speed of the first UI interface.
[0089] As a preferred embodiment, all data information is sent to the first UI interface, including:
[0090] S31: determining the second data size of each data information that needs to be loaded by the first UI interface;
[0091] S32: sorting the data information according to the data size, and taking the data information with the smallest second data size as the current loading data;
[0092] S33: sending the current loading data to the first UI interface;
[0093] S34: determining whether the first UI interface completes loading the current loading data within a second preset time period; if yes, proceeding to S35; if no, proceeding to S37;
[0094] S35: determining whether the first UI interface completes loading all the data information; if yes, proceeding to the step of determining complete loading of the first UI interface; if no, proceeding to S36;
[0095] S36: displaying the current loading data on the first UI interface, taking the next data information of the current loading data as new current loading data, and returning to S33;
[0096] S37: taking the next data information of the current loading data as new current loading data, and taking the previous data information of the current loading data as the last data information, and returning to S33.
[0097] In order to improve the loading speed, in the present application, considering that the data sizes of different data information are different, the data information can be sorted according to the data sizes of the data information, and then the data information is loaded in turn according to the data sizes from small to large. When the loading of a data information is completed, the data information is directly displayed on the first UI interface, instead of waiting for all the data information to be loaded and then displaying all the data information at the same time. That is, after the loading of the first data information is completed, the user can view the first data information, and after the loading of the second data information is completed, the user can view the second data information, and the subsequent loaded data information is the same. In the process of loading data information, if the communication quality is reduced or the network fluctuates and cannot complete the loading of the data information within the specified second preset time, in order to improve the loading speed, the loading of the data information is stopped, the data information is placed at the end of the sorting, and the next data information is loaded, so as to avoid the time of loading the data information being too long. Based on this, by loading the data information in turn according to the order of the data sizes, the loading speed of the first UI interface can be improved.
[0098] As a preferred embodiment, the basic controls and data information that the first UI interface needs to load are determined, including:
[0099] The third data size of each data information that the first UI interface needs to load is determined.
[0100] All data information with a third data size less than a preset data size and the basic controls that the first UI interface needs to load are all taken as new basic controls that the first UI interface needs to load.
[0101] All data information with a third data size not less than a preset data size is taken as new data information that the first UI interface needs to load.
[0102] In order to improve the loading speed, in the present application, since the data sizes of the various data information required to be loaded by the first UI interface are different, the time required to load the various data information is also different. In the prior art, in order to save the storage space of the local server, the various data information required to be loaded by the first UI interface is usually stored in the cloud server, and then the network communication is used to obtain the various data information required to be loaded by the first UI interface from the cloud server. However, when the network communication between the local server and the cloud server fluctuates or fails, the first UI interface cannot quickly load the data information, which affects the user experience. Based on this, the data information with a data size less than a preset data size can also be used as a basic control, and then stored in the local preset basic control library together with the original basic control. The local server will not be affected by the network communication fluctuation or failure when obtaining data from the local preset basic control library, and can load faster. Based on this, by using the method of using the data information with a data size less than a preset data size as a basic control, not only can the storage space of the local server be saved, but also the loading speed of the first UI interface can be improved.
[0103] As a preferred embodiment, before determining that the first UI interface is completely loaded, the method further comprises:
[0104] S41: stopping loading the first UI interface when receiving an interface loading instruction switching to the second UI interface;
[0105] S42: determining the basic controls and the data information required to be loaded by the second UI interface;
[0106] S43: determining whether there is a basic control in the basic controls loaded by the first UI interface that is the basic control required to be loaded by the second UI interface; if there is, proceeding to S44; if there is not, proceeding to S46;
[0107] S44: displaying the basic controls loaded by the first UI interface in the second UI interface, and proceeding to S45;
[0108] S45: taking all the basic controls of the second UI interface except the basic controls loaded by the first UI interface as new basic controls required to be loaded by the second UI interface, and proceeding to S46;
[0109] S46: taking the second UI interface as a new first UI interface, and proceeding to the step of obtaining all the basic controls required to be loaded by the first UI interface in the preset basic control library.
[0110] In order to load the new UI interface in time, in the present application, it is considered that in actual application, the user can enter other interface by using the basic control on the first UI interface before the first UI interface is completely loaded. If the first UI interface is still being loaded at this time, not only the demand of the user to enter other interface is not met, but also the time during which the user cannot operate is prolonged, which affects the user experience. Based on this, when the instruction to switch to the second UI interface is received, the loading of the first UI interface is stopped and the determination of the basic control and data information required to be loaded by the second UI interface is started to start loading; further, in order to improve the loading speed, since the instruction to switch to the second UI interface is received in the loading process of the first UI interface, it can be seen that some basic controls have been completed by the first UI interface, so it can be determined whether the basic control required to be loaded by the second UI interface is contained in the basic control which has been completed by the first UI interface. If yes, it is directly displayed in the second UI interface, and the subsequent second UI interface does not need to load the basic control again, only needs to load other basic controls which are not contained in the basic control which has been completed by the first UI interface, which is equivalent to saving the time of loading the basic control by the second UI interface. It can be seen that after receiving the instruction to switch to the second UI interface, the loading of the first UI interface is immediately stopped and the second UI interface is loaded by using the basic control which has been completed by the first UI interface, which can load the new UI interface in time.
[0111] As a preferred embodiment, before the second UI interface is taken as the new first UI interface, the following steps are further included:
[0112] S51: it is judged whether the data information required to be loaded by the second UI interface is contained in the data information which has been completed by the first UI interface; if yes, S52 is entered; if no, S55 is entered;
[0113] S52: it is judged whether the data display protocol of the first UI interface is consistent with the display protocol of the second UI interface; if yes, S53 is entered; if no, S55 is entered;
[0114] S53: the data information which has been completed by the first UI interface is displayed in the second UI interface, and S54 is entered;
[0115] S54: all the data information required to be loaded by the second UI interface except the data information which has been completed by the first UI interface is taken as the new data information required to be loaded by the second UI interface, and S55 is entered;
[0116] S55: the step of taking the second UI interface as the new first UI interface is entered.
[0117] In order to load the new UI interface in time, in the present application, it is considered that the instruction of switching to the second UI interface is received in the loading process of the first UI interface, so it can be seen that the first UI interface has completed the loading of some data information. It can be determined whether the data information required to be loaded by the second UI interface is contained in the data information which has been loaded by the first UI interface. If yes, it is further considered that the display protocols or methods used by different UI interfaces when displaying the same data information are different, and the data information under a certain data display protocol cannot be displayed on the UI interface with a different data display protocol, so it is further needed to determine whether the data display protocols of the first UI interface and the second UI interface are consistent. If yes, the data information required to be loaded by the second UI interface in the data information which has been loaded by the first UI interface is directly displayed in the second UI interface, and the subsequent second UI interface does not need to load the data information again, but only needs to load other data information which is not in the data information which has been loaded by the first UI interface, which is equivalent to saving the time of loading the data information by the second UI interface. It can be seen that the second UI interface is loaded by using the data information which has been loaded by the first UI interface, so that the new UI interface can be loaded in time.
[0118] Please refer to Figure 2 , Figure 2 The structure diagram of a UI interface loading device provided by the present application comprises:
[0119] The memory 21 is used for storing the computer program.
[0120] The processor 22 is used for executing the computer program to realize the steps of the UI interface loading method as described above.
[0121] For the detailed introduction of the UI interface loading device provided by the present application, please refer to the embodiments of the UI interface loading method as described above, which will not be repeated here.
[0122] Please refer to Figure 3 , Figure 3 The UI interface loading system provided by the present application comprises:
[0123] The determining unit 31 is used for determining the basic controls and data information required to be loaded by the first UI interface when the interface loading instruction of the first UI interface is acquired.
[0124] The basic control acquiring unit 32 is used for acquiring all the basic controls required to be loaded by the first UI interface in the preset basic control library.
[0125] The first loading unit 33 is used for sending all the basic controls to the first UI interface, and determining that the first UI interface is preliminarily loaded when the first UI interface completes the loading of all the basic controls.
[0126] The data information acquisition unit 34 is configured to acquire all data information required by the first UI interface to be loaded in the preset database.
[0127] The second loading unit 35 is configured to send the all data information to the first UI interface, and determine that the first UI interface is completely loaded when the first UI interface completes loading of the all data information.
[0128] For detailed introduction of the UI interface loading system provided in the present application, please refer to the embodiments of the UI interface loading method described above, which will not be repeated here.
[0129] As a preferred embodiment, the determining unit 31 comprises:
[0130] The basic control determining unit is configured to determine all function modules required by the first UI interface to be loaded, and regard all the function modules as basic controls required by the first UI interface to be loaded, wherein the function modules call task functions to realize corresponding functions of the function modules themselves when receiving user instructions.
[0131] The data information determining unit is configured to determine data information required by the first UI interface to be loaded.
[0132] As a preferred embodiment, the first loading unit 33 comprises:
[0133] The first sending unit is configured to perform the following steps:
[0134] S21: determine the first data amount of each basic control required by the first UI interface to be loaded;
[0135] S22: sort the basic controls according to the data amount, and regard the basic control with the smallest first data amount as a current control;
[0136] S23: send the current control to the first UI interface;
[0137] S24: determine whether the first UI interface completes loading of the current control within a first preset time length; if yes, proceed to S25; if no, proceed to S27;
[0138] S25: determine whether the first UI interface completes loading of all the basic controls; if yes, trigger the preliminary loading determining unit; if no, proceed to S26;
[0139] S26: display the current control on the first UI interface, and regard the next basic control of the current control as a new current control, and return to S23;
[0140] S27: taking the next basic control of the current control as a new current control and taking the previous basic control of the current control as a last basic control, and returning to S23;
[0141] A preliminary loading determination unit is configured to determine that the first UI interface is preliminarily loaded when all the basic controls of the first UI interface are loaded.
[0142] As a preferred embodiment, the first loading unit 33 comprises:
[0143] A second sending unit is configured to perform the following steps:
[0144] S31: determining a second data amount of each data information required to be loaded by the first UI interface;
[0145] S32: sorting each data information according to the data amount, and taking the data information with the smallest second data amount as current loading data;
[0146] S33: sending the current loading data to the first UI interface;
[0147] S34: determining whether the first UI interface completes loading the current loading data within a second preset time length; if yes, proceeding to S35; if no, proceeding to S37;
[0148] S35: determining whether the first UI interface completes loading all the data information; if yes, triggering a complete loading determination unit; if no, proceeding to S36;
[0149] S36: displaying the current loading data on the first UI interface, and taking the next data information of the current loading data as new current loading data, and returning to S33;
[0150] S37: taking the next data information of the current loading data as new current loading data, and taking the previous data information of the current loading data as a last data information, and returning to S33;
[0151] A complete loading determination unit is configured to determine that the first UI interface is completely loaded when all the data information of the first UI interface is loaded.
[0152] As a preferred embodiment, the determination unit 31 is specifically configured to:
[0153] determine a third data amount of each data information required to be loaded by the first UI interface;
[0154] take all the data information with a third data amount less than a preset data amount and the basic controls required to be loaded by the first UI interface as new basic controls required to be loaded by the first UI interface;
[0155] all data information with a third data amount not less than the preset data amount are all taken as new data information needed to be loaded by the first UI interface.
[0156] As a preferred embodiment, further comprising a switching unit, configured to perform the following steps before determining that the first UI interface is completely loaded:
[0157] S41: stop loading the first UI interface when receiving an interface loading instruction switching to the second UI interface;
[0158] S42: determine basic controls and data information needed to be loaded by the second UI interface;
[0159] S43: determine whether there is a basic control in the basic controls loaded by the first UI interface which is a basic control needed to be loaded by the second UI interface; if yes, go to S44; if no, go to S46;
[0160] S44: display the basic controls loaded by the first UI interface in the second UI interface, and go to S45;
[0161] S45: take all other basic controls needed to be loaded by the second UI interface except the basic controls loaded by the first UI interface as new basic controls needed to be loaded by the second UI interface, and go to S46;
[0162] S46: take the second UI interface as a new first UI interface, and go to the step of acquiring all basic controls needed to be loaded by the first UI interface in the preset basic control library.
[0163] As a preferred embodiment, further comprising a data information judging unit, configured to perform the following steps before taking the second UI interface as a new first UI interface:
[0164] S51: determine whether there is data information in the data information loaded by the first UI interface which is data information needed to be loaded by the second UI interface; if yes, go to S52; if no, go to S55;
[0165] S52: determine whether the data display protocol of the first UI interface is consistent with the display protocol of the second UI interface; if yes, go to S53; if no, go to S55;
[0166] S53: display the data information loaded by the first UI interface in the second UI interface, and go to S54;
[0167] S54: take all other data information needed to be loaded by the second UI interface except the data information loaded by the first UI interface as new data information needed to be loaded by the second UI interface, and go to S55;
[0168] S55: entering a step of taking the second UI interface as a new first UI interface.
[0169] The application further provides a computer readable storage medium, and the computer readable storage medium stores a computer program. The computer program is executed by a processor to implement the steps of the UI interface loading method.
[0170] For the detailed introduction of the computer readable storage medium, please refer to the above-mentioned embodiments of the UI interface loading method, and the application will not be described here.
[0171] The embodiments in the specification are described in a progressive manner, and each embodiment focuses on the difference from other embodiments. The same or similar parts of each embodiment can be referred to each other. For the device disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and the related parts can be referred to the method part.
[0172] It should be further noted that in the specification, the relationship terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or sequence between the entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or equipment. Without more limitations, the element defined by the statement "including a" does not exclude the existence of other identical elements in the process, method, article or equipment including the element.
Claims
1. A method for loading a UI interface, characterized in that, include: When the interface loading instruction of the first UI interface is obtained, the basic controls and data information that the first UI interface needs to load are determined; Retrieve all the basic controls that the first UI interface needs to load from the preset basic control library; Send all the basic controls to the first UI interface. Once the first UI interface has finished loading all the basic controls, determine that the first UI interface has been initially loaded. Obtain all data information that the first UI interface needs to load from the preset database; wherein, the preset database is set on a local server; Send all the data information to the first UI interface, and when the first UI interface has finished loading all the data information, determine that the first UI interface is fully loaded. The method for loading the UI interface also includes: Based on the usage frequency of each basic control in the first UI interface, the commonly used basic controls and the infrequently used basic controls are determined, and the commonly used basic controls are stored in a preset basic control library. The method for loading the UI interface also includes: If it is determined that the basic controls that the first UI interface needs to load include the less commonly used basic controls, then the less commonly used basic controls are obtained from the cloud or from other servers.
2. The UI loading method as described in claim 1, characterized in that, The basic controls that need to be loaded in the first UI interface are determined, including: Determine all the functional modules that the first UI interface needs to load. When a functional module receives a user instruction, it calls a task function to implement the function corresponding to the module itself. All the aforementioned functional modules are used as basic controls that need to be loaded in the first UI interface.
3. The UI loading method as described in claim 1, characterized in that, Send all the basic controls to the first UI interface, including: S21: Determine the first amount of data for each of the basic controls that the first UI interface needs to load; S22: Sort each of the basic controls according to the size of the data, and take the basic control with the smallest data size as the current control; S23: Send the current control to the first UI interface; S24: Determine whether the first UI interface has completed loading the current control within a first preset time period; if yes, proceed to S25; if no, proceed to S27. S25: Determine whether the first UI interface has finished loading all the basic controls; if yes, proceed to the step of determining the initial loading of the first UI interface; if no, proceed to S26. S26: Display the current control on the first UI interface, and take the next basic control of the current control as the new current control, then return to S23; S27: Take the next basic control of the current control as the new current control, and take the previous basic control of the current control as the last basic control, and return to S23.
4. The UI interface loading method as described in claim 1, characterized in that, Sending all the data information to the first UI interface, including: S31: Determine the second data volume of each of the data information that the first UI interface needs to load; S32: Sort each piece of data information according to its data size, and take the data information with the smallest second data size as the currently loaded data; S33: Send the currently loaded data to the first UI interface; S34: Determine whether the first UI interface has completed loading the currently loaded data within a second preset time period; if yes, proceed to S35; if no, proceed to S37. S35: Determine whether the first UI interface has finished loading all the data information; if yes, proceed to the step of determining that the first UI interface is fully loaded; if no, proceed to S36. S36: Display the currently loaded data on the first UI interface, and use the next data information of the currently loaded data as the new currently loaded data, then return to S33; S37: Take the next data information of the currently loaded data as the new currently loaded data, and take the previous data information of the currently loaded data as the last data information, and return to S33.
5. The UI loading method as described in claim 1, characterized in that, Determine the basic controls and data information that the first UI interface needs to load, including: Determine the third data volume of each of the data information that the first UI interface needs to load; All data information whose third data volume is less than the preset data volume, as well as the basic controls that the first UI interface needs to load, are all regarded as new basic controls that the first UI interface needs to load. All data information whose third data volume is not less than the preset data volume are treated as new data information that the first UI interface needs to load.
6. The method for loading a UI interface as described in any one of claims 1 to 5, characterized in that, Before determining that the first UI interface is fully loaded, the following is also included: S41: When a loading instruction to switch to the second UI interface is received, stop loading the first UI interface; S42: Determine the basic controls and data information that the second UI interface needs to load; S43: Determine whether the basic controls in the first UI interface that have been loaded are the basic controls that the second UI interface needs to load; if they exist, proceed to S44; if they do not exist, proceed to S46. S44: Display the basic controls that have been loaded in the first UI interface in the second UI interface, and proceed to S45; S45: Take all the basic controls that the second UI interface needs to load, except for the basic controls that the first UI interface has finished loading, as the new basic controls that the second UI interface needs to load, and proceed to S46; S46: Use the second UI interface as the new first UI interface, and proceed to the step of obtaining all the basic controls that the first UI interface needs to load from the preset basic control library.
7. The UI interface loading method as described in claim 6, characterized in that, Before using the second UI interface as the new first UI interface, the following steps are also included: S51: Determine whether the data information loaded by the first UI interface is the data information that the second UI interface needs to load; if it exists, proceed to S52; if it does not exist, proceed to S55. S52: Determine whether the data display protocol of the first UI interface is consistent with the display protocol of the second UI interface; if consistent, proceed to S53; if inconsistent, proceed to S55. S53: Display the data information that has been loaded in the first UI interface in the second UI interface, and proceed to S54; S54: Take all the data information that the second UI interface needs to load, except for the data information that the first UI interface has finished loading, as the new data information that the second UI interface needs to load, and proceed to S55; S55: Proceed to the step of using the second UI interface as the new first UI interface.
8. A UI loading device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the UI interface loading method as described in any one of claims 1 to 7 when executing the computer program.
9. A UI loading system, characterized in that, include: The determining unit is used to determine the basic controls and data information that the first UI interface needs to load when the interface loading instruction of the first UI interface is obtained; The basic control acquisition unit is used to acquire all the basic controls that the first UI interface needs to load from the preset basic control library; The first loading unit is used to send all the basic controls to the first UI interface, and when the first UI interface has finished loading all the basic controls, it determines that the first UI interface is initially loaded. A data information acquisition unit is used to acquire all data information that the first UI interface needs to load from a preset database; wherein, the preset database is set on a local server; The second loading unit is used to send all the data information to the first UI interface, and to determine that the first UI interface is fully loaded after the first UI interface has finished loading all the data information. The UI loading system is specifically used for: Based on the usage frequency of each basic control in the first UI interface, the commonly used basic controls and the infrequently used basic controls are determined, and the commonly used basic controls are stored in a preset basic control library. The UI loading system is specifically used for: If it is determined that the basic controls that the first UI interface needs to load include the less commonly used basic controls, then the less commonly used basic controls are obtained from the cloud or from other servers.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the UI interface loading method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Method and device for acquiring web content
CN108604245A