CN113961851A - Webpage loading method and device, storage medium and electronic equipment - Google Patents

Webpage loading method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113961851A
CN113961851A CN202111406613.1A CN202111406613A CN113961851A CN 113961851 A CN113961851 A CN 113961851A CN 202111406613 A CN202111406613 A CN 202111406613A CN 113961851 A CN113961851 A CN 113961851A
Authority
CN
China
Prior art keywords
target
data packet
webpage
loading
local cache
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
CN202111406613.1A
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.)
Guangzhou Fanxing Huyu IT Co Ltd
Original Assignee
Guangzhou Fanxing Huyu IT 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 Guangzhou Fanxing Huyu IT Co Ltd filed Critical Guangzhou Fanxing Huyu IT Co Ltd
Priority to CN202111406613.1A priority Critical patent/CN113961851A/en
Publication of CN113961851A publication Critical patent/CN113961851A/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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a webpage loading method and device, a storage medium and electronic equipment. Wherein, the method comprises the following steps: under the condition that a loading instruction of a target webpage is triggered in a target terminal, a common data packet is searched in a local cache of the target terminal, wherein the common data packet is a basic data packet required by loading of a webpage of a target type to which the target webpage belongs; downloading a target data packet of a target webpage under the condition that a common data packet is found from a local cache of a target terminal, wherein the target data packet comprises webpage data of the target webpage; and loading the target data packet and the common data packet. The invention solves the technical problem of low webpage loading efficiency of the small program.

Description

Webpage loading method and device, storage medium and electronic equipment
Technical Field
The invention relates to the field of computers, in particular to a webpage loading method and device, a storage medium and electronic equipment.
Background
At present, applets in the App usually exist in a webpage form, and applets are usually loaded in an off-line package loading mode, but the off-line package contains resources required by the whole applets, so that the off-line package loading speed is influenced due to overlarge files, and the off-line package loading efficiency of the applets is influenced.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a webpage loading method and device, a storage medium and electronic equipment, and aims to at least solve the technical problem of low webpage loading efficiency of an applet.
According to an aspect of the embodiments of the present invention, there is provided a method for loading a web page, including: under the condition that a loading instruction of a target webpage is triggered in a target terminal, searching a common data packet in a local cache of the target terminal, wherein the common data packet is a basic data packet required by loading of a webpage of a target type to which the target webpage belongs; downloading a target data packet of the target webpage under the condition that the common data packet is searched from a local cache of the target terminal, wherein the target data packet comprises webpage data of the target webpage; and loading the target data packet and the common data packet.
According to another aspect of the embodiments of the present invention, there is also provided a web page loading apparatus, including: the system comprises a searching unit, a processing unit and a processing unit, wherein the searching unit is used for searching a shared data packet in a local cache of a target terminal under the condition that a loading instruction of a target webpage is triggered in the target terminal, wherein the shared data packet is a basic data packet required by loading of a webpage of a target type to which the target webpage belongs; a downloading unit, configured to download a target data packet of the target webpage when the common data packet is found in a local cache of the target terminal, where the target data packet includes webpage data of the target webpage; and the loading unit is used for loading the target data packet and the shared data packet.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned web page loading method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the above-mentioned web page loading method through the computer program.
In the embodiment of the invention, when a target webpage is loaded in a target terminal, a common data packet corresponding to a target type of the target webpage is searched in a local cache of the target terminal, under the condition that the common data packet is searched in the local cache of the target terminal, the target data packet is downloaded from a target server, and the common data packet in the local cache and the downloaded target data packet are loaded, the common data packet which can be reused based on the webpage type is searched in the local cache, under the condition that the common data packet is searched in the local cache, only the target data packet is downloaded, so that the data amount required by loading the target webpage is reduced through multiplexing of the common data packet cached in the local, the data downloading efficiency of the target webpage is improved, the aim of improving the webpage loading efficiency is achieved, and the technical effect of improving the webpage loading efficiency is realized, and further the technical problem of low webpage loading efficiency of the small program is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a diagram illustrating an application environment of an alternative web page loading method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an alternative method for loading a web page according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an alternative method for loading a web page according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating an alternative method for loading a web page according to an embodiment of the invention;
FIG. 5 is a schematic structural diagram of an alternative web page loading apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an alternative electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, 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.
According to an aspect of the embodiment of the present invention, a method for loading a web page is provided, and optionally, the method for loading a web page may be applied to, but not limited to, the environment shown in fig. 1. The terminal device 102 performs data interaction with the server 112 through the network 110. When the terminal device 102 loads the target web page, the acquisition request of the target web page data is not limited to be sent to the server 112 through the network 110, and when the server 112 receives the acquisition request, the processing engine 116 performs parsing processing of the acquisition request, searches the database 114 for a data packet corresponding to the acquisition request, and feeds back the data packet to the terminal device 102 through the network 110.
Loading the target web page in the terminal apparatus 102 is not limited to being implemented by sequentially performing S102 to S106. The common data packet is looked up. Under the condition that a loading instruction of a target webpage is triggered in the terminal equipment, a common data packet is searched in a local cache of the terminal equipment, and the common data packet loads a required basic data packet for a webpage of a target type to which the target webpage belongs. And downloading the target data packet. And downloading a target data packet of the target webpage under the condition that the common data packet is found from the local cache of the terminal equipment, wherein the target data packet comprises webpage data of the target webpage. And loading the target data packet and the common data packet.
Optionally, in this embodiment, the terminal device 102 may be a terminal device configured with a target client, and may include but is not limited to at least one of the following: mobile phones (such as Android phones, IOS phones, etc.), notebook computers, tablet computers, palm computers, MID (Mobile Internet Devices), PAD, desktop computers, smart televisions, etc. The target client is not limited to a client with a web page loading function, and may be a video client, an instant messaging client, a browser client, an education client, and the like. The network 110 may include, but is not limited to: a wired network, a wireless network, wherein the wired network comprises: a local area network, a metropolitan area network, and a wide area network, the wireless network comprising: bluetooth, WIFI, and other networks that enable wireless communication. The server 112 may be a single server, a server cluster composed of a plurality of servers, or a cloud server. The above is merely an example, and this is not limited in this embodiment.
As an optional implementation manner, as shown in fig. 2, the web page loading method includes:
s202, under the condition that a loading instruction of a target webpage is triggered in a target terminal, a common data packet is searched in a local cache of the target terminal, wherein the common data packet is a basic data packet required by loading of a webpage of a target type to which the target webpage belongs;
s204, downloading a target data packet of a target webpage under the condition that the shared data packet is found from a local cache of the target terminal, wherein the target data packet comprises webpage data of the target webpage;
s206, loading the target data packet and the shared data packet.
Alternatively, the target web page is not limited to a web page loaded in a target application of the target terminal, but may be a web page loaded in a web application. And a common data packet and a target data packet required by loading the target webpage are stored in a local cache of the target terminal. The shared data packet is a basic data packet required by loading a webpage of a target webpage type to which a target webpage belongs, and the target data packet is a data packet containing specific webpage data of the target webpage.
Alternatively, the base packet and the destination packet are not limited to being stored in the local cache of the destination terminal. In the local cache, the common data packet corresponding to each webpage type is not limited to only one stored data packet, and the common data packet is loaded when the webpage corresponding to the webpage type is loaded.
The web page type is not limited to the web page development type, and for example, corresponding common data packages are respectively constructed according to the system type based on the web page development, and the common data packages contain basic data of the development system.
As an optional implementation manner, after the common data packet is searched in the local cache of the target terminal, the method further includes:
s1, acquiring the shared data packet under the condition that the shared data packet is not found in the local cache of the target terminal;
and S2, storing the common data packet in the local cache of the target terminal.
And when the basic data packet corresponding to the target webpage is not found in the local cache, the shared data packet is not limited to be obtained from the target server corresponding to the target webpage and stored in the local cache of the target terminal.
The common data package is acquired from the target server, and the target data package is not limited to be downloaded. And only downloading the target data packet from the target server under the condition that the basic data packet corresponding to the target webpage is found from the local cache.
And searching the target data packet in the local cache while searching the shared data packet of the target webpage in the local cache, and directly loading the target data packet and the shared data packet in the local cache under the condition of searching the target data packet from the local cache.
It should be noted that only the target data packet of the target webpage loaded at the historical time is stored in the local cache, and the shared data packet only exists in the local cache if the target type webpage is recorded at the historical time. And under the condition that the target data packet is stored in the local cache, the shared data packet is stored in the local cache.
In the embodiment of the application, when a target webpage is loaded in a target terminal, a common data packet corresponding to a target type of the target webpage is searched in a local cache of the target terminal, and under the condition that the common data packet is searched in the local cache of the target terminal, the target data packet is downloaded from a target server and the common data packet in the local cache and the downloaded target data packet are loaded, the common data packet which can be reused based on the webpage type is searched in the local cache, and under the condition that the common data packet is searched in the local cache, only the target data packet is downloaded, so that the data amount required by loading the target webpage is reduced through multiplexing of the common data packet cached in the local, the data downloading efficiency of the target webpage is improved, the purpose of improving the webpage loading efficiency is achieved, and the technical effect of improving the webpage loading efficiency is realized, and further the technical problem of low webpage loading efficiency of the small program is solved.
As an optional implementation, the loading the target data packet and the common data packet includes: and inserting the common data packet in the process of loading the target data packet so as to complete the loading of the target webpage.
Optionally, in a case that data required for loading the target webpage is divided into a common data packet and a target data packet, when the target data packet and the common data packet are loaded, the common data packet is inserted in a process of loading the target data packet to achieve complete loading of the data required by the target webpage, so as to complete loading of the target webpage.
As an optional implementation manner, before searching for the common data packet in the local cache of the target terminal, the method further includes: and determining a common data packet corresponding to the target webpage according to the development frame of the target webpage, wherein the common data packet at least comprises a development language file of the development frame.
In the case where the common data package is determined based on the development framework of the web page, the common data package includes at least a development language file of the development framework of the web page, such as a js file. Other frame data of the development frame, such as a frame picture, etc., can also be included in the common data packet. The web page data of the target web page included in the target data packet includes at least code data of the web page service.
As an optional implementation manner, the inserting the common data packet in the process of loading the target data packet includes: when loading the hypertext markup language in the target data packet, inserting the reference address of the common data packet.
In the case that the basic data packet comprises a js file, when loading hypertext markup language (html) in the target data packet, inserting a reference address of the common data packet to realize loading of the data packet module.
After the target webpage is loaded, a first webpage with the same webpage type as the target webpage is loaded in the target terminal, namely when the target webpage belongs to the target webpage, the shared data packet is searched in the local cache, so that the downloading time required by downloading the shared data packet is saved, only the first data packet corresponding to the first webpage needs to be downloaded, the loading of the shared data packet is completed when the first data packet is loaded, the loading efficiency of the first webpage is improved by reducing the downloading data quantity, and therefore the webpage loading efficiency is improved.
As an alternative implementation, as shown in fig. 3, the downloading of the target data packet of the target webpage includes:
s302, searching a target data packet in a target server corresponding to a target webpage;
s304, downloading the target data packet to a local cache of the target terminal.
And under the condition that the target data packet corresponding to the target webpage is not stored in the local cache of the target terminal, acquiring the target data packet from the target server corresponding to the target webpage, and downloading the target data packet to the local cache of the target terminal.
And when the target server corresponding to the target webpage generates the data packet corresponding to the target webpage, determining the shared data packet corresponding to the target webpage based on the development frame, so as to generate the target data packet corresponding to the target webpage. The target server may further store the common data packet, so that the common data packet is obtained through the target server when the common data packet is not found in the local storage of the target terminal.
Taking a web page as an applet web page loaded in an application of a target terminal as an example, assuming that the web page a and the web page B are applet web pages developed based on the same development frame, sequentially loading the web page a and the web page B is not limited to the one shown in fig. 4.
S402, receiving a webpage A loading instruction. The loading instruction is used for indicating that the webpage A is loaded in the application of the target terminal;
and S404, searching common data packet common. At this time, common.
S406, common. The target terminal downloads common.
S408, common. Determining that the webpage A is completely loaded under the condition that common.
S410, receiving a webpage B loading instruction. The loading instruction is used for indicating that the webpage B is loaded in the application of the target terminal;
and S412, finding the common data packet common. At this time, common.
And S414, downloading the B.zip. The target terminal downloads B.zip from a server B corresponding to the webpage B;
s416, common. In the case of common.
As an optional implementation manner, after the loading the target packet and the common packet, the method further includes: and displaying the operation interface of the target webpage in the display interface of the target terminal.
And under the condition that the common data packet corresponding to the target webpage and the target data packet are loaded, determining that the target webpage is loaded, displaying an application display interface in a terminal interface of the target terminal, and displaying an operation page of the target webpage by using the display interface so as to realize that the loaded webpage operates in the target terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiment of the present invention, a web page loading apparatus for implementing the web page loading method is also provided. As shown in fig. 5, the apparatus includes:
a searching unit 502, configured to search a common data packet in a local cache of a target terminal when a loading instruction of a target webpage is triggered in the target terminal, where the common data packet is a basic data packet required for loading a webpage of a target type to which the target webpage belongs;
a downloading unit 504, configured to download a target data packet of a target webpage when a common data packet is found in a local cache of a target terminal, where the target data packet includes webpage data of the target webpage;
and a loading unit 506, configured to load the target data packet and the common data packet.
Optionally, the above webpage loading apparatus further includes an obtaining unit, configured to search for a common data packet in a local cache of the target terminal, where the obtaining unit includes:
the acquisition module is used for acquiring the shared data packet under the condition that the shared data packet is not found in the local cache of the target terminal;
and the storage module is used for storing the common data packet in a local cache of the target terminal.
Optionally, the loading unit 506 includes a loading module, configured to insert a common data packet in the process of loading the target data packet, so as to complete loading of the target web page.
Optionally, the loading module is further configured to insert a reference address of the common data packet when loading the hypertext markup language in the target data packet.
Optionally, the web page loading apparatus further includes a determining unit, configured to determine, before searching for the common data packet in the local cache of the target terminal, the common data packet corresponding to the target web page according to the development frame of the target web page, where the common data packet at least includes a development language file of the development frame.
Optionally, the downloading unit 504 includes:
the searching module is used for searching a target data packet in a target server corresponding to the target webpage;
and the downloading unit is used for downloading the target data packet to the local cache of the target terminal.
Optionally, the web page loading apparatus further includes an operation unit, configured to display an operation interface of the target web page in a display interface of the target terminal after the target data packet and the common data packet are loaded.
In the embodiment of the application, when a target webpage is loaded in a target terminal, a common data packet corresponding to a target type of the target webpage is searched in a local cache of the target terminal, and under the condition that the common data packet is searched in the local cache of the target terminal, the target data packet is downloaded from a target server and the common data packet in the local cache and the downloaded target data packet are loaded, the common data packet which can be reused based on the webpage type is searched in the local cache, and under the condition that the common data packet is searched in the local cache, only the target data packet is downloaded, so that the data amount required by loading the target webpage is reduced through multiplexing of the common data packet cached in the local, the data downloading efficiency of the target webpage is improved, the purpose of improving the webpage loading efficiency is achieved, and the technical effect of improving the webpage loading efficiency is realized, and further the technical problem of low webpage loading efficiency of the small program is solved.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device for implementing the above webpage loading method, where the electronic device may be the terminal device or the server shown in fig. 1. The present embodiment takes the electronic device as a terminal device as an example for explanation. As shown in fig. 6, the electronic device comprises a memory 602 and a processor 604, wherein the memory 602 stores a computer program, and the processor 604 is configured to execute the steps of any of the above method embodiments by the computer program.
Optionally, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, under the condition that a loading instruction of a target webpage is triggered in a target terminal, a common data packet is searched in a local cache of the target terminal, wherein the common data packet is a basic data packet required by loading of a webpage of a target type to which the target webpage belongs;
s2, downloading a target data packet of the target webpage under the condition that the shared data packet is found from the local cache of the target terminal, wherein the target data packet comprises webpage data of the target webpage;
s3, the destination packet and the common packet are loaded.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 6 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an IOS phone, etc.), a tablet computer, a palmtop computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 6 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 6, or have a different configuration than shown in FIG. 6.
The memory 602 may be used to store software programs and modules, such as program instructions/modules corresponding to the web page loading method and apparatus in the embodiments of the present invention, and the processor 604 executes various functional applications and data processing by running the software programs and modules stored in the memory 602, that is, implementing the above-described web page loading method. The memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 602 may further include memory located remotely from the processor 604, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 602 may be specifically, but not limited to, used for storing information such as a load instruction, a common data packet, a target data packet, and the like. As an example, as shown in fig. 6, the memory 602 may include, but is not limited to, a lookup unit 502, a download unit 504, and a loading unit 506 in the web page loading apparatus. In addition, the device may further include, but is not limited to, other module units in the above-mentioned web page loading device, which is not described in detail in this example.
Optionally, the transmitting device 606 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 606 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmitting device 606 is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In addition, the electronic device further includes: a display 608 for displaying the operation interface of the target web page; and a connection bus 610 for connecting the respective module parts in the above-described electronic apparatus.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication. Nodes can form a Peer-To-Peer (P2P, Peer To Peer) network, and any type of computing device, such as a server, a terminal, and other electronic devices, can become a node in the blockchain system by joining the Peer-To-Peer network.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternative implementations of the web page loading aspect described above. Wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, under the condition that a loading instruction of a target webpage is triggered in a target terminal, a common data packet is searched in a local cache of the target terminal, wherein the common data packet is a basic data packet required by loading of a webpage of a target type to which the target webpage belongs;
s2, downloading a target data packet of the target webpage under the condition that the shared data packet is found from the local cache of the target terminal, wherein the target data packet comprises webpage data of the target webpage;
s3, the destination packet and the common packet are loaded.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above 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 several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A webpage loading method is characterized by comprising the following steps:
under the condition that a loading instruction of a target webpage is triggered in a target terminal, a common data packet is searched in a local cache of the target terminal, wherein the common data packet is a basic data packet required by loading of a webpage of a target type to which the target webpage belongs;
downloading a target data packet of the target webpage under the condition that the common data packet is found from a local cache of the target terminal, wherein the target data packet comprises webpage data of the target webpage;
and loading the target data packet and the common data packet.
2. The method of claim 1, wherein after searching for the common data packet in the local cache of the target terminal, further comprising:
acquiring the shared data packet under the condition that the shared data packet is not found in the local cache of the target terminal;
and storing the common data packet in a local cache of the target terminal.
3. The method of claim 1, wherein the loading the target packet and the common packet comprises:
and inserting the common data packet in the process of loading the target data packet to finish the loading of the target webpage.
4. The method of claim 3, wherein inserting the common packet during loading of the target packet comprises:
and when the hypertext markup language in the target data packet is loaded, inserting the reference address of the common data packet.
5. The method of claim 1, wherein before searching for the common data packet in the local cache of the target terminal, the method further comprises:
and determining the common data packet corresponding to the target webpage according to the development frame of the target webpage, wherein the common data packet at least comprises a development language file of the development frame.
6. The method of claim 5, wherein downloading the target data package of the target webpage comprises:
searching the target data packet in a target server corresponding to the target webpage;
and downloading the target data packet to a local cache of the target terminal.
7. The method according to any one of claims 1 to 6, further comprising, after loading the target packet and the common packet:
and displaying the operation interface of the target webpage in the display interface of the target terminal.
8. A web page loading apparatus, comprising:
the system comprises a searching unit, a processing unit and a processing unit, wherein the searching unit is used for searching a shared data packet in a local cache of a target terminal under the condition that a loading instruction of a target webpage is triggered in the target terminal, wherein the shared data packet is a basic data packet required by loading of a webpage of a target type to which the target webpage belongs;
a downloading unit, configured to download a target data packet of the target webpage when the common data packet is found in a local cache of the target terminal, where the target data packet includes webpage data of the target webpage;
and the loading unit is used for loading the target data packet and the common data packet.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202111406613.1A 2021-11-24 2021-11-24 Webpage loading method and device, storage medium and electronic equipment Pending CN113961851A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111406613.1A CN113961851A (en) 2021-11-24 2021-11-24 Webpage loading method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111406613.1A CN113961851A (en) 2021-11-24 2021-11-24 Webpage loading method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN113961851A true CN113961851A (en) 2022-01-21

Family

ID=79471818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111406613.1A Pending CN113961851A (en) 2021-11-24 2021-11-24 Webpage loading method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113961851A (en)

Similar Documents

Publication Publication Date Title
CN111581563B (en) Page response method and device, storage medium and electronic equipment
CN101201827B (en) Method and system for displaying web page
EP2985705A2 (en) Webpage access method and apparatus, and router
CN102081633A (en) JavaScript file management method, device and system
CN112100541B (en) Method and device for loading website page element, electronic device and storage medium
CN111249744A (en) Resource loading method and device, storage medium and electronic device
CN102567339A (en) Method, device and system for acquiring start page
CN111444455A (en) Browser compatible method, system, computer device and storage medium
CN103258056B (en) Process the method for style design table, server, client and system
CN113064685A (en) H5 page loading method and device
CN112612982A (en) Webpage preloading method and device and computer equipment
CN111224829B (en) Method and device for accessing external node to block chain network, and block chain network
CN111367685B (en) Interface calling method and device, computer equipment and storage medium
CN101626339A (en) Method and system for downloading network data
O'Sullivan et al. The cloud personal assistant for providing services to mobile clients
CN114327710B (en) Function management method, management device, terminal equipment and readable storage medium
CN112241298A (en) Page display method and device, storage medium and electronic device
CN103401931B (en) A kind of method and system for downloading file
CN104699509A (en) Method and device for downloading application software
CN112926002A (en) Service request processing method and device
CN103440281A (en) Method, device and equipment for acquiring download file
CN103561068B (en) A kind of method and device improving web page browsing speed
CN113961851A (en) Webpage loading method and device, storage medium and electronic equipment
CN103793459B (en) Webpage opening method and device
CN112988176A (en) Channel package generation method and device, storage medium and electronic equipment

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