CN112883296A - Visual page loading method, device and equipment and storage medium - Google Patents

Visual page loading method, device and equipment and storage medium Download PDF

Info

Publication number
CN112883296A
CN112883296A CN202110084233.4A CN202110084233A CN112883296A CN 112883296 A CN112883296 A CN 112883296A CN 202110084233 A CN202110084233 A CN 202110084233A CN 112883296 A CN112883296 A CN 112883296A
Authority
CN
China
Prior art keywords
page
information
displayed
compressed
packet
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.)
Pending
Application number
CN202110084233.4A
Other languages
Chinese (zh)
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202110084233.4A priority Critical patent/CN112883296A/en
Publication of CN112883296A publication Critical patent/CN112883296A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions

Abstract

The invention relates to the field of visualization, and discloses a loading method, a loading device, loading equipment and a storage medium of a visual page, which are used for improving the loading efficiency of an interface to be displayed. The loading method of the visual page comprises the following steps: the method comprises the steps that a page to be displayed and page information of the page to be displayed are obtained on a configuration platform, the page to be displayed is configured, and the configured configuration information of the page to be displayed is obtained; compressing the page information and the configuration information by using a Huffman code to obtain a compressed information packet; acquiring an access address in user access information through a client, inquiring a storage position of a corresponding compressed information packet according to the access address to obtain an inquiry result, and calling or downloading the compressed information packet based on the inquiry result to obtain cache information of the compressed information packet; and rendering the cache information of the compressed information packet to obtain a processed page to be displayed, and completing the loading of the page to be displayed. In addition, the invention also relates to a block chain technology, and the page information can be stored in the block chain.

Description

Visual page loading method, device and equipment and storage medium
Technical Field
The invention relates to the field of visualization, in particular to a method, a device, equipment and a storage medium for loading a visual page.
Background
With the rapid development of the internet, a user can use the internet to perform more and more operations, such as downloading technical software, inquiring technical data, watching popular science videos, and the like, and in the process of performing the operations, it is essential that a corresponding website or content to be inquired is input in a browser, and then the browser performs a jump to a webpage corresponding to the website or a webpage containing the inquired content.
In the process, the server needs to request for accessing specific data corresponding to the website, such as static resources like HTML, js, css, image, audio, video, and the like, so that the loading time is too long when the corresponding website is accessed, and the loading efficiency is low.
Disclosure of Invention
The invention provides a loading method, a loading device, loading equipment and a storage medium of a visual page, which are used for shortening the loading time of a user when the user accesses an interface to be displayed and improving the loading efficiency of the interface to be displayed.
The invention provides a visual page loading method in a first aspect, which comprises the following steps: acquiring a page to be displayed and page information of the page to be displayed on a configuration platform, configuring the page to be displayed, and acquiring configuration information of the configured page to be displayed, wherein the page information at least comprises static resources of the page to be displayed; compressing the page information and the configuration information by using Huffman coding to obtain a plurality of compressed information packets; acquiring an access address in user access information through a client, inquiring a storage position of a corresponding compressed information packet according to the access address to obtain an inquiry result, and calling or downloading the compressed information packet based on the inquiry result to obtain cache information of the compressed information packet; and rendering the cache information of the compressed information packet to obtain a processed page to be displayed, and finishing the loading of the page to be displayed.
Optionally, in a first implementation manner of the first aspect of the present invention, the obtaining, at a configuration platform, a page to be displayed and page information of the page to be displayed, configuring the page to be displayed, and obtaining configuration information of the configured page to be displayed, where the page information at least includes static resources of the page to be displayed, includes: acquiring a basic page information packet of a page to be displayed through a global wide area network in a configuration platform, and decompressing the basic page information packet to obtain page information corresponding to the page to be displayed; and configuring the page to be displayed by using preset parameters to obtain configuration information of the configured page to be displayed.
Optionally, in a second implementation manner of the first aspect of the present invention, the compressing the page information and the configuration information by using huffman coding to obtain a compressed information packet includes: merging the page information and the configuration information to obtain integrated page information, and acquiring a plurality of characters in the integrated page information by adopting a compression algorithm; and compressing the integrated page information based on the occurrence frequency of each character and the Huffman code to obtain a compressed information packet.
Optionally, in a third implementation manner of the first aspect of the present invention, the compressing, based on the number of occurrences of each character and huffman coding, the integrated page information to obtain a plurality of compressed information packets, where the plurality of compressed information packets include: counting the occurrence frequency of each character in the integrated page information to obtain the occurrence frequency of each character; encoding the occurrence frequency of each character by using Huffman encoding to obtain a plurality of character codes; and storing each character and the corresponding character code to obtain a compressed information packet.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the obtaining, by the client, an access address in the user access information, querying a storage location of a corresponding compressed information packet according to the access address to obtain a query result, and calling or downloading the compressed information packet based on the query result to obtain the cache information of the compressed information packet includes: acquiring an access address in user access information through a client, and inquiring the storage position of a corresponding compressed information packet by using the access address to obtain an inquiry result; if the query result is that the compressed information packet is stored in the client, calling cache information of the compressed information packet corresponding to the access address in the client; and if the query result is that the compressed information packet is not stored in the client, downloading the compressed information packet corresponding to the access address in a database of the client, decompressing the compressed information packet, and generating the cache information of the compressed information packet.
Optionally, in a fifth implementation manner of the first aspect of the present invention, if the query result indicates that the compressed information packet is not stored in the client, downloading the compressed information packet corresponding to the access address in a database of the client, and performing decompression processing on the compressed information packet, where generating the cache information of the compressed information packet includes: if the query result is that the compressed information packet is not stored in the client, downloading the compressed information packet corresponding to the access address in a database of the client; reading the compressed information packet, establishing a Huffman tree of the compressed information packet, determining characters in the Huffman tree by using preset character codes, storing the characters in the Huffman tree, and generating cache information of the compressed information packet.
Optionally, in a sixth implementation manner of the first aspect of the present invention, after the rendering processing is performed on the cache information of the compressed information packet to obtain a processed page to be displayed, and the loading of the page to be displayed is completed, the method for loading a visual page further includes: and displaying the processed page to be displayed by using a display system in the client.
The second aspect of the present invention provides a loading apparatus for a visual page, including: the system comprises a configuration module, a display module and a display module, wherein the configuration module is used for acquiring a page to be displayed and page information of the page to be displayed on a configuration platform, configuring the page to be displayed and acquiring configuration information of the configured page to be displayed, and the page information at least comprises static resources of the page to be displayed; the compression module is used for compressing the page information and the configuration information by using Huffman coding to obtain a plurality of compressed information packets; the acquisition module is used for acquiring an access address in user access information through a client, inquiring the storage position of a corresponding compressed information packet according to the access address to obtain an inquiry result, and calling or downloading the compressed information packet based on the inquiry result to obtain cache information of the compressed information packet; and the loading module is used for rendering the cache information of the compressed information packet to obtain a processed page to be displayed and finishing the loading of the page to be displayed.
Optionally, in a first implementation manner of the second aspect of the present invention, the configuration module is specifically configured to: acquiring a basic page information packet of a page to be displayed through a global wide area network in a configuration platform, and decompressing the basic page information packet to obtain page information corresponding to the page to be displayed; and configuring the page to be displayed by using preset parameters to obtain configuration information of the configured page to be displayed.
Optionally, in a second implementation manner of the second aspect of the present invention, the compression module includes: the merging unit is used for merging the page information and the configuration information to obtain integrated page information, and a compression algorithm is adopted to obtain a plurality of characters in the integrated page information; and the compression unit is used for compressing the integrated page information based on the occurrence frequency of each character and the Huffman code to obtain a compressed information packet.
Optionally, in a third implementation manner of the second aspect of the present invention, the compression unit is specifically configured to: counting the occurrence frequency of each character in the integrated page information to obtain the occurrence frequency of each character; encoding the occurrence frequency of each character by using Huffman encoding to obtain a plurality of character codes; and storing each character and the corresponding character code to obtain a compressed information packet.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the obtaining module includes: the query unit is used for acquiring an access address in the user access information through the client, and querying the storage position of the corresponding compressed information packet by using the access address to obtain a query result; the calling unit is used for calling the cache information of the compressed information packet corresponding to the access address in the client if the query result is that the compressed information packet is stored in the client; and the downloading unit is used for downloading the compressed information packet corresponding to the access address in a database of the client if the query result indicates that the compressed information packet is not stored in the client, decompressing the compressed information packet and generating the cache information of the compressed information packet.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the downloading unit is specifically configured to: if the query result is that the compressed information packet is not stored in the client, downloading the compressed information packet corresponding to the access address in a database of the client; reading the compressed information packet, establishing a Huffman tree of the compressed information packet, determining characters in the Huffman tree by using preset character codes, storing the characters in the Huffman tree, and generating cache information of the compressed information packet.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the loading device of the visual page further includes: and the display module is used for displaying the processed page to be displayed by utilizing a display system in the client.
The third aspect of the present invention provides a loading device for a visual page, including: a memory and at least one processor, the memory having instructions stored therein; the at least one processor calls the instructions in the memory to cause the loading device of the visual page to execute the loading method of the visual page.
A fourth aspect of the present invention provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to execute the above-mentioned method for loading a visualized page.
In the technical scheme provided by the invention, a page to be displayed and page information of the page to be displayed are obtained on a configuration platform, the page to be displayed is configured, and the configuration information of the configured page to be displayed is obtained, wherein the page information at least comprises static resources of the page to be displayed; compressing the page information and the configuration information by using Huffman coding to obtain a plurality of compressed information packets; acquiring an access address in user access information through a client, inquiring a storage position of a corresponding compressed information packet according to the access address to obtain an inquiry result, and calling or downloading the compressed information packet based on the inquiry result to obtain cache information of the compressed information packet; and rendering the cache information of the compressed information packet to obtain a processed page to be displayed, and finishing the loading of the page to be displayed. In the embodiment of the invention, the page to be displayed is configured on the configuration platform to obtain the configuration page information, then the configuration page information is compressed by using the Huffman code to generate the compressed information packet corresponding to the page to be displayed, finally the client is used for acquiring the user access address to call or download the compressed information packet, and the page to be displayed is loaded by rendering. The loading time of the user when accessing the interface to be displayed is shortened, and the loading efficiency of the interface to be displayed is improved.
Drawings
FIG. 1 is a schematic diagram of an embodiment of a loading method of a visualization page in an embodiment of the present invention;
FIG. 2 is a schematic diagram of another embodiment of a loading method of a visualization page in the embodiment of the present invention;
FIG. 3 is a schematic diagram of an embodiment of a loading apparatus for a visualized page in an embodiment of the present invention;
FIG. 4 is a schematic diagram of another embodiment of a loading apparatus for a visualization page in an embodiment of the present invention;
fig. 5 is a schematic diagram of an embodiment of a loading device for a visualized page in the embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a loading method, a loading device, loading equipment and a storage medium of a visual page, which are used for shortening the loading time of a user when the user accesses an interface to be displayed and improving the loading efficiency of the interface to be displayed.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of the embodiment of the present invention is described below, and referring to fig. 1, an embodiment of a method for loading a visual page in the embodiment of the present invention includes:
101. the method comprises the steps that a page to be displayed and page information of the page to be displayed are obtained on a configuration platform, the page to be displayed is configured, the configuration information of the configured page to be displayed is obtained, and the page information at least comprises static resources of the page to be displayed;
it is to be understood that the execution subject of the present invention may be a loading device of a visualization page, and may also be a terminal or a server, which is not limited herein. The embodiment of the present invention is described by taking a loading device of a visual page as an execution subject.
Before a page to be displayed is accessed, a loading device of a visual page firstly needs to acquire the page to be displayed and page information of a corresponding page to be displayed by using a configuration platform, wherein the page to be displayed is an interface which needs to be accessed by a user, for example, the user opens a free seed tree interface on certain application, it needs to be noted that fertilizer of the seed tree can be taken in different time periods in the interface, so the user needs to open the interface for many times, if the interface needs to be loaded each time, the loading action needs to be repeated for many times, the display efficiency of the corresponding interface is low, and the experience of the user is not good, therefore, the loading device of the visual page can directly store the information of the page to be displayed in a packaging mode into a corresponding client side, and the purpose of user access can be achieved by directly calling a corresponding compression package.
It should be emphasized that, in order to further ensure the privacy and security of the page information, the page information may also be stored in a node of a block chain.
102. Compressing the page information and the configuration information by using Huffman coding to obtain a plurality of compressed information packets;
after the loading device of the visual page configures the page information to be displayed by using the configuration platform, the page information and the configuration information need to be merged to obtain integrated page information, the integrated page information is compressed, and the integrated page information is packaged to obtain a compressed information package. It should be noted that the page information and configuration information before being packaged are stored in a corresponding server and can be directly accessed through a global wide area network, the page information and configuration information after being packaged are stored in a database of a client in the form of a compressed information packet, and a user can directly call the corresponding compressed information packet when accessing the corresponding page to be displayed.
It should be noted that there are many accessible pages to be displayed, and therefore there are many corresponding compressed information packages, and the number of pages to be displayed is the same as the number of compressed information packages.
103. Acquiring an access address in user access information through a client, inquiring a storage position of a corresponding compressed information packet according to the access address to obtain an inquiry result, and calling or downloading the compressed information packet based on the inquiry result to obtain cache information of the compressed information packet;
after the compressed information packet is obtained, the loading device of the visual page can determine the target address which needs to be accessed by the user through the client, and then download or call the compressed information packet corresponding to the access address. It can be understood that, because the storage locations of the compressed information packets are different, the loading device of the visual page needs to process the compressed information packets in different ways, and then obtains the cache information of the compressed information packets.
104. And rendering the cache information of the compressed information packet to obtain a processed page to be displayed, and completing the loading of the page to be displayed.
It should be noted that, after obtaining the cache information of the compressed packet, rendering the cache information of the compressed packet is a final process of Computer Graphics (CG), which can make an image displayed on a computer conform to a corresponding 3D scene, and there are many rendering tools such as: each computer graphics software is provided with a rendering engine, RenderMan and the like, and the rendering tool is not limited in the application. After the cache information of the compressed information packet is rendered, the processed page to be displayed can be returned to the client.
In the embodiment of the invention, the page to be displayed is configured on the configuration platform to obtain the configuration page information, then the configuration page information is compressed by using the Huffman code to generate the compressed information packet corresponding to the page to be displayed, finally the client is used for acquiring the user access address to call or download the compressed information packet, and the page to be displayed is loaded by rendering. The loading time of the user when accessing the interface to be displayed is shortened, and the loading efficiency of the interface to be displayed is improved.
Referring to fig. 2, another embodiment of a method for loading a visual page according to an embodiment of the present invention includes:
201. the method comprises the steps that a page to be displayed and page information of the page to be displayed are obtained on a configuration platform, the page to be displayed is configured, the configuration information of the configured page to be displayed is obtained, and the page information at least comprises static resources of the page to be displayed;
specifically, a loading device of a visual page acquires a basic page information packet of a page to be displayed through a global wide area network in a configuration platform, and decompresses the basic page information packet to obtain page information corresponding to the page to be displayed; the loading device of the visual page configures the page to be displayed by using the preset parameters to obtain the configured configuration information of the page to be displayed.
The configuration platform refers to an application platform capable of configuring a to-be-displayed interface, and after a to-be-displayed page and a basic page information packet of page information of the to-be-displayed page are acquired through a global wide area network, the configuration platform can configure the to-be-displayed interface.
It is further noted that, the basic page information packet at least includes static resources of the page to be displayed, which may be HTML data, js data, css data, image data, audio data, video data, and the like of the page to be displayed.
It should be emphasized that, in order to further ensure the privacy and security of the page information, the page information may also be stored in a node of a block chain.
202. Compressing the page information and the configuration information by using Huffman coding to obtain a plurality of compressed information packets;
specifically, the loading device of the visual page merges the page information and the configuration information to obtain integrated page information, and a compression algorithm is adopted to obtain a plurality of characters in the integrated page information; and the loading device of the visual page compresses the integrated page information based on the occurrence frequency of each character and the Huffman code to obtain a compressed information packet.
After the configuration platform is used for configuring the page information to be displayed, the page information and the configuration information need to be combined to obtain integrated page information, the integrated page information is compressed, and the integrated page information is packaged to obtain a compressed information package. It should be noted that the page information and configuration information before being packaged are stored in the server and can be directly accessed through the global wide area network, the page information and configuration information after being packaged are stored in the client database in the form of compressed information packets, and a user can directly call the corresponding compressed information packets when accessing the corresponding pages to be displayed.
The loading device of the visual page comprises the following specific steps in the process of compressing the integrated page information based on the occurrence frequency of each page character and the Huffman code: the loading device of the visual page firstly counts the occurrence frequency of each character in the integrated page information to obtain the occurrence frequency of each character; then, a loading device of the visual page encodes the occurrence frequency of each character by using Huffman codes to obtain a plurality of character codes; and finally, storing each character and the corresponding character code by a loading device of the visual page to obtain a compressed information packet.
When the integral page information is compressed, the integrated page information is compressed by adopting a Huffman coding mode, and the principle that the integrated page information is compressed by the Huffman coding mode is to count the occurrence frequency of each character in the integrated page information to obtain the occurrence frequency as follows: the number of occurrences of the character "%" is 16, and then a corresponding code is generated for each occurrence, such as: the occurrence frequency of the character "%" is 16, the corresponding code is "1000", and finally, each character and the corresponding character code are stored in a compressed file, such as: and saving the file as 1000%, wherein the saved file is the generated compressed information packet.
203. Acquiring an access address in user access information through a client, inquiring a storage position of a corresponding compressed information packet according to the access address to obtain an inquiry result, and calling or downloading the compressed information packet based on the inquiry result to obtain cache information of the compressed information packet;
specifically, the loading device of the visual page firstly acquires an access address in user access information through a client, and queries the storage position of a corresponding compressed information packet by using the access address to obtain a query result; if the query result is that the compressed information packet is stored in the client, the loading device of the visual page calls cache information of the compressed information packet corresponding to the access address in the client; and if the query result is that the compressed information packet is not stored in the client, the loading device of the visual page downloads the compressed information packet corresponding to the access address in the database of the client, and decompresses the compressed information packet to generate the cache information of the compressed information packet. Further, if the query result is that the compressed information packet is not stored in the client, the loading device of the visual page downloads the compressed information packet corresponding to the access address in the database of the client; and then a loading device of the visual page reads the compressed information packet, establishes a Huffman tree of the compressed information packet, determines characters in the Huffman tree by using preset character codes, stores the characters in the Huffman tree and generates cache information of the compressed information packet.
When a user accesses a page to be displayed through a client, an access address in user access information is acquired, wherein the access address is a unique address corresponding to a representation of the interface to be displayed, and two situations exist, namely the first situation: the user accesses the page to be displayed through the access address, the cache information after decompressing the compressed information packet exists in the client, and when the user accesses the page to be displayed again, the cache information can be directly called, so that the purpose of accessing the page to be displayed is achieved. And the second method comprises the following steps: the user accesses the interface to be displayed through the access address for the first time, and does not have the cache data corresponding to the interface to be displayed, so that the compressed information packet corresponding to the access address needs to be downloaded in the database of the client, the compressed information packet is decompressed, cache information of the compressed information packet is generated, and then the cache information is called, so that the interface to be displayed can be accessed. Therefore, the loading device of the visual page needs to query the storage location of the corresponding compressed information packet by using the access address, acquire the corresponding query result, and perform different operation steps according to different query results.
It should be noted that, the actual process of decompressing the compressed packet is to translate the code characters in the compressed packet, and store the translated code characters, so as to generate the cache information of the compressed packet.
204. Rendering the cache information of the compressed information packet to obtain a processed page to be displayed, and completing loading of the page to be displayed;
it should be noted that, after obtaining the cache information of the compressed packet, rendering the cache information of the compressed packet is a final process of Computer Graphics (CG), which can make an image displayed on a computer conform to a corresponding 3D scene, and there are many rendering tools such as: each computer graphics software is provided with a rendering engine, RenderMan and the like, and the rendering tool is not limited in the application. After the cache information of the compressed information packet is rendered, the processed page to be displayed can be returned to the client.
205. And displaying the processed page to be displayed by using a display system in the client.
After the rendered page to be displayed is obtained, the loading device of the visual page can return to the page to be displayed by using the client, and displays the page to be displayed by using a display system in the client so as to be observed by a user or be operated and processed in a display interface.
In the embodiment of the invention, the page to be displayed is configured on the configuration platform to obtain the configuration page information, then the configuration page information is compressed by using the Huffman code to generate the compressed information packet corresponding to the page to be displayed, finally the client is used for acquiring the user access address to call or download the compressed information packet, and the page to be displayed is loaded by rendering. The loading time of the user when accessing the interface to be displayed is shortened, and the loading efficiency of the interface to be displayed is improved.
With reference to fig. 3, the method for loading a visual page in the embodiment of the present invention is described above, and a device for loading a visual page in the embodiment of the present invention is described below, where an embodiment of the device for loading a visual page in the embodiment of the present invention includes:
the configuration module 301 is configured to obtain, at a configuration platform, a page to be displayed and page information of the page to be displayed, configure the page to be displayed, and obtain configuration information of the configured page to be displayed, where the page information at least includes static resources of the page to be displayed;
a compression module 302, configured to perform compression processing on the page information and the configuration information by using huffman coding to obtain a plurality of compressed information packets;
an obtaining module 303, configured to obtain an access address in user access information through a client, query a storage location of a corresponding compressed information packet according to the access address to obtain a query result, and call or download the compressed information packet based on the query result to obtain cache information of the compressed information packet;
and the loading module 304 is configured to perform rendering processing on the cache information of the compressed information packet to obtain a processed page to be displayed, and complete loading of the page to be displayed.
In the embodiment of the invention, the page to be displayed is configured on the configuration platform to obtain the configuration page information, then the configuration page information is compressed by using the Huffman code to generate the compressed information packet corresponding to the page to be displayed, finally the client is used for acquiring the user access address to call or download the compressed information packet, and the page to be displayed is loaded by rendering. The loading time of the user when accessing the interface to be displayed is shortened, and the loading efficiency of the interface to be displayed is improved.
Referring to fig. 4, another embodiment of a loading apparatus for a visual page according to an embodiment of the present invention includes:
the configuration module 301 is configured to obtain, at a configuration platform, a page to be displayed and page information of the page to be displayed, configure the page to be displayed, and obtain configuration information of the configured page to be displayed, where the page information at least includes static resources of the page to be displayed;
a compression module 302, configured to perform compression processing on the page information and the configuration information by using huffman coding to obtain a plurality of compressed information packets;
an obtaining module 303, configured to obtain an access address in user access information through a client, query a storage location of a corresponding compressed information packet according to the access address to obtain a query result, and call or download the compressed information packet based on the query result to obtain cache information of the compressed information packet;
and the loading module 304 is configured to perform rendering processing on the cache information of the compressed information packet to obtain a processed page to be displayed, and complete loading of the page to be displayed.
Optionally, the configuration module 301 is specifically configured to:
acquiring a basic page information packet of a page to be displayed through a global wide area network in a configuration platform, and decompressing the basic page information packet to obtain page information corresponding to the page to be displayed;
and configuring the page to be displayed by using preset parameters to obtain configuration information of the configured page to be displayed.
Optionally, the compressing module 302 includes:
a merging unit 3021, configured to merge the page information and the configuration information to obtain integrated page information, and obtain multiple characters in the integrated page information by using a compression algorithm;
and the compression unit 3022 is configured to perform compression processing on the integrated page information based on the number of times each character appears and huffman coding, so as to obtain a compressed information packet.
Optionally, the compression unit 3022 is specifically configured to:
counting the occurrence frequency of each character in the integrated page information to obtain the occurrence frequency of each character;
encoding the occurrence frequency of each character by using Huffman encoding to obtain a plurality of character codes;
and storing each character and the corresponding character code to obtain a compressed information packet.
Optionally, the obtaining module 303 includes:
the query unit 3031 is configured to obtain an access address in the user access information through the client, and query a storage location of the corresponding compressed information packet by using the access address to obtain a query result;
a calling unit 3032, configured to call, in the client, cache information of the compressed information packet corresponding to the access address if the query result is that the compressed information packet is stored in the client;
the downloading unit 3033, if the query result is that the compressed information packet is not stored in the client, is configured to download the compressed information packet corresponding to the access address in the database of the client, and decompress the compressed information packet to generate the cache information of the compressed information packet.
Optionally, the downloading unit 3033 is specifically configured to:
if the query result is that the compressed information packet is not stored in the client, downloading the compressed information packet corresponding to the access address in a database of the client;
reading the compressed information packet, establishing a Huffman tree of the compressed information packet, determining characters in the Huffman tree by using preset character codes, storing the characters in the Huffman tree, and generating cache information of the compressed information packet.
Optionally, the loading apparatus for the visual page further includes:
and a display module 305, configured to display the processed page to be displayed by using a display system in the client.
In the embodiment of the invention, the page to be displayed is configured on the configuration platform to obtain the configuration page information, then the configuration page information is compressed by using the Huffman code to generate the compressed information packet corresponding to the page to be displayed, finally the client is used for acquiring the user access address to call or download the compressed information packet, and the page to be displayed is loaded by rendering. The loading time of the user when accessing the interface to be displayed is shortened, and the loading efficiency of the interface to be displayed is improved.
Fig. 3 and fig. 4 describe the loading apparatus of the visualized page in the embodiment of the present invention in detail from the perspective of the modular functional entity, and the following describes the loading apparatus of the visualized page in the embodiment of the present invention in detail from the perspective of hardware processing.
Fig. 5 is a schematic structural diagram of a loader device for a visual page according to an embodiment of the present invention, where the loader device 500 for a visual page may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing applications 533 or data 532. Memory 520 and storage media 530 may be, among other things, transient or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations in the loading device 500 for visualized pages. Still further, the processor 510 may be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the loading device 500 for the visualized pages.
The loader 500 for the visualized pages may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input-output interfaces 560, and/or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will appreciate that the loading device structure of the visualization page shown in fig. 5 does not constitute a limitation of the loading device of the visualization page, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
The present invention further provides a loading device for a visualized page, where the computer device includes a memory and a processor, where the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to execute the steps of the loading method for a visualized page in the foregoing embodiments.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, and which may also be a volatile computer-readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the method for loading a visualized page.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A loading method of a visual page is characterized by comprising the following steps:
acquiring a page to be displayed and page information of the page to be displayed on a configuration platform, configuring the page to be displayed, and acquiring configuration information of the configured page to be displayed, wherein the page information at least comprises static resources of the page to be displayed;
compressing the page information and the configuration information by using Huffman coding to obtain a plurality of compressed information packets;
acquiring an access address in user access information through a client, inquiring a storage position of a corresponding compressed information packet according to the access address to obtain an inquiry result, and calling or downloading the compressed information packet based on the inquiry result to obtain cache information of the compressed information packet;
and rendering the cache information of the compressed information packet to obtain a processed page to be displayed, and finishing the loading of the page to be displayed.
2. The loading method of the visual page according to claim 1, wherein the obtaining, at a configuration platform, the page to be displayed and the page information of the page to be displayed, configuring the page to be displayed, and obtaining the configuration information of the configured page to be displayed, the page information at least including the static resource of the page to be displayed includes:
acquiring a basic page information packet of a page to be displayed through a global wide area network in a configuration platform, and decompressing the basic page information packet to obtain page information corresponding to the page to be displayed;
and configuring the page to be displayed by using preset parameters to obtain configuration information of the configured page to be displayed.
3. The method for loading a visual page according to claim 1, wherein the compressing the page information and the configuration information by using huffman coding to obtain a plurality of compressed packets, comprises:
merging the page information and the configuration information to obtain integrated page information, and acquiring a plurality of characters in the integrated page information by adopting a compression algorithm;
and compressing the integrated page information based on the occurrence frequency of each character and the Huffman code to obtain a compressed information packet.
4. The visual page loading method according to claim 3, wherein the compressing the integrated page information based on the number of occurrences of each character and the Huffman code to obtain a compressed information packet comprises:
counting the occurrence frequency of each character in the integrated page information to obtain the occurrence frequency of each character;
encoding the occurrence frequency of each character by using Huffman encoding to obtain a plurality of character codes;
and storing each character and the corresponding character code to obtain a compressed information packet.
5. The loading method of the visual page according to claim 1, wherein the obtaining, by the client, the access address in the user access information, querying the storage location of the corresponding compressed information package according to the access address to obtain a query result, and calling or downloading the compressed information package based on the query result to obtain the cache information of the compressed information package comprises:
acquiring an access address in user access information through a client, and inquiring the storage position of a corresponding compressed information packet by using the access address to obtain an inquiry result;
if the query result is that the compressed information packet is stored in the client, calling cache information of the compressed information packet corresponding to the access address in the client;
and if the query result is that the compressed information packet is not stored in the client, downloading the compressed information packet corresponding to the access address in a database of the client, decompressing the compressed information packet, and generating the cache information of the compressed information packet.
6. The method for loading a visual page according to claim 5, wherein if the query result indicates that the compressed packet is not stored in the client, downloading the compressed packet corresponding to the access address in the database of the client, and decompressing the compressed packet, and generating the cache information of the compressed packet includes:
if the query result is that the compressed information packet is not stored in the client, downloading the compressed information packet corresponding to the access address in a database of the client;
reading the compressed information packet, establishing a Huffman tree of the compressed information packet, determining characters in the Huffman tree by using preset character codes, storing the characters in the Huffman tree, and generating cache information of the compressed information packet.
7. The loading method of the visual page according to any one of claims 1 to 6, wherein after the cache information of the compressed information packet is rendered to obtain the processed page to be displayed, and the loading of the page to be displayed is completed, the loading method of the visual page further includes:
and displaying the processed page to be displayed by using a display system in the client.
8. A loading device of a visual page is characterized in that the loading device of the visual page comprises:
the system comprises a configuration module, a display module and a display module, wherein the configuration module is used for acquiring a page to be displayed and page information of the page to be displayed on a configuration platform, configuring the page to be displayed and acquiring configuration information of the configured page to be displayed, and the page information at least comprises static resources of the page to be displayed;
the compression module is used for compressing the page information and the configuration information by using Huffman coding to obtain a plurality of compressed information packets;
the acquisition module is used for acquiring an access address in user access information through a client, inquiring the storage position of a corresponding compressed information packet according to the access address to obtain an inquiry result, and calling or downloading the compressed information packet based on the inquiry result to obtain cache information of the compressed information packet;
and the loading module is used for rendering the cache information of the compressed information packet to obtain a processed page to be displayed and finishing the loading of the page to be displayed.
9. A loading device of a visual page is characterized by comprising: a memory and at least one processor, the memory having instructions stored therein;
the at least one processor calls the instructions in the memory to cause the loading device of the visual page to execute the loading method of the visual page according to any one of claims 1 to 7.
10. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement a method of loading a visualization page as recited in any of claims 1-7.
CN202110084233.4A 2021-01-21 2021-01-21 Visual page loading method, device and equipment and storage medium Pending CN112883296A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110084233.4A CN112883296A (en) 2021-01-21 2021-01-21 Visual page loading method, device and equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110084233.4A CN112883296A (en) 2021-01-21 2021-01-21 Visual page loading method, device and equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112883296A true CN112883296A (en) 2021-06-01

Family

ID=76051672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110084233.4A Pending CN112883296A (en) 2021-01-21 2021-01-21 Visual page loading method, device and equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112883296A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434582A (en) * 2021-06-24 2021-09-24 平安国际智慧城市科技股份有限公司 Service data processing method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067827A (en) * 2007-06-14 2007-11-07 上海创图网络科技发展有限公司 Three-dimensional web page realizing method based on browser
CN102867026A (en) * 2012-08-23 2013-01-09 上海创图网络科技发展有限公司 Display device for three-dimensional webpage and application of display device
CN111898135A (en) * 2020-02-12 2020-11-06 北京京东尚科信息技术有限公司 Data processing method, data processing apparatus, computer device, and medium
CN112070864A (en) * 2019-06-11 2020-12-11 腾讯科技(深圳)有限公司 Animation rendering method, animation rendering device, computer-readable storage medium and computer equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067827A (en) * 2007-06-14 2007-11-07 上海创图网络科技发展有限公司 Three-dimensional web page realizing method based on browser
CN102867026A (en) * 2012-08-23 2013-01-09 上海创图网络科技发展有限公司 Display device for three-dimensional webpage and application of display device
CN112070864A (en) * 2019-06-11 2020-12-11 腾讯科技(深圳)有限公司 Animation rendering method, animation rendering device, computer-readable storage medium and computer equipment
CN111898135A (en) * 2020-02-12 2020-11-06 北京京东尚科信息技术有限公司 Data processing method, data processing apparatus, computer device, and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434582A (en) * 2021-06-24 2021-09-24 平安国际智慧城市科技股份有限公司 Service data processing method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
JP2018085117A (en) Efficient data compression and analysis as service
CN109871289B (en) Remote Procedure Call (RPC) service generation method and device
Manhas A study of factors affecting websites page loading speed for efficient web performance
EP3203381A1 (en) Matrix processing apparatus
CN112165331A (en) Data compression method and device, data decompression method and device, storage medium and electronic equipment
US20120166412A1 (en) Super-clustering for efficient information extraction
CN112307403A (en) Page rendering method, device, storage medium and terminal
CN112883296A (en) Visual page loading method, device and equipment and storage medium
CN113873013B (en) Offline package reorganization method and system
CN112241298A (en) Page display method and device, storage medium and electronic device
CN111476858B (en) WebGL-based 2d engine rendering method, device and equipment
US9098863B2 (en) Compressed analytics data for multiple recurring time periods
CN112926002A (en) Service request processing method and device
CN111899149A (en) Image processing method and device based on operator fusion and storage medium
CN113050921A (en) Webpage conversion method, device, storage medium and computer equipment
CN111432013A (en) Configuration item issuing method, configuration item acquiring method, equipment and readable storage medium
CN107515916B (en) Performance optimization method and device for data query
CN114491369A (en) Page file acquisition method, page loading method and device
CN109889608B (en) Dynamic resource loading method and device, electronic equipment and storage medium
CN113377376A (en) Data packet generation method, data packet generation device, electronic device, and storage medium
CN113157274A (en) Software development method and device based on micro front end, electronic equipment and storage medium
CN110162373B (en) Method and device for displaying chart in webpage
CN112306475A (en) Configuration method, device and equipment of universal interface and storage medium
CN112416489A (en) Engineering drawing display method and related device
EP3921731A1 (en) Method and system for efficient multi agent computer simulation

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