Webpage dynamic loading method, device and equipment and energy management system

By monitoring the user's operating status and preloading resources when idle, the problem of slow loading of existing web pages is solved, achieving faster loading speed and better user experience.

CN119807562APending Publication Date: 2025-04-11SHENZHEN KANGBIDA CONTROL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411889817.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The existing web page loading method causes the page to load slowly, affecting the user experience.

Method used

By monitoring the user's operation status, when the preset idle state condition is met, a preset resource loading request is sent to the server, and the returned resource is saved as a cache resource, so that it can be loaded directly from the cache if the user needs it.

Benefits of technology

Effectively utilize users' idle time to load resources, reduce the number of requests to the server, reduce the server load, and improve web page loading speed and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119807562A_ABST
    Figure CN119807562A_ABST
Patent Text Reader

Abstract

The invention provides a webpage dynamic loading method, device and equipment and an energy management system.The method comprises the steps that when a first webpage loading request sent by a user is received, the operation state of the user is monitored; when it is determined that the operation state of the user meets a preset idle state loading condition, sending a preset resource loading request to a server, and storing a preset resource returned by the server as a cache resource; and when a second webpage loading request sent by the user is received, responding to the second webpage loading request based on the second webpage loading request and the cache resource, and continuing to monitor the operation state of the user. According to the method, the resources can be loaded in the idle time period of the user, and the webpage loading speed is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and in particular to a method, device, equipment and energy management system for dynamically loading a web page. Background Art

[0002] With the development and progress of Internet technology and the popularization of mobile terminals, web page access using mobile terminals is becoming more and more frequent. As a result, the importance of web page loading speed to user experience is becoming increasingly prominent.

[0003] Currently, when a user sends a request, the server sends all resources to the client at once, which results in a slow loading speed of the web page. The user needs to stay on the current page until the web page is loaded, which makes the user experience poor. Summary of the invention

[0004] The embodiments of the present invention provide a method, device, equipment and energy management system for dynamically loading a web page to solve the current problem of slow web page loading speed.

[0005] In a first aspect, an embodiment of the present invention provides a method for dynamically loading a web page, which is applied to a client and includes:

[0006] When receiving a first webpage loading request sent by a user, monitoring the user's operation status;

[0007] When it is determined that the user's operation state meets the preset idle state loading condition, a request for loading the preset resource is sent to the server, and the preset resource returned by the server is saved as a cache resource;

[0008] When a second webpage loading request sent by the user is received, the second webpage loading request is responded to based on the second webpage loading request and the cached resources, and the user's operation status is continuously monitored.

[0009] In a possible implementation, when it is determined that the user's operating state meets the preset idle state loading condition, sending a request for loading a preset resource to the server includes:

[0010] When it is detected that the user has not operated the client within a preset time interval, determining that the client is in an idle state;

[0011] When it is determined that the client is in an idle state, a request for loading a preset resource is sent to the server.

[0012] In a possible implementation, when it is detected that the user has not operated the client within a preset time interval, determining that the client is in an idle state includes:

[0013] When it is monitored that the user does not operate the mouse, keyboard or screen of the client within a preset time interval after issuing the first webpage loading request, it is determined that the client is in an idle state.

[0014] In a possible implementation, responding to the second webpage loading request based on the second webpage loading request and the cached resource includes:

[0015] Determine whether the cached resources are valid;

[0016] When it is determined that the cache resource is valid and the cache resource contains the second webpage loading request, the resource corresponding to the second webpage loading request is obtained from the cache resource.

[0017] In a possible implementation, determining whether the cached resource is valid includes:

[0018] When the expiration time of the cache resource is greater than a preset response time interval, the cache resource is determined to be invalid; wherein the response time interval is the time interval between the time when the client saves the cache resource and the time when the second webpage loading request is received; or

[0019] When the correlation between the second webpage loading request and the first webpage loading request is less than a preset correlation, it is determined that the cache resource is invalid.

[0020] In a possible implementation, the client is provided with a cache area, and the cache resources are stored in the cache area;

[0021] After determining that the cached resources are invalid, it also includes:

[0022] When it is determined that the cached resources are invalid, clear the cached resources in the cache area.

[0023] In a possible implementation, sending a request for loading a preset resource to a server includes:

[0024] A request for loading key sub-resources required for loading the main page is sent to the server; wherein the main page is the page corresponding to the first web page loading request, and the key sub-resources include resources in the drop-down web page in the main page and resources of the next level web page of the main page.

[0025] In a second aspect, an embodiment of the present invention provides a device for dynamically loading a web page, including:

[0026] A monitoring status module, configured to monitor the user's operation status when receiving a first webpage loading request from the user;

[0027] The cache resource module is used to send a request for loading preset resources to the server when it is determined that the user's operation state meets the preset idle state loading condition, and save the preset resources returned by the server as cache resources;

[0028] The request response module is used to respond to the second webpage loading request based on the second webpage loading request and cache resources when receiving the second webpage loading request sent by the user, and continue to monitor the user's operation status.

[0029] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the processor implements the steps of the method described in the first aspect or any possible implementation manner of the first aspect.

[0030] In a fourth aspect, an embodiment of the present invention provides an energy management system, which stores a computer program, and when the computer program is executed by a processor, it implements the steps of the method described in the first aspect or any possible implementation of the first aspect.

[0031] The embodiment of the present invention provides a method, device, equipment and energy management system for dynamically loading a web page. In order to effectively utilize the idle time of a user, when a first web page loading request issued by a user is received, the user's operating status is monitored. When it is determined that the user's operating status meets the preset idle state loading condition, a request for loading a preset resource is sent to a server, and the preset resource returned by the server is saved as a cache resource, so that the user's idle time can be fully utilized to load resources. In addition, caching the preset resource returned by the server can reduce the number of requests to the server and reduce the load on the server. Finally, when a second web page loading request issued by the user is received, based on the second web page loading request and the cache resource, the second web page loading request is responded to, and the user's operating status is continued to be monitored. Therefore, when the resource corresponding to the second web page loading request exists in the cache resource, it can be directly provided from the cache resource of the client without having to be obtained from the server, thereby improving the loading speed of the web page and the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0033] Figure 1 is a flow chart of the implementation of the method for dynamic loading of a web page provided by an embodiment of the present invention;

[0034] Figure 2It is a flowchart of a method for dynamically loading a web page provided by an embodiment of the present invention;

[0035] Figure 3 It is a structural schematic diagram of a device for dynamically loading a web page provided by an embodiment of the present invention;

[0036] Figure 4 is a schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0037] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.

[0038] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.

[0039] As introduced in the background technology, with the popularization of the Internet, the loading speed of web pages is increasingly important for user experience. At present, the way to load web pages is that when a user makes a request, the server sends all resources to the client at once, resulting in slow page loading speed and affecting user experience.

[0040] In order to solve the problems of the prior art, the embodiments of the present invention provide a method, device, equipment and energy management system for dynamically loading a web page. The method for dynamically loading a web page provided by the embodiments of the present invention is first introduced below.

[0041] See also Figure 1 and Figure 2 , which shows a method for dynamically loading a web page provided by an embodiment of the present invention, which is described in detail as follows:

[0042] S110: When a first webpage loading request sent by a user is received, the user's operation status is monitored.

[0043] At present, although there are some web page loading technologies, such as on-demand loading, preloading, etc. However, the inventors have found that the current web page loading technologies do not fully utilize the user's free time to load resources, resulting in resource waste and poor user experience.

[0044] In some embodiments, the user's operating status may be that the user operates a mouse, keyboard, or screen of the client.

[0045] In some embodiments, in order to monitor the user's operating status, a timer can be set on the client. When a first webpage loading request sent by the user is received, the user's operating status is timed so as to monitor the user's operating status.

[0046] In some embodiments, the first web page loading request can be the first web page loading request issued when the user uses the client for the first time, or it can be any web page loading request issued by the user when operating the client, for example, when the user enters a function module and operates a trigger button.

[0047] S120: When it is determined that the user's operating state meets the preset idle state loading condition, a request for loading a preset resource is sent to the server, and the preset resource returned by the server is saved as a cache resource.

[0048] In some embodiments, in order to make full use of the user's free time, the user's operating status may be determined first.

[0049] In this embodiment, when it is detected that the user has not operated the client within a preset time interval, it is determined that the client is in an idle state, that is, the user has not operated the client within the preset time interval. When it is determined that the client is in an idle state, a request for loading a preset resource is sent to the server.

[0050] The preset time interval can be set according to the application scenario and is not limited here. The preset time interval here is a continuous time, that is, the interval from the first time to the second time is the preset time interval, and the user has not performed any operation on the client during this preset time interval. If the user is detected to have operated the client between the first time and the second time, the timer will be restarted, starting from the time when the user last operated the client, to confirm whether the preset idle state loading condition is met.

[0051] Specifically, when it is monitored that the user does not operate the mouse, keyboard or screen of the client within a preset time interval after issuing the first webpage loading request, it is determined that the client is in an idle state.

[0052] For example, if the preset time interval is set to 60s, when the first webpage loading request from the user is received, the user's operation status is monitored using a timer. If no user operation on the client is detected within 60s after the first webpage loading request is sent, it is determined that the user's operation status meets the preset idle state loading condition, and the client is determined to be in an idle state. When the user is detected to operate the client within 50s after the first webpage loading request from the user is received, the operation at this time may be clicking the mouse, the screen or the keyboard, and the timer needs to be restarted, starting from the time when the user is detected to operate the client.

[0053] In some embodiments, when it is determined that the client is in an idle state, a request for loading a preset resource is sent to the server, so that the idle time can be fully utilized for resource loading.

[0054] In this embodiment, the preset resources can be key sub-resources required for loading the main page, the main page is the page corresponding to the first web page loading request, and the key sub-resources include resources in the drop-down web page in the main page and resources of the next level web page of the main page.

[0055] In this embodiment, the key sub-resources may be website elements such as HTML, CSS, JavaScript, and images, or may be Cookies attached to HTTP requests for transmitting information between the browser and the server.

[0056] In some embodiments, the server obtains the preset resource corresponding to the preset resource loading request based on the received preset resource loading request, and the server returns the preset resource to the client, and the client saves the returned preset resource as a cache resource. By caching the returned preset resource, the client can reduce the load of the server and improve the stability and reliability of the system.

[0057] In this embodiment, the client can have multiple caching methods, such as memory caching, disk caching, or WebSQL. Memory caching will store the returned preset resources in memory so that they can be quickly obtained when accessed, reducing the number of requests to the server. Disk caching will store resources on the disk. This method is mainly used to store large-capacity resources or resources that cannot be stored in the memory cache. WebSQL provides a way to store structured data on the client, similar to a traditional SQL database. By adopting caching technology, the server load is reduced, the number of requests from the client to the server is reduced, the stability and reliability of the system are improved, and the loading speed is increased.

[0058] S130: When receiving a second webpage loading request sent by the user, respond to the second webpage loading request based on the second webpage loading request and the cache resources, and continue to monitor the user's operation status.

[0059] In some embodiments, after the client saves the preset resource as a cache resource, when receiving a second webpage loading request from a user, it first determines whether the cache resource is valid. When it is determined that the cache resource is valid and the cache resource contains the second webpage loading request, the resource corresponding to the second webpage loading request is obtained from the cache resource. When the cache resource does not include the second webpage loading request, the client needs to reload the resource from the server based on the second webpage loading request.

[0060] In this embodiment, there are two methods for determining whether the cache resource is valid. One is to set an expiration time for the cache resource, and the other is to determine the correlation between the first webpage loading request and the second webpage loading request.

[0061] For cache resources with an expiration time, when the expiration time of the cache resource is greater than the preset response time interval, the cache resource is determined to be invalid. The response time interval is the time interval between the time when the client saves the cache resource and the time when the second web page loading request is received. In order not to occupy more resources of the client, a cache resource expiration time threshold is set on the client. When the expiration time threshold is exceeded, the client will clear the cache resource.

[0062] For the correlation between the previous and next web page loading requests, when the correlation between the second web page loading request and the first web page loading request is less than a preset correlation, it is determined that the cache resource is invalid. The correlation can be determined based on the search string of the first web page loading request and the second web page loading request, and the correlation can be determined from aspects such as text similarity and edit distance.

[0063] In a specific application case, when the user enters the login interface of the energy management system, a first web page loading request will be generated. If the user has not operated for a period of time, the system will determine that it is currently in an idle state and will automatically preload the page resources after login into the cache space. After the user completes the login, based on the second web page loading request, the client will quickly load the relevant page resources from the cache space to achieve fast resource loading and improve user experience. Similar scenarios can also be applied to: when the user configures the acquisition device for the first time, he needs to bind the acquisition points of the corresponding device in a large number of measurement point libraries; when the user enters the help page from a specific function module and needs to select the help resources related to the function module from a large number of help resources (such as help icons or videos). Therefore, the energy management system that applies the technical solution of the present invention greatly improves the user experience in system operation and maintenance.

[0064] In order to effectively utilize the idle time of the user, the method for dynamically loading a web page of the present invention monitors the user's operating state when receiving the first web page loading request issued by the user. When it is determined that the user's operating state meets the preset idle state loading condition, a request for loading preset resources is sent to the server, and the preset resources returned by the server are saved as cache resources, so that the user's idle time can be fully utilized to load resources. In addition, caching the preset resources returned by the server can reduce the number of requests to the server and reduce the load of the server. Finally, when a second web page loading request issued by the user is received, based on the second web page loading request and the cache resources, the second web page loading request is responded to, and the user's operating state is continued to be monitored. Therefore, when the resources corresponding to the second web page loading request exist in the cache resources, they can be directly provided from the cache resources of the client without having to be obtained from the server, thereby improving the loading speed of the web page and the user experience.

[0065] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0066] Based on the method for dynamically loading a web page provided in the above embodiment, the present invention also provides a specific implementation of a device for dynamically loading a web page applied to the method for dynamically loading a web page. Please refer to the following embodiment.

[0067] like Figure 3 As shown, a device 300 for dynamically loading a web page is provided, and the device includes:

[0068] The monitoring status module 310 is used to monitor the user's operation status when receiving a first webpage loading request sent by the user;

[0069] The cache resource module 320 is used to send a request for loading preset resources to the server when it is determined that the user's operation state meets the preset idle state loading condition, and save the preset resources returned by the server as cache resources;

[0070] The request response module 330 is used to respond to the second webpage loading request based on the second webpage loading request and cache resources when receiving the second webpage loading request sent by the user, and continue to monitor the user's operation status.

[0071] In a possible implementation, the cache resource module 320 is used to determine that the client is in an idle state when it is detected that the user has not operated the client within a preset time interval;

[0072] When it is determined that the client is in an idle state, a request for loading a preset resource is sent to the server.

[0073] In a possible implementation, the cache resource module 320 is used to determine that the client is in an idle state when it is detected that the user has not operated the mouse, keyboard or screen of the client within a preset time interval after issuing the first webpage loading request.

[0074] In a possible implementation, the request response module 330 is used to determine whether the cache resource is valid;

[0075] When it is determined that the cache resource is valid and the cache resource contains the second webpage loading request, the resource corresponding to the second webpage loading request is obtained from the cache resource.

[0076] In a possible implementation, the response request module 330 is used to determine that the cache resource is invalid when the expiration time of the cache resource is greater than a preset response time interval; wherein the response time interval is the time interval between the time when the client saves the cache resource and the time when the second webpage loading request is received; or

[0077] When the correlation between the second webpage loading request and the first webpage loading request is less than a preset correlation, it is determined that the cache resource is invalid.

[0078] In a possible implementation, the client is provided with a cache area, and the cache resources are stored in the cache area;

[0079] The request response module 330 is used to clear the cache resources in the cache area when it is determined that the cache resources are invalid.

[0080] In one possible implementation, the cache resource module 320 is used to send a request to the server to load the key sub-resources required for loading the main page; wherein the main page is the page corresponding to the first web page loading request, and the key sub-resources include the resources in the drop-down web page within the main page and the resources of the next level web page of the main page.

[0081] The embodiment of the present invention provides a device for dynamically loading a web page. In order to effectively utilize the idle time of a user, when a first web page loading request issued by a user is received, the user's operation status is monitored. When it is determined that the user's operation status meets the preset idle state loading condition, a request for loading a preset resource is sent to a server, and the preset resource returned by the server is saved as a cache resource, so that the user's idle time can be fully utilized to load resources. In addition, caching the preset resource returned by the server can reduce the number of requests to the server and reduce the load on the server. Finally, when a second web page loading request issued by the user is received, based on the second web page loading request and the cache resource, the second web page loading request is responded to, and the user's operation status is continued to be monitored. Therefore, when the resource corresponding to the second web page loading request exists in the cache resource, it can be directly provided from the cache resource of the client without having to be obtained from the server, thereby improving the loading speed of the web page and the user experience.

[0082] Figure 4 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 4 As shown, the electronic device 4 of this embodiment includes: a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processor 40. When the processor 40 executes the computer program 42, the steps in the above-mentioned method embodiments for dynamically loading web pages are implemented, such as Figure 1 Alternatively, when the processor 40 executes the computer program 42, the functions of each module in the above-mentioned device embodiments are realized, for example, Figure 3 Functions of modules 310 to 330 are shown.

[0083] Exemplarily, the computer program 42 may be divided into one or more modules, which are stored in the memory 41 and executed by the processor 40 to implement the present invention. The one or more modules may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program 42 in the electronic device 4. For example, the computer program 42 may be divided into Figure 3 Modules 310 to 330 are shown.

[0084] The electronic device 4 may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will appreciate that Figure 4 It is only an example of the electronic device 4 and does not constitute a limitation of the electronic device 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.

[0085] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0086] The memory 41 may be an internal storage unit of the electronic device 4, such as a hard disk or memory of the electronic device 4. The memory 41 may also be an external storage device of the electronic device 4, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the electronic device 4. The memory 41 is used to store the computer program and other programs and data required by the electronic device. The memory 41 may also be used to temporarily store data that has been output or is to be output.

[0087] In addition, the present invention also provides an energy management system, which stores a computer program, and when the computer program is executed by a processor, the steps of any one of the methods described in the first aspect are implemented.

[0088] The energy management system provided by the present invention is a monitoring system stored on a computer for performing energy management on power generation equipment and power consumption equipment of facilities such as airports.

[0089] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0090] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0091] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0092] In the embodiments provided by the present invention, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0093] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0094] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0095] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned method embodiments for dynamic loading of each web page can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium.

[0096] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for dynamically loading a web page, characterized in that: Applied to the client, including: When receiving a first webpage loading request sent by a user, monitoring the user's operation status; When it is determined that the user's operating state meets the preset idle state loading condition, a request for loading a preset resource is sent to the server, and the preset resource returned by the server is saved as a cache resource; When a second webpage loading request from the user is received, the second webpage loading request is responded to based on the second webpage loading request and the cache resource, and the user's operation status is continuously monitored.

2. The method for dynamically loading a web page according to claim 1, characterized in that: When it is determined that the user's operating state meets the preset idle state loading condition, sending a request for loading a preset resource to the server includes: When it is detected that the user has not operated the client within a preset time interval, determining that the client is in an idle state; When it is determined that the client is in an idle state, a request for loading a preset resource is sent to the server.

3. The method for dynamically loading a web page according to claim 2, wherein: When it is detected that the user has not operated the client within a preset time interval, determining that the client is in an idle state includes: When it is monitored that the user does not operate the mouse, keyboard or screen of the client within a preset time interval after issuing the first webpage loading request, it is determined that the client is in an idle state.

4. The method for dynamically loading a web page according to claim 1, wherein: The responding to the second webpage loading request based on the second webpage loading request and the cache resource includes: Determining whether the cache resource is valid; When it is determined that the cache resource is valid and the cache resource contains the second webpage loading request, a resource corresponding to the second webpage loading request is obtained from the cache resource.

5. The method for dynamically loading a web page according to claim 4, characterized in that: The determining whether the cache resource is valid includes: When the expiration time of the cache resource is greater than a preset response time interval, determining that the cache resource is invalid; wherein the response time interval is the time interval between the time when the client saves the cache resource and the time when the second webpage loading request is received; or When the correlation between the second webpage loading request and the first webpage loading request is less than a preset correlation, it is determined that the cache resource is invalid.

6. The method for dynamically loading a web page according to claim 5, characterized in that: The client is provided with a cache area, and the cache resources are stored in the cache area; After determining that the cache resource is invalid, the method further includes: When it is determined that the cache resource is invalid, the cache resource in the cache area is cleared.

7. The method for dynamically loading a web page according to any one of claims 1 to 6, characterized in that: The sending of a request for loading a preset resource to the server includes: A request for loading key sub-resources required for loading a main page is sent to the server; wherein the main page is the page corresponding to the first web page loading request, and the key sub-resources include resources in a drop-down web page in the main page and resources in a next-level web page of the main page.

8. A device for dynamically loading a web page, characterized in that: include: A monitoring status module, configured to monitor the user's operation status when receiving a first webpage loading request from the user; A cache resource module, configured to send a request for loading a preset resource to a server when it is determined that the user's operating state meets a preset idle state loading condition, and save the preset resource returned by the server as a cache resource; The request response module is used to respond to the second webpage loading request based on the second webpage loading request and the cache resource when receiving the second webpage loading request sent by the user, and continue to monitor the user's operation status.

9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the method according to any one of claims 1 to 7.

10. An energy management system, wherein the energy management system stores a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.