CN111314426A - Webpage resource obtaining method and device, electronic equipment and storage medium - Google Patents

Webpage resource obtaining method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111314426A
CN111314426A CN202010056987.4A CN202010056987A CN111314426A CN 111314426 A CN111314426 A CN 111314426A CN 202010056987 A CN202010056987 A CN 202010056987A CN 111314426 A CN111314426 A CN 111314426A
Authority
CN
China
Prior art keywords
resource
sub
terminal
offline
address
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
CN202010056987.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.)
Reach Best Technology Co Ltd
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Reach Best Technology 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 Reach Best Technology Co Ltd filed Critical Reach Best Technology Co Ltd
Priority to CN202010056987.4A priority Critical patent/CN111314426A/en
Publication of CN111314426A publication Critical patent/CN111314426A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The disclosure shows a method, a device, an electronic device and a storage medium for acquiring webpage resources, firstly acquiring a webpage address; determining a target offline packet according to the webpage address, wherein the target offline packet comprises a plurality of sub-resources and network addresses of the sub-resources; searching a network address of the sub-resource in the terminal, wherein the network address of the sub-resource and a storage path of the sub-resource in the terminal are stored in a resource dictionary of the terminal in advance correspondingly; when the network address of the sub-resource is found in the resource dictionary, the storage path of the sub-resource in the terminal is obtained; and acquiring the child resources according to the storage path. The network address of the sub-resource and the storage path of the sub-resource are pre-stored in the resource dictionary of the terminal, and the sub-resource is directly obtained according to the storage path of the sub-resource in the terminal, so that the webpage loading speed can be increased, the offline access of the webpage is supported under the condition of no network, the repeated downloading of the sub-resource is avoided, and the user flow is saved.

Description

Webpage resource obtaining method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for acquiring a web resource, an electronic device, and a storage medium.
Background
When the related functions of the web pages in the application software are used, a great problem exists that when a user repeatedly opens the same web page, the application software loads the web page for many times, which causes the waste of user traffic, the slow speed of loading the web page and the like. In the prior art, a WebView default cache mode is adopted to intercept resources of local data of a webpage, webpage loading is realized through local data rendering, and the effects of improving webpage loading speed and saving user traffic are achieved. However, the existing WebView default caching mode only has the problem that offline data packets appear in the cache after the webpage is loaded for the first time, and the problem of low first-time loading speed still exists.
Disclosure of Invention
The disclosure provides a webpage resource obtaining method, a webpage resource obtaining device, electronic equipment and a storage medium, and aims to at least solve the problems of traffic waste and low webpage loading speed in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the present disclosure, a method for acquiring a web page resource is provided, which is applied to a terminal, and the method includes:
acquiring a webpage address;
determining a target offline packet according to the webpage address, wherein the target offline packet comprises a plurality of sub-resources and network addresses of the sub-resources;
searching the network address of the sub-resource in the terminal, wherein the network address of the sub-resource and the storage path of the sub-resource in the terminal are stored in a resource dictionary of the terminal in advance correspondingly;
when the network address of the sub-resource is found in the resource dictionary, acquiring a storage path of the sub-resource in the terminal;
and acquiring the sub-resources according to the storage path.
In an optional implementation manner, the step of determining a target offline packet according to the web page address includes:
when the webpage address comprises a parameter of a specified offline package, determining the target offline package as the specified offline package;
and when the webpage address does not comprise a parameter for specifying an offline package, determining the target offline package as a global configuration offline package.
In an optional implementation manner, before the step of searching for the network address of the sub-resource in the terminal, the method further includes:
searching the sub-resources in the memory cache of the terminal according to the network addresses of the sub-resources;
when the sub-resources are found in the memory cache of the terminal, the sub-resources are obtained;
the step of searching the network address of the sub-resource in the terminal includes:
and when the sub-resource is not found in the memory cache of the terminal, searching the network address of the sub-resource in the resource dictionary of the terminal.
In an optional implementation, the method further includes:
and when the network address of the sub-resource is not found in the resource dictionary of the terminal, downloading the sub-resource from the network address of the sub-resource through the network.
In an optional implementation manner, before the step of searching for the network address of the sub-resource in the terminal, the method further includes:
establishing a resource dictionary; the step of establishing a resource dictionary comprises:
when an application program of the terminal is started, acquiring latest offline package configuration information, wherein the latest offline package configuration information comprises a downloading list, an updating mechanism, a specified downloading network type and a downloading address of an offline package;
when the current network type of the terminal is consistent with the specified downloading network type, acquiring the offline package from the downloading address according to the updating mechanism;
decompressing the ion coil to obtain the sub-resource and the network address of the sub-resource;
taking the network address of the sub-resource as a key value, taking the storage path of the sub-resource in the terminal as a value, and correspondingly storing the value into the resource dictionary;
the step of searching the network address of the sub-resource in the terminal comprises the following steps:
and searching the network address of the sub-resource in the key value of the resource dictionary.
In an optional implementation manner, the step of obtaining the latest offline package configuration information when the application program of the terminal is started includes:
when an application program of the terminal is started, reading current off-line package configuration information, and sending an off-line package configuration information acquisition request to a server;
receiving the latest offline package configuration information sent by the server;
and when the latest offline package configuration information is different from the current offline package configuration information, covering the current offline package configuration information with the latest offline package configuration information.
In an optional implementation manner, when the current network type of the terminal is consistent with the specified download network type, before the step of obtaining the offline package from the download address according to the update mechanism, the method further includes:
when the network type of the terminal is changed, acquiring the current network type of the terminal;
screening an offline package to be downloaded from the download list, wherein the offline package to be downloaded is an offline package which appears in the download list but does not detect sub-resource information included by the offline package to be downloaded in the resource dictionary;
the step of obtaining the offline package from the download address according to the update mechanism when the current network type of the terminal is consistent with the specified download network type includes:
and when the current network type of the terminal is consistent with the specified downloading network type of the offline package to be downloaded, acquiring the offline package to be downloaded from the downloading address of the offline package to be downloaded according to the updating mechanism of the offline package to be downloaded.
According to a second aspect of the present disclosure, there is provided a web page resource obtaining apparatus, applied to a terminal, the apparatus including:
a web address module configured to obtain a web address;
the offline packet determining module is configured to determine a target offline packet according to the webpage address, wherein the target offline packet comprises a plurality of sub-resources and network addresses of the sub-resources;
the network address searching module is configured to search the network address of the sub-resource in the terminal, wherein the network address of the sub-resource and the storage path of the sub-resource in the terminal are stored in a resource dictionary of the terminal in advance in a corresponding manner;
a storage path obtaining module configured to obtain a storage path of the sub-resource in the terminal when the network address of the sub-resource is found in the resource dictionary;
and the sub-resource acquisition module is configured to acquire the sub-resources according to the storage path.
In an optional implementation manner, the offline packet determining module is specifically configured to:
when the webpage address comprises a parameter of a specified offline package, determining the target offline package as the specified offline package;
and when the webpage address does not comprise a parameter for specifying an offline package, determining the target offline package as a global configuration offline package.
In an optional implementation, the apparatus further includes:
the sub-resource searching module is configured to search the sub-resources in the memory cache of the terminal according to the network addresses of the sub-resources; when the sub-resources are found in the memory cache of the terminal, the sub-resources are obtained;
the network address lookup module is specifically configured to:
and when the sub-resource is not found in the memory cache of the terminal, searching the network address of the sub-resource in the resource dictionary of the terminal.
In an optional implementation, the apparatus further includes:
a sub-resource downloading module configured to download the sub-resource from the network address of the sub-resource through the network when the network address of the sub-resource is not found in the resource dictionary of the terminal.
In an optional implementation, the apparatus further includes:
a resource dictionary establishing module configured to establish a resource dictionary; the resource dictionary establishing module comprises:
the configuration information acquisition unit is configured to acquire latest offline package configuration information when an application program of the terminal is started, wherein the latest offline package configuration information comprises a download list of offline packages, an update mechanism, a specified download network type and a download address;
an offline packet obtaining unit configured to obtain the offline packet from the download address according to the update mechanism when the current network type of the terminal is consistent with the specified download network type;
the decompression unit is configured to decompress the offline packet to obtain the sub-resources and the network addresses of the sub-resources;
the storage unit is configured to correspondingly store the network address of the sub-resource into the resource dictionary by taking the network address of the sub-resource as a key value and taking the storage path of the sub-resource in the terminal as a value;
the network address lookup module is specifically configured to:
and searching the network address of the sub-resource in the key value of the resource dictionary.
In an optional implementation manner, the configuration information obtaining unit is specifically configured to:
when an application program of the terminal is started, reading current off-line package configuration information, and sending an off-line package configuration information acquisition request to a server;
receiving the latest offline package configuration information sent by the server;
and when the latest offline package configuration information is different from the current offline package configuration information, covering the current offline package configuration information with the latest offline package configuration information.
In an optional implementation manner, the resource dictionary establishing module further includes:
a network type obtaining unit configured to obtain a current network type of the terminal when the network type of the terminal is changed;
a screening unit configured to screen an offline package to be downloaded from the download list, where the offline package to be downloaded is an offline package that appears in the download list but does not detect sub-resource information included in the offline package to be downloaded in the resource dictionary;
the offline packet acquisition unit is specifically configured to:
and when the current network type of the terminal is consistent with the specified downloading network type of the offline package to be downloaded, acquiring the offline package to be downloaded from the downloading address of the offline package to be downloaded according to the updating mechanism of the offline package to be downloaded.
According to a third aspect of the present disclosure, there is provided an electronic apparatus comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the webpage resource obtaining method according to the first aspect.
According to a fourth aspect of the present disclosure, there is provided a storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the web page resource acquisition method according to the first aspect.
According to a fifth aspect of the present disclosure, there is provided a computer program product, wherein instructions of the computer program product, when executed by a processor of an electronic device, enable the electronic device to perform the web resource acquisition method according to the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the technical scheme of the disclosure provides a method and a device for acquiring webpage resources, electronic equipment and a storage medium, and firstly, a webpage address is acquired; determining a target offline packet according to the webpage address, wherein the target offline packet comprises a plurality of sub-resources and network addresses of the sub-resources; searching a network address of the sub-resource in the terminal, wherein the network address of the sub-resource and a storage path of the sub-resource in the terminal are stored in a resource dictionary of the terminal in advance correspondingly; when the network address of the sub-resource is found in the resource dictionary, the storage path of the sub-resource in the terminal is obtained; and acquiring the child resources according to the storage path. The network address of the sub-resource and the storage path of the sub-resource are pre-stored in the resource dictionary of the terminal, and the sub-resource is directly obtained according to the storage path of the sub-resource in the terminal, so that the webpage loading speed can be increased, the offline access of the webpage is supported under the condition of no network, the repeated downloading of the sub-resource is avoided, and the user flow is saved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flowchart illustrating a method for acquiring web page resources according to an example embodiment.
FIG. 2 is a flow diagram illustrating the establishment of a resource dictionary in accordance with an exemplary embodiment.
Fig. 3 is a flowchart illustrating a specific implementation manner of a method for acquiring web page resources according to an exemplary embodiment.
FIG. 4 is a flowchart illustrating one particular implementation of establishing a resource dictionary in accordance with an illustrative embodiment.
Fig. 5 is a block diagram illustrating a structure of a web page resource acquiring apparatus according to an exemplary embodiment.
FIG. 6 is a block diagram illustrating an electronic device in accordance with an example embodiment.
FIG. 7 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings 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 disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method for acquiring web page resources according to an exemplary embodiment, where the method is applied to a terminal, and may include the following steps.
In step S11, a web page address is acquired.
The web page refers to a platform which constitutes basic elements of a website and bears various website applications. The web page address is the address of the web page on the internet.
In step S12, a target offline packet is determined according to the web page address, where the target offline packet includes a plurality of sub-resources and a network address of each sub-resource.
The offline package refers to a backup data package of the online resource.
In an optional implementation manner, when the webpage address includes a parameter for specifying an offline package, determining that the target offline package is the specified offline package; and when the webpage address does not comprise the parameter for specifying the offline package, determining the target offline package as a global configuration offline package.
In the specific implementation, when the WebView loads the webpage address url, a parameter hyId in the webpage address is analyzed, and the target offline package is determined according to the parameter hyId. For example, when the parameter hyId in the web page address is news, which is equivalent to that the offline package is designated as news, the target offline package can be determined as news; when the web page address does not include the parameter hyId, which means that no offline package is specified, the target offline package can be determined to be the global configuration offline package.
The target offline packet comprises a plurality of sub-resources and network addresses of the sub-resources, and a subsequent sub-resource event can be called by a Webview.
The WebView refers to a familiar 'network view', is usually used for embedding and loading webpage content in an application program, is mainly used for loading and displaying content after a network request, displays the content in the webpage content, and is a component provided by an IOS, android and other systems. An Application program (APP), that is, Application software, generally refers to a third-party Application program of the smart terminal.
In step S13, the network address of the sub-resource is searched in the terminal, wherein the network address of the sub-resource is stored in the resource dictionary of the terminal in advance in correspondence with the storage path of the sub-resource in the terminal.
In a specific implementation, when the application is started, the sub-resource may be downloaded to the terminal in advance, and the network address of the sub-resource and the storage path of the sub-resource in the terminal disk are stored in the resource dictionary of the terminal in advance, and a specific implementation manner for establishing the resource dictionary will be described in detail in the following embodiments.
In a first alternative implementation, the network addresses of the sub-resources may be directly looked up in the resource dictionary of the terminal.
In a second optional implementation manner, before step S13, the sub-resource may be first searched in the memory cache of the terminal according to the network address of the sub-resource; when finding the sub-resources in the memory cache of the terminal, directly obtaining the sub-resources and returning the sub-resources to the system; and when the sub-resource is not found in the memory cache of the terminal, further searching the network address of the sub-resource in the resource dictionary of the terminal.
The memory cache refers to a duplicate of data in a terminal memory, text sub-resources are generally stored in the memory cache, and the sub-resources existing in the memory cache can be directly acquired, so that data can be prevented from being read from a disk, the resource acquisition efficiency is improved, and the webpage loading speed is further improved.
In step S14, when the network address of the sub-resource is found in the resource dictionary of the terminal, the storage path of the sub-resource in the terminal is acquired.
In a first optional implementation manner, when the network address of the sub-resource is found in the resource dictionary of the terminal, the storage path of the sub-resource in the terminal disk may be obtained according to the correspondence between the network address and the storage path, and then the sub-resource is obtained according to the storage path of the sub-resource in the terminal disk.
In a second optional implementation manner, when the sub-resource is not found in the memory cache, the network address of the sub-resource may be further looked up in the resource dictionary of the terminal, and when the network address of the sub-resource is found, the storage path of the sub-resource in the terminal disk may be obtained, so as to obtain the sub-resource according to the storage path.
In step S15, a child resource is acquired from the storage path.
In a specific implementation, the terminal, such as the resource dictionary, may also pre-store the configuration information of the sub-resources, and after acquiring the sub-resources, the sub-resources may also be configured into data required by the system according to the configuration information of the sub-resources.
In an optional implementation manner, the method for acquiring a web resource provided in this embodiment may further include:
in step S16, when the network address of the sub-resource is not found in the resource dictionary of the terminal, the sub-resource is downloaded from the network address of the sub-resource through the network.
In a specific implementation, when the sub-resource is not found in the memory cache of the terminal and the network address of the sub-resource is not found in the resource dictionary of the terminal, the sub-resource can be downloaded through a network request.
According to the webpage resource obtaining method provided by the embodiment, the network address of the sub-resource and the storage path of the sub-resource are stored in the resource dictionary of the terminal in advance correspondingly, and the sub-resource is directly obtained according to the storage path of the sub-resource in the terminal, so that the webpage loading speed can be increased, the offline access of the webpage is supported under the condition of no network, the repeated downloading of the sub-resource is avoided, and the user flow is saved.
In an optional implementation manner of this embodiment, before step S13, the method may further include: establishing a resource dictionary, referring to fig. 2, the step of establishing a resource dictionary may specifically include:
in step 21, when the application program of the terminal is started, the latest offline package configuration information is obtained, and the latest offline package configuration information includes a download list of the offline package, an update mechanism, a specified download network type, and a download address.
In an optional implementation manner, when an application program of a terminal is started, reading current off-line package configuration information, and sending an off-line package configuration information acquisition request to a server; receiving the latest offline package configuration information sent by a server; and when the latest offline package configuration information is different from the current offline package configuration information, covering the current offline package configuration information with the latest offline package configuration information.
In a specific implementation, when a terminal application program is started, the application program is switched from background operation to foreground operation, and can read the last stored current offline package configuration information (such as the current offline package version number) and send an offline package configuration information acquisition request to a server interface; according to the latest offline package configuration information (such as the latest offline package version number and the like) returned by the server, whether the latest offline package configuration information is updated relative to the current offline package configuration information or not is judged, if the latest offline package configuration information is updated (such as the version number is different), the current offline package configuration information can be covered by the latest configuration information and is stored in the terminal in a persistent mode.
In another optional implementation manner, when an application program of the terminal is started, an offline package configuration information acquisition request may be directly sent to the server interface, where the offline package configuration information acquisition request includes current offline package configuration information (such as a current offline package version number); the server judges whether the latest offline package configuration information is updated relative to the current offline package configuration information, if the latest offline package configuration information is updated (such as the latest offline package version number and the like), the latest offline package configuration information is returned and the current offline package configuration information is directly covered; if the information is not updated, the latest offline package configuration information does not need to be returned, so that the network resources are saved.
In step 22, when the current network type of the terminal is consistent with the specified download network type, the offline package is obtained from the download address according to the update mechanism.
In an alternative implementation, this step may be preceded by: when the network type of the terminal is changed, acquiring the current network type of the terminal; screening out an offline package to be downloaded from the downloading list, wherein the offline package to be downloaded is an offline package which appears in the downloading list but the sub-resource information included in the offline package is not detected in the resource dictionary; correspondingly, the step may specifically include: and when the current network type of the terminal is consistent with the specified downloading network type of the offline package to be downloaded, acquiring the offline package to be downloaded from the downloading address of the offline package to be downloaded according to the updating mechanism of the offline package to be downloaded.
In a specific implementation, after the application is started, a notification of a network type change may be obtained through a network state change listener of the registration system. If the network type changes, the changed current network type can be obtained. And traversing an offline package list in the latest offline package configuration information, if the download list of the latest offline package configuration information comprises a certain offline package and the offline package resource information does not exist locally, the offline package is the offline package to be downloaded, and meanwhile, when the current network type of the terminal is consistent with the specified download network type of the offline package to be downloaded, if the specified download network type of the offline package to be downloaded is WIFI and the current network is also WIFI, the downloader can be started to download the offline package from the download address.
The update mechanism loadType of the offline package is divided into three conditions: incremental update, full update, and offline package. The incremental updating is to merge the latest offline package and the current offline package, the full updating is to delete the current offline package, and to download the latest offline package again, and the offline package is to delete the current offline package.
Specifying download network types is divided into two cases: any network download and WIFI download.
In step 23, the offline packet is decompressed to obtain the sub-resources and the network addresses of the sub-resources.
In step 24, the network address of the sub-resource is used as a key value, and the storage path of the sub-resource in the terminal is used as a value, which is stored in the resource dictionary correspondingly.
In a specific implementation, a latest offline package is downloaded from a download address, the downloaded offline package can be decompressed to obtain a plurality of sub-resources and network addresses of the sub-resources, the network addresses of the sub-resources are used as key values, storage paths of the sub-resources in a terminal are used as value values, and the key values are correspondingly stored in a resource dictionary, so that a resource dictionary is obtained. The resource dictionary may further include configuration information of the sub-resources, such as content-type, content-encoding, and the like, for example:
Figure BDA0002372505710000091
correspondingly, step S13 may specifically include: and searching the network address of the sub-resource in the key value of the resource dictionary.
Referring to fig. 3, which is a flow chart showing a specific implementation of a web resource acquisition method, a web address url may be loaded by WebView first; determining whether the current page is subjected to offline packet logic or not according to the parameters in the url, downloading sub-resources through a network if the current page is not subjected to the offline packet logic, and searching whether the sub-resources exist in an internal memory cache or not if the current page is subjected to the offline packet logic; and if the sub-resource is found in the memory cache, directly returning resource data, if the sub-resource is not found in the memory cache, further searching the network address of the sub-resource in a resource dictionary (traversing the hyld offline package directory), if the sub-resource is found, obtaining the sub-resource according to the storage path of the sub-resource in the terminal disk, and if the sub-resource is not found, downloading the sub-resource through the network.
Referring to fig. 4, which is a flowchart illustrating a specific implementation manner of establishing a resource dictionary, when a terminal application is started, the application is switched from background operation to foreground operation, and can read the last stored current offline package configuration information and send an offline package configuration information acquisition request to a server interface; and judging whether the configuration information of the current off-line package is updated or not according to the latest off-line package configuration information returned by the server, if so, covering the configuration information of the current off-line package with the latest configuration information, persistently storing the configuration information in the terminal, caching the off-line package and synchronizing a local database according to the latest off-line package configuration information, and downloading and decompressing the off-line package.
According to the webpage resource obtaining method provided by the embodiment, when the application program is started, the webpage resources are loaded, the network resources are stored in the terminal disk, the webpage is subsequently supported to be accessed offline under the condition that no network exists, the flow waste caused by repeatedly downloading the resources by opening the same webpage for many times is avoided, and the webpage loading speed is improved; according to the scheme, the webpage loading stability is improved by pre-loading the data and the cache data, the cache mechanism is customized by different updating mechanisms, and the controllability is higher.
Fig. 5 is a block diagram illustrating a web page resource acquisition apparatus according to an example embodiment. Referring to fig. 5, the apparatus is applied to a terminal and may include:
a web page address acquisition module 51 configured to acquire a web page address;
an offline packet determining module 52, configured to determine a target offline packet according to the web page address, where the target offline packet includes a plurality of sub-resources and a network address of each sub-resource;
a network address searching module 53 configured to search the network address of the sub-resource in the terminal, where the network address of the sub-resource and the storage path of the sub-resource in the terminal are stored in a resource dictionary of the terminal in advance in correspondence;
a storage path obtaining module 54, configured to obtain a storage path of the sub-resource in the terminal when the network address of the sub-resource is found in the resource dictionary;
a sub-resource obtaining module 55 configured to obtain the sub-resource according to the storage path.
In an optional implementation manner, the offline packet determining module 52 is specifically configured to:
when the webpage address comprises a parameter of a specified offline package, determining the target offline package as the specified offline package;
and when the webpage address does not comprise a parameter for specifying an offline package, determining the target offline package as a global configuration offline package.
In an optional implementation, the apparatus further includes:
the sub-resource searching module is configured to search the sub-resources in the memory cache of the terminal according to the network addresses of the sub-resources; when the sub-resources are found in the memory cache of the terminal, the sub-resources are obtained;
the network address lookup module 53 is specifically configured to:
and when the sub-resource is not found in the memory cache of the terminal, searching the network address of the sub-resource in the resource dictionary of the terminal.
In an optional implementation, the apparatus further includes:
a sub-resource downloading module configured to download the sub-resource from the network address of the sub-resource through the network when the network address of the sub-resource is not found in the resource dictionary of the terminal.
In an optional implementation, the apparatus further includes:
a resource dictionary establishing module configured to establish a resource dictionary; the resource dictionary establishing module comprises:
the configuration information acquisition unit is configured to acquire latest offline package configuration information when an application program of the terminal is started, wherein the latest offline package configuration information comprises a download list of offline packages, an update mechanism, a specified download network type and a download address;
an offline packet obtaining unit configured to obtain the offline packet from the download address according to the update mechanism when the current network type of the terminal is consistent with the specified download network type;
the decompression unit is configured to decompress the offline packet to obtain the sub-resources and the network addresses of the sub-resources;
the storage unit is configured to correspondingly store the network address of the sub-resource into the resource dictionary by taking the network address of the sub-resource as a key value and taking the storage path of the sub-resource in the terminal as a value;
the network address lookup module 53 is specifically configured to:
and searching the network address of the sub-resource in the key value of the resource dictionary.
In an optional implementation manner, the configuration information obtaining unit is specifically configured to:
when an application program of the terminal is started, reading current off-line package configuration information, and sending an off-line package configuration information acquisition request to a server;
receiving the latest offline package configuration information sent by the server;
and when the latest offline package configuration information is different from the current offline package configuration information, covering the current offline package configuration information with the latest offline package configuration information.
In an optional implementation manner, the resource dictionary establishing module further includes:
a network type obtaining unit configured to obtain a current network type of the terminal when the network type of the terminal is changed;
a screening unit configured to screen an offline package to be downloaded from the download list, where the offline package to be downloaded is an offline package that appears in the download list but does not detect sub-resource information included in the offline package to be downloaded in the resource dictionary;
the offline packet acquisition unit is specifically configured to:
and when the current network type of the terminal is consistent with the specified downloading network type of the offline package to be downloaded, acquiring the offline package to be downloaded from the downloading address of the offline package to be downloaded according to the updating mechanism of the offline package to be downloaded.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 6 is a block diagram of one type of electronic device 800 shown in the present disclosure. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the web page resource acquisition method described in any of the embodiments. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the web page resource acquisition method described in any of the embodiments.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the web page resource acquisition method of any of the embodiments is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, which comprises readable program code executable by the processor 820 of the apparatus 800 to perform the method for acquiring web page resources according to any of the embodiments. Alternatively, the program code may be stored in a storage medium of the apparatus 800, which may be a non-transitory computer readable storage medium, for example, ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
Fig. 7 is a block diagram of one type of electronic device 1900 shown in the present disclosure. For example, the electronic device 1900 may be provided as a server.
Referring to fig. 7, electronic device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the web page resource acquisition method of any of the embodiments.
The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output (I/O) interface 1958. The electronic device 1900 may operate based on an operating system, such as Windows Server, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM, or the like, stored in memory 1932.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
A1, a webpage resource obtaining method, applied to a terminal, the method comprising:
acquiring a webpage address;
determining a target offline packet according to the webpage address, wherein the target offline packet comprises a plurality of sub-resources and network addresses of the sub-resources;
searching the network address of the sub-resource in the terminal, wherein the network address of the sub-resource and the storage path of the sub-resource in the terminal are stored in a resource dictionary of the terminal in advance correspondingly;
when the network address of the sub-resource is found in the resource dictionary, acquiring a storage path of the sub-resource in the terminal;
and acquiring the sub-resources according to the storage path.
A2, according to the webpage resource obtaining method of A1, the step of determining the target offline package according to the webpage address includes:
when the webpage address comprises a parameter of a specified offline package, determining the target offline package as the specified offline package;
and when the webpage address does not comprise a parameter for specifying an offline package, determining the target offline package as a global configuration offline package.
A3, according to the method for acquiring web page resources described in a1, before the step of searching the network address of the sub resource in the terminal, the method further includes:
searching the sub-resources in the memory cache of the terminal according to the network addresses of the sub-resources;
when the sub-resources are found in the memory cache of the terminal, the sub-resources are obtained;
the step of searching the network address of the sub-resource in the terminal includes:
and when the sub-resource is not found in the memory cache of the terminal, searching the network address of the sub-resource in the resource dictionary of the terminal.
A4, the method for acquiring web page resources according to A1, the method further comprising:
and when the network address of the sub-resource is not found in the resource dictionary of the terminal, downloading the sub-resource from the network address of the sub-resource through the network.
A5, according to the method for acquiring web page resource of any one of a1 to a4, before the step of searching the network address of the sub-resource in the terminal, the method further includes:
establishing a resource dictionary; the step of establishing a resource dictionary comprises:
when an application program of the terminal is started, acquiring latest offline package configuration information, wherein the latest offline package configuration information comprises a downloading list, an updating mechanism, a specified downloading network type and a downloading address of an offline package;
when the current network type of the terminal is consistent with the specified downloading network type, acquiring the offline package from the downloading address according to the updating mechanism;
decompressing the ion coil to obtain the sub-resource and the network address of the sub-resource;
taking the network address of the sub-resource as a key value, taking the storage path of the sub-resource in the terminal as a value, and correspondingly storing the value into the resource dictionary;
the step of searching the network address of the sub-resource in the terminal comprises the following steps:
and searching the network address of the sub-resource in the key value of the resource dictionary.
A6, according to the web resource obtaining method of a5, the step of obtaining the latest offline package configuration information when the application program of the terminal is started includes:
when an application program of the terminal is started, reading current off-line package configuration information, and sending an off-line package configuration information acquisition request to a server;
receiving the latest offline package configuration information sent by the server;
and when the latest offline package configuration information is different from the current offline package configuration information, covering the current offline package configuration information with the latest offline package configuration information.
A7, according to the web resource obtaining method of a5, when the current network type of the terminal is consistent with the specified downloading network type, before the step of obtaining the offline package from the downloading address according to the updating mechanism, the method further includes:
when the network type of the terminal is changed, acquiring the current network type of the terminal;
screening an offline package to be downloaded from the download list, wherein the offline package to be downloaded is an offline package which appears in the download list but does not detect sub-resource information included by the offline package to be downloaded in the resource dictionary;
the step of obtaining the offline package from the download address according to the update mechanism when the current network type of the terminal is consistent with the specified download network type includes:
and when the current network type of the terminal is consistent with the specified downloading network type of the offline package to be downloaded, acquiring the offline package to be downloaded from the downloading address of the offline package to be downloaded according to the updating mechanism of the offline package to be downloaded.
A8, a webpage resource acquisition device, applied to a terminal, the device comprising:
the webpage address acquisition module is configured to acquire a webpage address;
the offline packet determining module is configured to determine a target offline packet according to the webpage address, wherein the target offline packet comprises a plurality of sub-resources and network addresses of the sub-resources;
the network address searching module is configured to search the network address of the sub-resource in the terminal, wherein the network address of the sub-resource and the storage path of the sub-resource in the terminal are stored in a resource dictionary of the terminal in advance in a corresponding manner;
a storage path obtaining module configured to obtain a storage path of the sub-resource in the terminal when the network address of the sub-resource is found in the resource dictionary;
and the sub-resource acquisition module is configured to acquire the sub-resources according to the storage path.
A9, according to the web resource obtaining apparatus described in A8, the offline package determining module is specifically configured to:
when the webpage address comprises a parameter of a specified offline package, determining the target offline package as the specified offline package;
and when the webpage address does not comprise a parameter for specifying an offline package, determining the target offline package as a global configuration offline package.
A10, the web resource obtaining device according to A8, the device further comprising:
the sub-resource searching module is configured to search the sub-resources in the memory cache of the terminal according to the network addresses of the sub-resources; when the sub-resources are found in the memory cache of the terminal, the sub-resources are obtained;
the network address lookup module is specifically configured to:
and when the sub-resource is not found in the memory cache of the terminal, searching the network address of the sub-resource in the resource dictionary of the terminal.
A11, the web resource obtaining device according to A8, the device further comprising:
a sub-resource downloading module configured to download the sub-resource from the network address of the sub-resource through the network when the network address of the sub-resource is not found in the resource dictionary of the terminal.
A12, the web resource acquisition device according to any one of A8 to A11, the device further comprising:
a resource dictionary establishing module configured to establish a resource dictionary; the resource dictionary establishing module comprises:
the configuration information acquisition unit is configured to acquire latest offline package configuration information when an application program of the terminal is started, wherein the latest offline package configuration information comprises a download list of offline packages, an update mechanism, a specified download network type and a download address;
an offline packet obtaining unit configured to obtain the offline packet from the download address according to the update mechanism when the current network type of the terminal is consistent with the specified download network type;
the decompression unit is configured to decompress the offline packet to obtain the sub-resources and the network addresses of the sub-resources;
the storage unit is configured to correspondingly store the network address of the sub-resource into the resource dictionary by taking the network address of the sub-resource as a key value and taking the storage path of the sub-resource in the terminal as a value;
the network address lookup module is specifically configured to:
and searching the network address of the sub-resource in the key value of the resource dictionary.
A13, the web resource obtaining apparatus according to a12, wherein the configuration information obtaining unit is specifically configured to:
when an application program of the terminal is started, reading current off-line package configuration information, and sending an off-line package configuration information acquisition request to a server;
receiving the latest offline package configuration information sent by the server;
and when the latest offline package configuration information is different from the current offline package configuration information, covering the current offline package configuration information with the latest offline package configuration information.
A14, according to the web page resource obtaining device of A12, the resource dictionary establishing module further includes:
a network type obtaining unit configured to obtain a current network type of the terminal when the network type of the terminal is changed;
a screening unit configured to screen an offline package to be downloaded from the download list, where the offline package to be downloaded is an offline package that appears in the download list but does not detect sub-resource information included in the offline package to be downloaded in the resource dictionary;
the offline packet acquisition unit is specifically configured to:
and when the current network type of the terminal is consistent with the specified downloading network type of the offline package to be downloaded, acquiring the offline package to be downloaded from the downloading address of the offline package to be downloaded according to the updating mechanism of the offline package to be downloaded.

Claims (10)

1. A webpage resource obtaining method is applied to a terminal, and the method comprises the following steps:
acquiring a webpage address;
determining a target offline packet according to the webpage address, wherein the target offline packet comprises a plurality of sub-resources and network addresses of the sub-resources;
searching the network address of the sub-resource in the terminal, wherein the network address of the sub-resource and the storage path of the sub-resource in the terminal are stored in a resource dictionary of the terminal in advance correspondingly;
when the network address of the sub-resource is found in the resource dictionary, acquiring a storage path of the sub-resource in the terminal;
and acquiring the sub-resources according to the storage path.
2. The method for acquiring webpage resources according to claim 1, wherein the step of determining the target offline packet according to the webpage address comprises:
when the webpage address comprises a parameter of a specified offline package, determining the target offline package as the specified offline package;
and when the webpage address does not comprise a parameter for specifying an offline package, determining the target offline package as a global configuration offline package.
3. The method for acquiring web page resources according to claim 1, wherein before the step of searching the network address of the sub-resource in the terminal, the method further comprises:
searching the sub-resources in the memory cache of the terminal according to the network addresses of the sub-resources;
when the sub-resources are found in the memory cache of the terminal, the sub-resources are obtained;
the step of searching the network address of the sub-resource in the terminal includes:
and when the sub-resource is not found in the memory cache of the terminal, searching the network address of the sub-resource in the resource dictionary of the terminal.
4. The method for acquiring webpage resources according to claim 1, further comprising:
and when the network address of the sub-resource is not found in the resource dictionary of the terminal, downloading the sub-resource from the network address of the sub-resource through the network.
5. The method for acquiring web page resources according to any one of claims 1 to 4, wherein before the step of searching the network address of the sub-resource in the terminal, the method further comprises:
establishing a resource dictionary; the step of establishing a resource dictionary comprises:
when an application program of the terminal is started, acquiring latest offline package configuration information, wherein the latest offline package configuration information comprises a downloading list, an updating mechanism, a specified downloading network type and a downloading address of an offline package;
when the current network type of the terminal is consistent with the specified downloading network type, acquiring the offline package from the downloading address according to the updating mechanism;
decompressing the ion coil to obtain the sub-resource and the network address of the sub-resource;
taking the network address of the sub-resource as a key value, taking the storage path of the sub-resource in the terminal as a value, and correspondingly storing the value into the resource dictionary;
the step of searching the network address of the sub-resource in the terminal comprises the following steps:
and searching the network address of the sub-resource in the key value of the resource dictionary.
6. The method for acquiring web page resources according to claim 5, wherein the step of acquiring the latest offline package configuration information when the application program of the terminal is started comprises:
when an application program of the terminal is started, reading current off-line package configuration information, and sending an off-line package configuration information acquisition request to a server;
receiving the latest offline package configuration information sent by the server;
and when the latest offline package configuration information is different from the current offline package configuration information, covering the current offline package configuration information with the latest offline package configuration information.
7. The method for acquiring web page resources according to claim 5, wherein before the step of acquiring the offline package from the download address according to the update mechanism when the current network type of the terminal is consistent with the specified download network type, the method further comprises:
when the network type of the terminal is changed, acquiring the current network type of the terminal;
screening an offline package to be downloaded from the download list, wherein the offline package to be downloaded is an offline package which appears in the download list but does not detect sub-resource information included by the offline package to be downloaded in the resource dictionary;
the step of obtaining the offline package from the download address according to the update mechanism when the current network type of the terminal is consistent with the specified download network type includes:
and when the current network type of the terminal is consistent with the specified downloading network type of the offline package to be downloaded, acquiring the offline package to be downloaded from the downloading address of the offline package to be downloaded according to the updating mechanism of the offline package to be downloaded.
8. A webpage resource acquisition device is applied to a terminal, and the device comprises:
the webpage address acquisition module is configured to acquire a webpage address;
the offline packet determining module is configured to determine a target offline packet according to the webpage address, wherein the target offline packet comprises a plurality of sub-resources and network addresses of the sub-resources;
the network address searching module is configured to search the network address of the sub-resource in the terminal, wherein the network address of the sub-resource and the storage path of the sub-resource in the terminal are stored in a resource dictionary of the terminal in advance in a corresponding manner;
a storage path obtaining module configured to obtain a storage path of the sub-resource in the terminal when the network address of the sub-resource is found in the resource dictionary;
and the sub-resource acquisition module is configured to acquire the sub-resources according to the storage path.
9. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the web page resource acquisition method according to any one of claims 1 to 7.
10. A storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the web page resource acquisition method of any one of claims 1 to 7.
CN202010056987.4A 2020-01-17 2020-01-17 Webpage resource obtaining method and device, electronic equipment and storage medium Pending CN111314426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010056987.4A CN111314426A (en) 2020-01-17 2020-01-17 Webpage resource obtaining method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010056987.4A CN111314426A (en) 2020-01-17 2020-01-17 Webpage resource obtaining method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111314426A true CN111314426A (en) 2020-06-19

Family

ID=71148327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010056987.4A Pending CN111314426A (en) 2020-01-17 2020-01-17 Webpage resource obtaining method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111314426A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111966937A (en) * 2020-09-04 2020-11-20 Oppo(重庆)智能科技有限公司 Search response method and device and computer readable storage medium
CN114637528A (en) * 2022-05-07 2022-06-17 太平金融科技服务(上海)有限公司深圳分公司 Resource updating method, apparatus, computer device, storage medium, and program product

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357192A (en) * 2015-10-29 2016-02-24 小米科技有限责任公司 Method, device and system for pushing webpage
CN105488200A (en) * 2015-12-08 2016-04-13 小米科技有限责任公司 Webpage display method and device
CN106354877A (en) * 2016-09-27 2017-01-25 北京奇虎科技有限公司 Off-line browsing method and device for webpage
CN107423394A (en) * 2017-07-25 2017-12-01 北京小米移动软件有限公司 Page display method and device
CN108228818A (en) * 2017-12-29 2018-06-29 网易(杭州)网络有限公司 Web page resources loading method and device, electronic equipment and storage medium
CN109710870A (en) * 2018-12-27 2019-05-03 北京微播视界科技有限公司 Loading method, device, electronic equipment and the readable storage medium storing program for executing of the H5 page
CN110263275A (en) * 2019-06-14 2019-09-20 深圳前海桔子信息技术有限公司 A kind of method, apparatus, mobile terminal and storage medium accessing webpage
CN110287432A (en) * 2019-06-28 2019-09-27 北京金山安全软件有限公司 Network information processing method and device and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357192A (en) * 2015-10-29 2016-02-24 小米科技有限责任公司 Method, device and system for pushing webpage
CN105488200A (en) * 2015-12-08 2016-04-13 小米科技有限责任公司 Webpage display method and device
CN106354877A (en) * 2016-09-27 2017-01-25 北京奇虎科技有限公司 Off-line browsing method and device for webpage
CN107423394A (en) * 2017-07-25 2017-12-01 北京小米移动软件有限公司 Page display method and device
CN108228818A (en) * 2017-12-29 2018-06-29 网易(杭州)网络有限公司 Web page resources loading method and device, electronic equipment and storage medium
CN109710870A (en) * 2018-12-27 2019-05-03 北京微播视界科技有限公司 Loading method, device, electronic equipment and the readable storage medium storing program for executing of the H5 page
CN110263275A (en) * 2019-06-14 2019-09-20 深圳前海桔子信息技术有限公司 A kind of method, apparatus, mobile terminal and storage medium accessing webpage
CN110287432A (en) * 2019-06-28 2019-09-27 北京金山安全软件有限公司 Network information processing method and device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111966937A (en) * 2020-09-04 2020-11-20 Oppo(重庆)智能科技有限公司 Search response method and device and computer readable storage medium
CN114637528A (en) * 2022-05-07 2022-06-17 太平金融科技服务(上海)有限公司深圳分公司 Resource updating method, apparatus, computer device, storage medium, and program product

Similar Documents

Publication Publication Date Title
EP3561691B1 (en) Method and apparatus for displaying webpage content
RU2604420C2 (en) Method, device and terminal for lightweight applications updating in offline mode
CN107229711B (en) Webpage display method and device
CN112003893B (en) Resource downloading method and device
CN106201734B (en) File sharing method and device
CN107357613B (en) Application updating method and device and computer readable storage medium
CN107220059B (en) Application interface display method and device
CN105808305B (en) Static resource loading method and device
CN109388625B (en) Method and device for processing configuration file in multi-distributed file system
CN106851695B (en) Method, device and system for testing network speed
CN110858173A (en) Data processing method and device and data processing device
CN109922098B (en) Content sharing method and device for content sharing
CN117390330A (en) Webpage access method and device
CN109814942B (en) Parameter processing method and device
CN110704054A (en) Method and device for accessing target application program through applet, electronic equipment and storage medium
CN110912925A (en) Method and device for detecting Domain Name System (DNS) hijacking and storage medium
CN111314426A (en) Webpage resource obtaining method and device, electronic equipment and storage medium
CN107239307B (en) Version updating information display method and device
CN111695064A (en) Embedded point loading method and device
CN111859208A (en) Display method, display device and storage medium
CN112087544B (en) Prompting method and device
CN111241134B (en) Data processing method and device
CN110457084B (en) Loading method and device
CN107257384B (en) Service state monitoring method and device
CN114489706A (en) Upgrading method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200619