CN117407091B - Rapid WEB picture loading method and system based on file localization deployment - Google Patents

Rapid WEB picture loading method and system based on file localization deployment Download PDF

Info

Publication number
CN117407091B
CN117407091B CN202311701277.2A CN202311701277A CN117407091B CN 117407091 B CN117407091 B CN 117407091B CN 202311701277 A CN202311701277 A CN 202311701277A CN 117407091 B CN117407091 B CN 117407091B
Authority
CN
China
Prior art keywords
resource
loading
private
picture
resources
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311701277.2A
Other languages
Chinese (zh)
Other versions
CN117407091A (en
Inventor
徐奎
刘林钰
洪诗鑫
兰洋
李文康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Research Institute of Nuclear Power Operation
China Nuclear Power Operation Technology Corp Ltd
Original Assignee
Research Institute of Nuclear Power Operation
China Nuclear Power Operation Technology Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Research Institute of Nuclear Power Operation, China Nuclear Power Operation Technology Corp Ltd filed Critical Research Institute of Nuclear Power Operation
Priority to CN202311701277.2A priority Critical patent/CN117407091B/en
Publication of CN117407091A publication Critical patent/CN117407091A/en
Application granted granted Critical
Publication of CN117407091B publication Critical patent/CN117407091B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a WEB picture quick loading method and a system based on file localization deployment, wherein the method comprises the following steps: classifying the picture resources according to preset rules to obtain public resources, first private resources and second private resources; downloading the public resource to a browser plug-in, and downloading the first private resource to a client; responding to a picture loading request sent by a WEB display interface, wherein the picture loading request comprises a request for loading resources; when the request loading resource is a public resource, acquiring and loading the public resource from the browser plug-in; when the request loading resource is a first private resource, acquiring and loading the first private resource from the client; and when the request loading resource is the second private resource, acquiring and loading the second private resource from the server. The invention reduces the image loading time and improves the image loading efficiency.

Description

Rapid WEB picture loading method and system based on file localization deployment
Technical Field
The invention relates to the technical field of picture display, in particular to a WEB picture quick loading method and system based on file localization deployment.
Background
In order to facilitate the staff of the nuclear power station to grasp the running state and fault information of the nuclear power station in real time, each picture in the nuclear power station needs to be loaded in a WEB end corresponding to the operator for display.
The WEB picture loading method in the prior art comprises the following steps: and directly acquiring and loading the picture resources from a server storing the picture resources corresponding to the pictures so as to display the pictures at the WEB side. However, as the complexity of the picture increases, the resource amount of the picture resource also increases greatly, and the picture loading is realized in the above manner, so that the speed of downloading the picture resource to the WEB terminal is slower, namely: the picture loading efficiency is lower, and the loading requirement in the nuclear power station can not be met.
Therefore, it is needed to provide a method and a system for rapidly loading a WEB frame based on file localization deployment, so as to rapidly load a frame with a large amount of resources, so as to ensure that the loading requirement in a nuclear power station is met.
Disclosure of Invention
The invention discloses a WEB picture quick loading method and a system based on file localization deployment, which are used for solving the technical problems of slower picture resource downloading speed and lower picture loading efficiency caused by directly acquiring and loading picture resources from a server in the prior art.
In one aspect, the invention provides a method for rapidly loading a WEB picture based on file localization deployment, which is used for loading picture resources in a server to a WEB display interface in a WEB end, and the method for rapidly loading the WEB picture based on file localization deployment comprises the following steps:
classifying the picture resources according to preset rules to obtain public resources, first private resources and second private resources; downloading the public resource to a browser plug-in, and downloading the first private resource to a client; responding to a picture loading request sent by the WEB display interface, wherein the picture loading request comprises a request for loading resources; when the request loading resource is the public resource, acquiring and loading the public resource from the browser plug-in;
when the request loading resource is the first private resource, acquiring and loading the first private resource from the client;
and when the request loading resource is the second private resource, acquiring and loading the second private resource from the server.
In some possible implementations, the preset rule is at least one of a usage frequency, a resource acquisition time, and a memory space occupied by a resource.
In some possible implementations, the preset rule is the usage frequency and the resource acquisition time; classifying the picture resources according to a preset rule to obtain public resources, first private resources and second private resources, wherein the classifying comprises the following steps:
determining the frequency of use of the picture resources;
taking the picture resources with the use frequency greater than or equal to a first frequency threshold as the public resources;
taking the picture resource with the use frequency smaller than the first frequency threshold and larger than or equal to the second frequency threshold as the first private resource; or, acquiring the acquisition time of the picture resource, determining the current time, and taking the picture resource with the time difference between the current time and the acquisition time smaller than a time difference threshold as the first private resource;
and taking the picture resource with the using frequency smaller than the second frequency threshold and the time difference between the current time and the acquisition time larger than or equal to the time difference threshold as the second private resource.
In some possible implementations, when the request to load the resource is the first private resource, acquiring and loading the first private resource from the client includes:
when the request loading resource is the first private resource, acquiring the first private resource from the client;
acquiring client version information of the first private resource in the client and server version information of the first private resource in the server;
loading the first private resource in the client when the client version information and the server version information are consistent;
and when the client version information and the server version information are inconsistent, acquiring and loading the first private resource from the server.
In some possible implementations, the obtaining the client version information of the first private resource in the client includes:
and acquiring the downloading time of the first private resource in the client, and determining the version information of the client based on the downloading time.
In some possible implementations, the obtaining the client version information of the first private resource in the client includes:
and acquiring a version log of the first private resource in the client, and determining the version information of the client based on the version log.
In some possible implementations, the downloading the public resource to the browser plug-in and the downloading the first private resource to the client includes:
acquiring resource downloading time;
and when the current time is the resource downloading time, responding to a resource downloading instruction, downloading the public resource to the browser plug-in, and downloading the first private resource to the client.
In some possible implementations, before classifying the screen resources according to the preset rule to obtain the public resource, the first private resource, and the second private resource, the method further includes:
respectively obtaining a first database resource, a second database resource and a third database resource from a real-time database, a historical database and a relational database;
and integrating the first database resource, the second database resource and the third database resource to obtain the picture resource, and storing the picture resource to the server.
In some possible implementations, integrating the first database resource, the second database resource, and the third database resource includes:
and carrying out data filtering, noise reduction and duplication removal on the first database resource, the second database resource and the third database resource.
The invention also provides a WEB picture quick loading system based on file localization deployment, which is used for loading picture resources in a server to a WEB display interface in a WEB end, and comprises the following steps:
the picture resource classification unit is used for classifying the picture resources according to a preset rule to obtain public resources, first private resources and second private resources;
the picture resource downloading unit is used for downloading the public resource to the browser plug-in and downloading the first private resource to the client;
the loading request response unit is used for responding to a picture loading request sent by the WEB display interface, wherein the picture loading request comprises a request for loading resources;
the first loading unit is used for acquiring and loading the public resource from the browser plug-in when the request loading resource is the public resource;
the second loading unit is used for acquiring and loading the first private resource from the client when the request loading resource is the first private resource;
and the third loading unit is used for acquiring and loading the second private resource from the server when the request loading resource is the second private resource.
The beneficial effects of the implementation mode are that: the invention provides a WEB picture quick loading method based on file localization deployment, which comprises the steps of firstly classifying picture resources according to preset rules to obtain public resources, first private resources and second private resources, downloading the public resources to a browser plug-in, downloading the first private resources to a client, and acquiring and loading the public resources from the browser plug-in when the request to load the resources is public resources; when the request loading resource is a first private resource, acquiring and loading the first private resource from the client; and when the request loading resource is the second private resource, acquiring and loading the second private resource from the server-side program of the server. The method and the device can not only directly acquire the picture resources from the server, but also correspondingly load the public resources and the first private resources from the browser plug-in and the client, thereby reducing the picture loading time and improving the picture loading efficiency.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following description will briefly explain the drawings needed in the description of the embodiments, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of an embodiment of a method for rapidly loading a WEB frame based on file localization deployment according to the present invention;
FIG. 2 is a flowchart illustrating the step S101 of FIG. 1 according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating the step S105 of FIG. 1 according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating an embodiment of obtaining a frame resource according to the present invention;
FIG. 5 is a flowchart of a specific embodiment of a method for rapidly loading a WEB frame based on file localization deployment according to the present invention;
FIG. 6 is a schematic structural diagram of an embodiment of a WEB screen fast loading system based on file localization deployment according to the present invention;
fig. 7 is a schematic structural diagram of an embodiment of a picture display device provided by the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the schematic drawings are not drawn to scale. A flowchart, as used in this disclosure, illustrates operations implemented according to some embodiments of the present invention. It should be appreciated that the operations of the flow diagrams may be implemented out of order and that steps without logical context may be performed in reverse order or concurrently. Moreover, one or more other operations may be added to or removed from the flow diagrams by those skilled in the art under the direction of the present disclosure.
Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor systems and/or microcontroller systems.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In the description of the embodiments of the present invention, unless otherwise indicated, the meaning of "a plurality" is two or more. "and/or", describes an association relationship of an associated object, meaning that there may be three relationships, for example: a and/or B may represent: a exists alone, A and B exist together, and B exists alone.
If any, the terms "first," "second," etc. are used merely for distinguishing between technical features, they are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
The embodiment of the invention provides a method and a system for rapidly loading a WEB picture based on file localization deployment, which are respectively described below.
The method for quickly loading the WEB picture based on the file localization deployment is used for loading the picture resources in the server to the WEB display interface in the WEB end, and as shown in fig. 1, the method for quickly loading the WEB picture based on the file localization deployment comprises the following steps:
s101, classifying picture resources according to preset rules to obtain public resources, first private resources and second private resources;
s102, downloading public resources to a browser plug-in, and downloading first private resources to a client;
s103, responding to a picture loading request sent by a WEB display interface, wherein the picture loading request comprises a request for loading resources;
s104, when the request loading resource is a public resource, acquiring and loading the public resource from the browser plug-in;
s105, when the request loading resource is a first private resource, acquiring and loading the first private resource from the client;
s106, when the request loading resource is the second private resource, the second private resource is obtained and loaded from the server.
Compared with the prior art, the method for rapidly loading the WEB picture based on the file localization deployment provided by the embodiment of the invention classifies picture resources according to preset rules to obtain public resources, first private resources and second private resources, downloads the public resources to a browser plug-in, downloads the first private resources to a client, and acquires and loads the public resources from the browser plug-in when the request for loading the resources is public resources; when the request loading resource is a first private resource, acquiring and loading the first private resource from the client; and when the request loading resource is the second private resource, acquiring and loading the second private resource from the server. The method and the device can not only directly acquire the picture resources from the server, but also correspondingly load the public resources and the first private resources from the browser plug-in and the client, thereby reducing the picture loading time and improving the picture loading efficiency.
The picture resources include, but are not limited to, picture file resources to be displayed on a picture, picture file resources include, but are not limited to, part pattern information, attribute information, association information between parts and the like, and display resources include, but are not limited to, background colors, fonts, part color information, line information and the like.
It should be noted that: the following in step S102 refers to: the picture resources are downloaded from the server and stored.
In a specific embodiment of the present invention, the specific manner of downloading the first private resource to the client in step S102 is as follows: the first private resource is downloaded from the server and stored in the storage space. Wherein the storage space may be a disk.
It should be understood that: the preset rule in step S101 may be compiled or modified according to the actual application scenario requirement or experience, and in some embodiments of the present invention, the preset rule is at least one of the usage frequency, the resource acquisition time, and the memory space occupied by the resource.
Also to be described is: in order to reduce the downloading time of the public resource and the first private resource, in the embodiment of the invention, when the browser plug-in and the client side download the resource, the resource is required to be compressed and packaged to obtain a resource package, and after the resource package is downloaded to the local, the resource package is decompressed and used.
Further to be described is: in order to improve the regularity and intuitiveness of the first private resource downloaded to the client, in a specific embodiment of the present invention, the first private resource is stored in a folder form, where the name of the folder may be the picture name of the first private resource.
It should also be appreciated that: the public resource and the first private resource are downloaded from the server, namely: all the picture resources are stored in the server, and then the picture resources in the server are respectively and correspondingly downloaded to the browser plug-in and the client according to the public resources and the first private resources, so that the realization can be realized: when the request to load the resource does not exist in both the browser plug-in and the client, the request to load the resource can be obtained and loaded from the server.
In a specific embodiment of the present invention, the preset rule is the frequency of use and the resource acquisition time; then, as shown in fig. 2, step S101 includes:
s201, determining the frequency of use of the picture resources;
s202, using a picture resource with the use frequency being greater than or equal to a first frequency threshold value as a public resource;
s203, taking the picture resources with the use frequency smaller than the first frequency threshold and larger than or equal to the second frequency threshold as first private resources; or, acquiring the acquisition time of the picture resource, determining the current time, and taking the picture resource of which the time difference between the current time and the acquisition time is smaller than a time difference threshold value as a first private resource;
s204, taking the picture resource with the use frequency smaller than a second frequency threshold and the time difference between the current time and the acquisition time larger than or equal to the time difference threshold as a second private resource.
According to the embodiment of the invention, the picture resources with the frequency greater than or equal to the first frequency threshold are used as public resources, the loading time of the public resources can be minimized, and the picture resources with the frequency between the first threshold frequency and the second threshold frequency, or the picture resources with the time difference between the current time and the acquisition time smaller than the time difference threshold are used as first private resources, so that the loading efficiency of the first private resources is improved, and the instantaneity of the first private resources is ensured.
The first frequency threshold, the second frequency threshold and the time difference threshold can be set according to the size of the storage space of the browser plug-in and the client in consideration of the limitation of the storage space of the browser plug-in and the client.
It should be understood that: the first frequency threshold, the second frequency threshold, and the time difference threshold may be set or adjusted according to other factors or requirements, which will not be described in detail herein.
In a specific embodiment of the present invention, the first private resource in the client includes 40 screen resources, wherein 20 screen resources whose usage frequency is greater than or equal to the first frequency threshold value are the 20 screen resources, and the other 20 screen resources are the latest 20 screen resources from the time point of view.
In a specific embodiment of the present invention, the public resources include, but are not limited to, background color, font, etc., and the first private resources include, but are not limited to, graphics information, attribute information, etc., of each component.
It should be noted that: when the preset rule is that the resources occupy the storage space, the number of the public resources in the browser plug-in is determined according to the storage space occupied by each public resource and the storage space available for storing the public resources in the browser plug-in. Similarly, the number of the first private resources in the client is determined according to the storage space occupied by each first private resource and the storage space available for storing the first private resources in the client.
Since the screen resources will change along with the change of the demand of the nuclear power plant, in order to avoid the technical problem that when the screen resources in the server are updated in real time, but the change of the resources is not synchronized to the client, the screen loading is performed by the first private resources downloaded in the client, and the loaded screen is not the real-time latest screen, in some embodiments of the present invention, as shown in fig. 3, step S105 includes:
s301, when the request loading resource is a first private resource, acquiring the first private resource from the client;
s302, acquiring client version information of a first private resource in a client and server version information of the first private resource in a server;
s303, loading a first private resource in the client when the version information of the client is consistent with the version information of the server;
s304, when the version information of the client and the version information of the server are inconsistent, the first private resource is obtained and loaded from the server.
The embodiment of the invention determines whether the first private resource in the client is the latest real-time resource or not by comparing the client version information of the first private resource in the client with the server version information of the first private resource in the server, and directly loads the first private resource in the client when the client version information is consistent with the server version information; when the version information of the client and the version information of the server are inconsistent, the first private resource in the client is not the latest real-time resource, and the first private resource is acquired and loaded from the server so as to ensure that the loaded picture is the latest real-time resource.
It should be noted that: in order to make the first private resource in the client be the real-time latest resource, after step S304, the method further includes:
and downloading the first private resource in the server to the client again, so that the first private resource in the client is ensured to be the real-time latest resource, and the next picture loading is facilitated.
Similarly, to ensure that the public resource is also the real-time latest resource, step S104 may specifically include:
when the public resource in the browser plug-in is not the real-time latest resource, the public resource is loaded from the server, and when the public resource in the browser plug-in is the real-time latest resource, the public resource is directly loaded from the browser plug-in.
In some embodiments of the present invention, the obtaining the client version information of the first private resource in the client in step S302 includes:
acquiring downloading time of a first private resource in a client, and determining client version information based on the downloading time;
and/or the number of the groups of groups,
and obtaining a version log of the first private resource in the client, and determining client version information based on the version log.
The embodiment of the invention sets two ways to determine the client version information of the first private resource, and improves the diversity of the client version information acquisition modes.
The specific mode for determining the version information of the client based on the downloading time is as follows: every time a picture resource is updated, its update time and update version are recorded, that is: in the time period before the next version update, the client version information is determined according to the downloading time and the time point of each version update. Specifically: the picture resource is updated once in the period of 25 days of 10 months of 2023, the last version updating time is 2023, 7 months of 10 days, if the downloading time is 2023, 9 months of 8 days, the client version is the last version, and if the downloading time is 2023, 10 months of 26 days, the client version is the current version.
The specific mode for determining the version information of the client based on the version log is as follows: each update of a picture resource generates a version number including, for example: v2023.1 version log. The client version information can be directly determined by comparing the version numbers.
To improve controllability of common resource downloading, in some embodiments of the present invention, step S102 includes:
acquiring resource downloading time;
when the current time is the resource downloading time, responding to a resource downloading instruction, downloading the public resource to the browser plug-in, and downloading the first private resource to the client.
According to the embodiment of the invention, when the current time is the resource downloading time, the public resource is downloaded to the browser plug-in unit in response to the resource downloading instruction, the first private resource is downloaded to the client, the time point of downloading the first private resource to the client is controlled, and the controllability of resource downloading is ensured.
In one embodiment of the invention, the resource download time may be 23 hours to 5 hours at night.
In another embodiment of the present invention, the resource downloading time is the time when the computer where the client is located is restarted after each restart or shutdown.
In order to improve the comprehensiveness and integrity of the screen resources in the server, in some embodiments of the present invention, before step S101, as shown in fig. 4, the method further includes:
s401, respectively obtaining a first database resource, a second database resource and a third database resource from a real-time database, a historical database and a relational database;
s402, integrating the first database resource, the second database resource and the third database resource to obtain a picture resource, and storing the picture resource to a server.
The picture resources in the embodiment of the invention are respectively from a real-time database, a historical database and a relational database, so that the picture resources are rich in sources, and the comprehensiveness and the integrity of the picture resources are improved.
In step S402, the first database resource, the second database resource, and the third database resource are integrated, including but not limited to data filtering, noise reduction, deduplication, and the like.
The accuracy and the conciseness of the obtained picture resources can be improved by carrying out data filtering, noise reduction, duplicate removal and other treatments on the first database resource, the second database resource and the third database resource, so that the accuracy of the loaded picture is improved.
The data filtering may specifically be removing data with abnormal data format; the data noise reduction refers to removing noise data in data, wherein the noise data refers to data with data values which are excessively different from the average value of all data; data deduplication refers to the removal of duplicate data.
In a specific embodiment of the present invention, as shown in fig. 5, a specific flow of a WEB frame rapid loading method based on file localization deployment is as follows: responding to a picture loading request sent by a WEB display interface, wherein the picture loading request comprises a request for loading resources; before loading the resource based on the request, intercepting the request through a plug-in, redirecting the resource, and acquiring and loading the public resource from the browser plug-in when the request loads the resource as the public resource; when the request loading resource is a first private resource, acquiring and loading the first private resource from the client; when the request loading resource is a second private resource, acquiring and loading the second private resource from the server; when the request loading resource does not exist in the server, all the picture resources are correspondingly obtained from the real-time database, the history database and the relational database based on the interface request to the server, and then the picture resources are obtained from the server. The obtaining and loading the first private resource from the client further includes: judging whether the first private resource is stored in the client, acquiring and loading the first private resource from the server when the first private resource does not exist in the client, judging whether the time of the first private resource stored in the client is consistent with the time of the first private resource stored in the server or not when the first private resource exists in the client, when the time of the first private resource is consistent with the time of the first private resource stored in the server, indicating that the version of the first private resource in the client is the latest version, acquiring and loading the first private resource from the client directly, and when the version of the first private resource in the client is inconsistent, indicating that the version of the first private resource in the client is not the latest version, and acquiring and loading the first private resource from the server.
Wherein, as shown in fig. 5, when the client starts for the first time, 20 pieces of hot spot data (data of 20 top ranking of the frequency of use) and 20 pieces of latest data (data latest in the time dimension) are automatically acquired and downloaded.
In order to better implement the WEB frame rapid loading method based on the file localization deployment in the embodiment of the present invention, correspondingly, the embodiment of the present invention further provides a WEB frame rapid loading system based on the file localization deployment, as shown in fig. 6, a WEB frame rapid loading system 600 based on the file localization deployment includes:
a picture resource classification unit 601, configured to classify picture resources according to a preset rule to obtain public resources, first private resources, and second private resources;
a screen resource downloading unit 602, configured to download the public resource to the browser plug-in, and download the first private resource to the client;
a loading request response unit 603, configured to respond to a screen loading request sent by the WEB display interface, where the screen loading request includes a request for loading a resource;
a first loading unit 604, configured to acquire and load a common resource from the browser plug-in when the requested loading resource is the common resource;
a second loading unit 605, configured to acquire and load a first private resource from the client when the requested loading resource is the first private resource;
and a third loading unit 606, configured to obtain and load the second private resource from the server when the requested loading resource is the second private resource.
The quick WEB frame loading system 600 based on the file localization deployment provided in the foregoing embodiment may implement the technical solution described in the foregoing embodiment of the quick WEB frame loading method based on the file localization deployment, and the specific implementation principle of each module or unit may refer to the corresponding content in the foregoing embodiment of the quick WEB frame loading method based on the file localization deployment, which is not described herein again.
As shown in fig. 7, the present invention also provides a picture display device 700 accordingly. The picture display device 700 comprises a processor 701, a memory 702 and a display 703. Fig. 7 shows only some of the components of the screen display device 700, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead.
The processor 701 may be a central processing unit (Central Processing Unit, CPU), microprocessor or other data processing chip in some embodiments for executing program code or processing data stored in the memory 702, such as the WEB screen fast loading method of the present invention based on file localization deployment.
In some embodiments, the processor 701 may be a single server or a group of servers. The server farm may be centralized or distributed. In some embodiments, the processor 701 may be local or remote. In some embodiments, the processor 701 may be implemented in a cloud platform. In an embodiment, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an inter-internal, multiple clouds, or the like, or any combination thereof.
The memory 702 may be an internal storage unit of the picture display device 700 in some embodiments, such as a hard disk or memory of the picture display device 700. The memory 702 may also be an external storage device of the picture display device 700 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the picture display device 700.
Further, the memory 702 may also include both internal storage units and external storage devices of the picture display device 700. The memory 702 is used to store application software and various types of data for installing the screen display device 700.
The display 703 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like in some embodiments. The display 703 is used for displaying information on the screen display device 700 and for displaying a visual user interface. The components 701-703 of the picture display device 700 communicate with each other via a system bus.
In some embodiments of the present invention, when the processor 701 executes the WEB screen quick loader deployed based on file localization in the memory 702, the following steps may be implemented:
classifying the picture resources according to preset rules to obtain public resources, first private resources and second private resources;
downloading the public resource to a browser plug-in, and downloading the first private resource to a client;
responding to a picture loading request sent by a WEB display interface, wherein the picture loading request comprises a request for loading resources;
when the request loading resource is a public resource, acquiring and loading the public resource from the browser plug-in;
when the request loading resource is a first private resource, acquiring and loading the first private resource from the client;
and when the request loading resource is the second private resource, acquiring and loading the second private resource from the server.
It should be understood that: the processor 701 may perform other functions in addition to the above functions when executing the WEB screen quick loader deployed based on file localization in the memory 702, and specific reference may be made to the description of the related method embodiments.
Correspondingly, the embodiment of the application also provides a computer readable storage medium, which is used for storing a computer readable program or instruction, and when the program or instruction is executed by a processor, the steps or functions in the WEB picture quick loading method based on file localization deployment provided by the embodiments of the method can be realized.
Those skilled in the art will appreciate that all or part of the flow of the methods of the embodiments described above may be accomplished by way of a computer program stored in a computer readable storage medium to instruct related hardware (e.g., a processor, a controller, etc.). The computer readable storage medium is a magnetic disk, an optical disk, a read-only memory or a random access memory.
The invention provides a method and a system for rapidly loading a WEB picture based on file localization deployment, which are described in detail, wherein specific examples are applied to illustrate the principle and the implementation of the invention, and the description of the above examples is only used for helping to understand the method and the core idea of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present invention, the present description should not be construed as limiting the present invention.

Claims (8)

1. The method for rapidly loading the WEB picture based on the file localization deployment is characterized by being used for loading picture resources in a server to a WEB display interface in a WEB terminal, and comprises the following steps of:
classifying the picture resources according to preset rules to obtain public resources, first private resources and second private resources;
downloading the public resource to a browser plug-in, and downloading the first private resource to a client;
responding to a picture loading request sent by the WEB display interface, wherein the picture loading request comprises a request for loading resources;
when the request loading resource is the public resource, acquiring and loading the public resource from the browser plug-in;
when the request loading resource is the first private resource, acquiring and loading the first private resource from the client;
when the request loading resource is the second private resource, acquiring and loading the second private resource from the server;
the preset rule is at least one of frequency of use, resource acquisition time and memory space occupied by resources;
when the preset rule is the frequency of use and the resource acquisition time; the classifying the picture resources according to the preset rule to obtain public resources, first private resources and second private resources includes:
determining the frequency of use of the picture resources;
taking the picture resources with the use frequency greater than or equal to a first frequency threshold as the public resources;
taking the picture resource with the use frequency smaller than the first frequency threshold and larger than or equal to the second frequency threshold as the first private resource; or, acquiring the acquisition time of the picture resource, determining the current time, and taking the picture resource with the time difference between the current time and the acquisition time smaller than a time difference threshold as the first private resource;
and taking the picture resource with the using frequency smaller than the second frequency threshold and the time difference between the current time and the acquisition time larger than or equal to the time difference threshold as the second private resource.
2. The method for rapidly loading a WEB screen based on file localization deployment according to claim 1, wherein when the requested loading resource is the first private resource, acquiring and loading the first private resource from the client comprises:
when the request loading resource is the first private resource, acquiring the first private resource from the client;
acquiring client version information of the first private resource in the client and server version information of the first private resource in the server;
loading the first private resource in the client when the client version information and the server version information are consistent;
and when the client version information and the server version information are inconsistent, acquiring and loading the first private resource from the server.
3. The method for rapidly loading a WEB screen based on file localization deployment according to claim 2, wherein the obtaining the client version information of the first private resource in the client comprises:
and acquiring the downloading time of the first private resource in the client, and determining the version information of the client based on the downloading time.
4. The method for rapidly loading a WEB screen based on file localization deployment according to claim 2, wherein the obtaining the client version information of the first private resource in the client comprises:
and acquiring a version log of the first private resource in the client, and determining the version information of the client based on the version log.
5. The method for quickly loading a WEB screen based on file localization deployment according to claim 1, wherein downloading the public resource to the browser plug-in and downloading the first private resource to the client comprises:
acquiring resource downloading time;
and when the current time is the resource downloading time, responding to a resource downloading instruction, downloading the public resource to the browser plug-in, and downloading the first private resource to the client.
6. The method for rapidly loading a WEB frame based on file localization deployment according to claim 1, wherein before classifying the frame resources according to a preset rule to obtain a public resource, a first private resource and a second private resource, the method further comprises:
respectively obtaining a first database resource, a second database resource and a third database resource from a real-time database, a historical database and a relational database;
and integrating the first database resource, the second database resource and the third database resource to obtain the picture resource, and storing the picture resource to the server.
7. The method for rapidly loading a WEB frame based on file localization deployment of claim 6, wherein integrating the first database resource, the second database resource, and the third database resource comprises:
and carrying out data filtering, noise reduction and duplication removal on the first database resource, the second database resource and the third database resource.
8. A WEB picture quick loading system based on file localization deployment, which is used for loading picture resources in a server to a WEB display interface in a WEB terminal, the WEB picture quick loading system based on file localization deployment comprises:
the picture resource classification unit is used for classifying the picture resources according to a preset rule to obtain public resources, first private resources and second private resources;
the picture resource downloading unit is used for downloading the public resource to the browser plug-in and downloading the first private resource to the client;
the loading request response unit is used for responding to a picture loading request sent by the WEB display interface, wherein the picture loading request comprises a request for loading resources;
the first loading unit is used for acquiring and loading the public resource from the browser plug-in when the request loading resource is the public resource;
the second loading unit is used for acquiring and loading the first private resource from the client when the request loading resource is the first private resource;
the third loading unit is used for acquiring and loading the second private resource from the server when the request loading resource is the second private resource;
the preset rule is at least one of frequency of use, resource acquisition time and memory space occupied by resources;
when the preset rule is the frequency of use and the resource acquisition time; the classifying the picture resources according to the preset rule to obtain public resources, first private resources and second private resources includes:
determining the frequency of use of the picture resources;
taking the picture resources with the use frequency greater than or equal to a first frequency threshold as the public resources;
taking the picture resource with the use frequency smaller than the first frequency threshold and larger than or equal to the second frequency threshold as the first private resource; or, acquiring the acquisition time of the picture resource, determining the current time, and taking the picture resource with the time difference between the current time and the acquisition time smaller than a time difference threshold as the first private resource;
and taking the picture resource with the using frequency smaller than the second frequency threshold and the time difference between the current time and the acquisition time larger than or equal to the time difference threshold as the second private resource.
CN202311701277.2A 2023-12-12 2023-12-12 Rapid WEB picture loading method and system based on file localization deployment Active CN117407091B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311701277.2A CN117407091B (en) 2023-12-12 2023-12-12 Rapid WEB picture loading method and system based on file localization deployment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311701277.2A CN117407091B (en) 2023-12-12 2023-12-12 Rapid WEB picture loading method and system based on file localization deployment

Publications (2)

Publication Number Publication Date
CN117407091A CN117407091A (en) 2024-01-16
CN117407091B true CN117407091B (en) 2024-03-19

Family

ID=89487407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311701277.2A Active CN117407091B (en) 2023-12-12 2023-12-12 Rapid WEB picture loading method and system based on file localization deployment

Country Status (1)

Country Link
CN (1) CN117407091B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103336702A (en) * 2013-06-29 2013-10-02 广州市动景计算机科技有限公司 Method and device of accelerating webpage loading
CN107526751A (en) * 2016-06-22 2017-12-29 广州市动景计算机科技有限公司 Loading method, client, web page server and the programmable device of webpage
CN108228353A (en) * 2017-12-29 2018-06-29 北京元心科技有限公司 resource access control method, device and corresponding terminal
CN110471709A (en) * 2019-07-15 2019-11-19 北京字节跳动网络技术有限公司 A kind of method, apparatus, medium and electronic equipment accelerating webpage opening speed
CN111681093A (en) * 2020-04-28 2020-09-18 上海淇馥信息技术有限公司 Method and device for displaying resource page and electronic equipment
US11032213B1 (en) * 2018-12-14 2021-06-08 Amazon Technologies, Inc. Centralized management of computing resources across service provider networks
CN113486273A (en) * 2021-07-09 2021-10-08 上海淇馥信息技术有限公司 Front-end information flow page loading method and device and electronic equipment
CN114428922A (en) * 2022-01-24 2022-05-03 中国工商银行股份有限公司 Page loading method and device, terminal equipment and storage medium
CN114546563A (en) * 2022-02-23 2022-05-27 北京京航计算通讯研究所 Multi-tenant page access control method and system
WO2023024436A1 (en) * 2021-08-23 2023-03-02 中国银联股份有限公司 Page loading method, assembly, system, apparatus, and computer-readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241372A (en) * 2016-03-29 2017-10-10 阿里巴巴集团控股有限公司 Configuration information generation, sending method and resource loading method and apparatus and system
US10735348B2 (en) * 2016-04-29 2020-08-04 International Business Machines Corporation Providing an optimal resource to a client computer via interactive dialog

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103336702A (en) * 2013-06-29 2013-10-02 广州市动景计算机科技有限公司 Method and device of accelerating webpage loading
CN107526751A (en) * 2016-06-22 2017-12-29 广州市动景计算机科技有限公司 Loading method, client, web page server and the programmable device of webpage
CN108228353A (en) * 2017-12-29 2018-06-29 北京元心科技有限公司 resource access control method, device and corresponding terminal
US11032213B1 (en) * 2018-12-14 2021-06-08 Amazon Technologies, Inc. Centralized management of computing resources across service provider networks
CN110471709A (en) * 2019-07-15 2019-11-19 北京字节跳动网络技术有限公司 A kind of method, apparatus, medium and electronic equipment accelerating webpage opening speed
CN111681093A (en) * 2020-04-28 2020-09-18 上海淇馥信息技术有限公司 Method and device for displaying resource page and electronic equipment
CN113486273A (en) * 2021-07-09 2021-10-08 上海淇馥信息技术有限公司 Front-end information flow page loading method and device and electronic equipment
WO2023024436A1 (en) * 2021-08-23 2023-03-02 中国银联股份有限公司 Page loading method, assembly, system, apparatus, and computer-readable storage medium
CN114428922A (en) * 2022-01-24 2022-05-03 中国工商银行股份有限公司 Page loading method and device, terminal equipment and storage medium
CN114546563A (en) * 2022-02-23 2022-05-27 北京京航计算通讯研究所 Multi-tenant page access control method and system

Also Published As

Publication number Publication date
CN117407091A (en) 2024-01-16

Similar Documents

Publication Publication Date Title
CN112181439A (en) Micro-service deployment method and device, electronic equipment and readable storage medium
CN110290166B (en) Cross-cluster data interaction method, system and device and readable storage medium
CN111367518B (en) Page layout method, page layout device, computing equipment and computer storage medium
US9380001B2 (en) Deploying and modifying a service-oriented architecture deployment environment model
CN111243068A (en) Automatic rendering method and device for 3D model scene and storage medium
CN112181746A (en) Fault repairing method, device and equipment for vehicle-mounted operating system
CN117407091B (en) Rapid WEB picture loading method and system based on file localization deployment
US20130138611A1 (en) Tiered xml services in a content management system
CN109309858B (en) Display method, device, equipment and medium of mutually exclusive icon
CN105898399A (en) Video resource loading method and device and smart television
CN115591243A (en) Rendering channel performance detection method and device, electronic equipment and storage medium
CN113850118A (en) Video processing function verification method and device, electronic equipment and storage medium
CN113918194A (en) Page component display method and device, electronic equipment and storage medium
CN112465604A (en) Order distribution method and device, computer equipment and computer readable storage medium
CN111858234A (en) Task execution method, device, equipment and medium
CN112565472A (en) Static resource processing method and device
CN114785789B (en) Database fault management method and device, electronic equipment and storage medium
CN118394611B (en) Out-of-band installation operating system progress identification method, device, equipment and medium
CN113342493B (en) Task execution method and device and computer equipment
CN111562924B (en) Distributed mobile application running system and application method based on Reactnative
CN109905759B (en) List display method, device, equipment and medium applied to Android client
CN118642914A (en) Operation and maintenance system-based monitoring visualization method, system, equipment and storage medium
CN118057458A (en) Rendering method, rendering device, storage medium, electronic equipment and product
CN118013057A (en) Manuscript material recommendation method and device
CN115242628A (en) Application downloading method, device and equipment based on module deployment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant