CN111753231B - Method and device for loading third-party H5 page and computer readable storage medium - Google Patents

Method and device for loading third-party H5 page and computer readable storage medium Download PDF

Info

Publication number
CN111753231B
CN111753231B CN202010582305.3A CN202010582305A CN111753231B CN 111753231 B CN111753231 B CN 111753231B CN 202010582305 A CN202010582305 A CN 202010582305A CN 111753231 B CN111753231 B CN 111753231B
Authority
CN
China
Prior art keywords
page
party
loading
resource
resources
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010582305.3A
Other languages
Chinese (zh)
Other versions
CN111753231A (en
Inventor
陈方毅
李江淮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Meishao Co ltd
Original Assignee
Xiamen Meishao 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 Xiamen Meishao Co ltd filed Critical Xiamen Meishao Co ltd
Priority to CN202010582305.3A priority Critical patent/CN111753231B/en
Publication of CN111753231A publication Critical patent/CN111753231A/en
Application granted granted Critical
Publication of CN111753231B publication Critical patent/CN111753231B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Abstract

The invention discloses a method and a device for loading a third party H5 page and a computer readable storage medium, wherein the method comprises the following steps: acquiring resources of a third-party H5 page according to a URL corresponding to a third-party H5 page link in the current application page, and adding the resources into a webpage view cache; according to an opening request of a third-party H5 page, loading resources required by the opening of the third-party H5 page from the webpage view cache and the third-party server respectively; after the loading of the resources required for opening the third-party H5 page is completed, analyzing and obtaining a resource list of the third-party H5 page, and uploading the resource list obtained through analysis to the cloud. The method and the device do not influence the accuracy of the third party on the monitoring statistical result of the third party H5 page, simplify the whole process of the third party H5 page preloading, and improve the loading speed and the loading success rate.

Description

Method and device for loading third-party H5 page and computer readable storage medium
Technical Field
The invention belongs to the technical field of web pages, and particularly relates to a method and a device for loading a third-party H5 page and a computer readable storage medium.
Background
Storing a plurality of page links in an Application (APP), such as advertisement page links, content information page links and the like; the page links include links of H5 pages of other websites besides own page links, the H5 page of other websites is called a third party H5 page, when the third party H5 page is opened, resources are added from a server of the website, and the server of the website is called a third party server.
When browsing the application page, the user often accesses the link of the third-party H5 page embedded in the current page and enters the third-party H5 webpage; however, since the code of the third party H5 webpage is unmanageable and uneditable by the application, when the application accesses the link of the third party H5 webpage, the loading speed of the third party H5 webpage is slow, the loading success rate is low, and the user experience is greatly influenced.
To solve the above problem, the existing solution is to pre-load a third-party page, which specifically includes:
simulating user access behaviors, and loading the resources of the third-party page from the third-party server into a third-party browser of the own server;
analyzing a resource acquisition record of the third-party browser, acquiring and storing a resource list of a third-party page;
loading the resource corresponding to the third-party page according to the resource list, and issuing the content of the resource to a client for pre-loading;
and when the link of the third-party webpage is triggered, intercepting a resource request of the link of the third-party webpage, and responding based on the content of the pre-loaded resource.
Although the loading speed can be improved by loading the third-party H5 page in the prior art, in the preloading stage, the resource list of the third-party H5 page required for preloading needs to be acquired by simulating the user access behavior, and in this way, the user access behavior needs to be completely simulated, so that the whole preloading flow of the third-party H5 page is redundant and complicated, and the working efficiency of preloading is reduced, and the larger the number of the resource lists of the third-party H5 page is, the greater the redundancy complexity is, the more the working efficiency of preloading is reduced; in addition, the imitation of the user access behavior triggers the third party (other websites to which the third party H5 page belongs) to monitor and count the third party H5 page, so that the monitoring and counting result of the third party on the third party H5 page will not be consistent with the actual result, and the accuracy of the monitoring and counting of the third party on the third party H5 page is affected.
Disclosure of Invention
The invention mainly aims to provide a method and a device for loading a third-party H5 page and a computer readable storage medium, which can reduce the redundancy complexity of the page preloading process of the third-party H5, improve the working efficiency of preloading and ensure the accuracy of monitoring statistics on the third-party H5 page by the third party.
According to the first aspect of the invention, a method for loading a third-party H5 page is provided, which comprises the following steps:
acquiring resources of a third-party H5 page according to a URL corresponding to a third-party H5 page link in the current application page; the resources are obtained by loading according to a resource list of the third-party H5 page; the resource list comes from the cloud;
adding the resources of the third party H5 page to a web view cache;
according to an opening request of a third-party H5 page, loading resources required for opening the third-party H5 page from the webpage view cache and a third-party server respectively;
after the loading of the resources required by the page of the third party H5 is completed, a resource list of the page of the third party H5 is obtained through analysis, and the resource list obtained through analysis is uploaded to a cloud.
When the third party H5 webpage is preloaded, the preloading of the corresponding resources is only carried out on the third party H5 webpage with the resource list in the cloud, the resource list is not independently acquired and accessed into the cloud, the corresponding resource list is acquired after the third party H5 webpage is opened by a user request, and then the third party H5 webpage is uploaded to the cloud for storage, so that the accuracy of the monitoring statistical result of the third party H5 webpage is not influenced, the preloading overall process of the third party H5 webpage is simplified, and the loading speed and the loading success rate are improved.
In a specific embodiment of the present invention, before acquiring the resource of the third party H5 page according to the URL corresponding to the link of the third party H5 page in the current page of the application, the method further includes:
acquiring URLs of all H5 page links in the current page of the application;
and screening the URL linked by all the third-party H5 pages in the current page according to the URL list of the self page.
In a specific embodiment of the present invention, after the adding the resource of the third party H5 page to the web page view cache, the method further comprises storing the URL of the third party H5 page in a pre-load list. And identifying the third-party H5 page which is subjected to preloading, so that the preloading judgment of the third-party H5 page is convenient to be carried out subsequently.
In a specific embodiment of the present invention, the obtaining the resource of the third party H5 page according to the URL corresponding to the link of the third party H5 page in the current page of the application includes:
judging whether the third party H5 page in the current page is preloaded or not according to the preloading list;
if the page is not preloaded, acquiring the resource of the third-party H5 page according to the URL of the third-party H5 page; repeated preloading is avoided, and preloading efficiency is improved.
In a specific embodiment of the present invention, the acquiring the resource of the third party H5 page includes:
acquiring the resource from the cloud; the resources are obtained by loading the resources from the cloud according to a resource list of the third party H5 page; or
And loading the resources according to a resource list of the third party H5 page from the cloud.
In a specific embodiment of the present invention, said loading the resources required for opening the third party H5 page from the web view cache and the third party server, respectively, comprises;
preferentially loading resources required for opening a third-party H5 page from the resources cached by the webpage view;
and loading the resources which cannot be loaded from the webpage view cache and are required for opening the third-party H5 page from the third-party server.
And acquiring partial resource data of the resource list from the webpage view cache, loading the resource list from a third-party server, filtering, adding new resource data or all resources, triggering third-party H5 page monitoring statistics, and ensuring the accuracy of statistical results and the loading success rate.
In another specific embodiment of the present invention, said loading the resources required for opening the third party H5 page from the web view cache and the third party server, respectively, comprises;
judging whether the third-party H5 page requested to be opened is preloaded according to the preloading list;
if the page is pre-loaded, respectively loading the resources required by opening the page of the third party H5 from the webpage view cache and the third party server;
otherwise, loading the resources required for opening the third-party H5 page from the third-party server.
When the third-party H5 page is not pre-loaded, the resource loading speed of the third-party H5 page can be further improved.
In another specific embodiment of the present invention, the resource list is a resource list of the third party H5 page with the statistical links filtered out. And in the pre-loading stage, the third party is not triggered to monitor and count the third party H5 page, so that the accuracy of the third party to the third party H5 page monitoring and counting result is ensured.
According to a second aspect of the present invention, there is provided an apparatus for third party H5 page loading, including: memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method for third party H5 page loading according to any of the embodiments of the first aspect of the present invention when executing the program.
In a third aspect of the present invention, there is provided a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to perform the method for loading a third-party H5 page according to any one of the embodiments of the first aspect of the present invention.
One of the above technical solutions of the present invention has at least one of the following advantages or beneficial effects: when the resource list is preloaded, the corresponding resources are preloaded only on the third party H5 page with the resource list in the cloud, the third party H5 page without the resource list in the cloud no longer simulates the user access behavior to obtain the resource list, the corresponding resource list is obtained after the third party H5 page is opened by the first request of the user and then is uploaded to the cloud for storage, and therefore other clients can share the resource list to be preloaded, the accuracy of the monitoring statistical result of the third party H5 page by the third party is not affected, the preloading overall process of the third party H5 page is simplified, and the loading speed and the loading success rate are improved.
Drawings
FIG. 1 is a flowchart of a method for loading a third-party H5 page according to an embodiment of the present invention;
FIG. 2 is a flowchart of step S100 in an embodiment of the present invention;
FIG. 3 is a flowchart of step S400 in an embodiment of the present invention;
fig. 4 is a block diagram of an apparatus for loading a third party H5 page according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
The following disclosure provides many different embodiments, or examples, for implementing different aspects of the invention.
Referring to fig. 1, a method for loading a third party H5 page provided by an embodiment of the present invention includes:
s100, acquiring resources of a third-party H5 page according to a URL (Uniform Resource Locator) corresponding to a page link of the third-party H5 in the current page of the application; the resources of the third party H5 page are loaded according to the resource list of the third party H5 page; the resource list is from a cloud (a server of the application at least provides resource list sharing service for different clients for installing the application), and a large number of resource lists of third-party H5 pages are stored on the cloud and are shared by all the clients; the resource lists of the third party H5 pages are stored in the cloud according to whether the URLs are the same, and the resource list corresponding to the URL can be found in the cloud by using the URL as an index.
In this embodiment, the manner of obtaining the resource of the third party H5 page includes:
(1) the method comprises the steps that resources of a third party H5 page are obtained from a cloud, and the resources of the third party H5 page are obtained by loading the cloud third party H5 page according to a resource list;
(2) the method comprises the steps of obtaining a resource list of a third-party H5 page from a cloud, loading according to the resource list to obtain a third-party H5 page resource, directly loading the resource of a third-party H5 page from a third-party server by each client according to the resource list, and only carrying out once remote transmission, wherein a loading task of the resource of the third-party H5 page is also respectively transferred to each pre-loading client, so that the resource is not concentrated on the cloud loading resource, the data processing load of the cloud is reduced, and the pre-loading reliability and the pre-loading efficiency are improved.
And step S200, adding the first resource into a webpage view (WebView) cache, and realizing the pre-loading of the resource required by the page opening of the third party H5.
In step S100, a plurality of third party H5 page links may exist in the current page, the resources of each third party H5 page are sequentially acquired according to the corresponding URL, and in step S200, the resources of all third party H5 pages are added to the web view cache according to the URL for storage.
Step S300, according to an opening request of the third party H5 page (the request includes a URL of the third party H5 page), loading resources required for opening the third party H5 page from the web view cache and the third party server, respectively, and opening the third party H5 page, where the loading resources required for opening the third party H5 page from the web view cache and the third party server, respectively, includes:
firstly, according to an opening request of a third party H5 page of a user, loading resources required by opening the third party H5 page from a webpage view cache;
and loading the resources which cannot be loaded from the webpage view cache and are required for opening the third-party H5 page from the third-party server according to the opening request of the third-party H5 page of the user.
Because the third party carries out monitoring statistics on the third party H5 page, each client loads the resource of the third party H5 page according to the resource list from the cloud, when the client carries out pre-loading, the monitoring statistics on the third party H5 page of the third party can be triggered, and the monitoring statistics results on the pre-loaded third party H5 page can be increased by 1; if the third party H5 page is really opened after receiving the command of opening requested by the user, all the resources loaded in advance are directly acquired, and the monitoring statistical result of the third party H5 page which is opened is not influenced finally; if the user does not open the third party H5 page loaded in advance finally, and the monitoring statistical result of the third party H5 page is added with 1, the monitoring statistical result has an error, and the error tends to increase with the increase of the number of the clients loaded in advance by using the cloud resource list, so that the monitoring statistical result of the third party is inaccurate.
In the scheme, in the webpage request, the server side returns whether the link is allowed to be cached or not to each link, the statistical link is an uncacheable link, the statistical link can be filtered out certainly by filtering the uncacheable link, and when the webpage is opened, the filtered uncacheable link is still loaded from the third-party server, so that the pre-loading of the webpage of the third-party H5 does not influence the statistics of the webpage opening times of the third party.
Accordingly, the resources required to open the third party H5 page that cannot be loaded from the web view cache are:
(1) when the third-party H5 page requested to be opened by the user is preloaded, the page is a partial resource, and the method comprises the following steps:
due to the fact that the third party H5 updates the added or modified resources, the situation that the preloaded third party H5 page loading fails due to the fact that the difference between the updated resource list of the third party H5 page and the cloud-stored resource list is large can be avoided, and the loading success rate is improved;
because the resource list is filtered to remove the resource which is not preloaded, loading the resource from the third-party server can trigger the monitoring statistics of the third-party H5 page, so that the whole preloading process does not influence the monitoring statistics result of the third-party H5 page.
(2) When the third-party H5 page requested to be opened by the user is not preloaded, the page is all resources, and all resources required for opening the third-party H5 page, that is, when step S100 is executed, the cloud does not have a resource list corresponding to the URL, and the corresponding resource is not acquired to be preloaded, and no resource corresponding to the URL exists in the web view cache; but begins to pre-load the third party H5 page resource corresponding to another URL in the current page of the application. Therefore, the resources which cannot be loaded from the webpage view cache and are required for opening the third-party H5 page are loaded from the third-party server, the third-party H5 page can be guaranteed to be loaded even if the page is not loaded in advance, and the loading success rate is improved.
Step S400, after the loading of resources required by the opening of the third party H5 page is completed, analyzing and acquiring a resource list of the third party H5 page, uploading the resource list acquired by analysis to a cloud for storage, if the cloud does not have a resource list with the same URL, showing that the user opens the corresponding third party H5 page for the first time, and after the resource list is stored in the cloud, other clients can use the resource list to pre-load the corresponding third party H5 page; if the cloud side has the resource list with the same URL, the existing resource list of the cloud side is updated, and the phenomenon that due to the fact that the page of the third party H5 is updated, the difference between the new resource list and the resource list stored in the cloud side is too large, the number of resources loaded from the third party server is too large, and the pre-loading effect is reduced is avoided.
In the embodiment of the invention, before acquiring the resource of the page of the third party H5 according to the URL corresponding to the page link of the third party H5 in the current page of the application, the method further includes acquiring the URL corresponding to the page link of the third party H5 in the current page of the application. Since the corresponding service acquires the URLs of all H5 pages in the current application page when the user browses the current application page, to acquire the URLs of the H5 page of the third party by using the feature, the URLs of the H5 page of the third party need to be screened from the URLs of all H5 pages in the current application page.
In summary, the embodiment of obtaining the URL corresponding to the page link of the third party H5 in the current page of the application includes:
acquiring URLs of all H5 page links in the current page of the application from the corresponding service;
and screening the URL of the third-party H5 page according to the locally stored URL list of the own page, namely:
searching a self-owned page URL list by taking the acquired URLs as indexes one by one, wherein if the same URL exists in the self-owned page URL list, the H5 page corresponding to the URL is a self-owned H5 page; otherwise, the H5 page corresponding to the URL is the third-party H5 page, so that the URL linked with the third-party H5 page is obtained through screening.
According to the embodiment of the invention, after the resources of the third party H5 page are added into the webpage view cache, the URL of the third party H5 page is stored into the preloading list so as to record the third party H5 page which is preloaded.
In order to avoid repeated preloading of the same third party H5 page and improve the preloading efficiency, in an embodiment of the present invention, after obtaining a URL corresponding to a third party H5 page link in the current page of the application, the method further includes determining, according to a preloading list, whether the third party H5 page corresponding to the obtained URL has been preloaded, including:
searching a pre-loading list by taking the acquired URL as an index, and judging whether the same URL exists in the pre-loading list or not;
if the URL exists, the third-party H5 page corresponding to the URL is preloaded, and the preloading judgment of another third-party H5 page in the current page is started until the judgment of all third-party H5 pages in the current page is finished;
and if the third-party H5 page does not exist, the corresponding third-party H5 page is not pre-loaded, and the resources corresponding to the third-party H5 page are obtained from the cloud according to the URL.
As shown in fig. 2, step S100 of the present embodiment includes the following steps:
step S110, obtaining URLs of all H5 pages in the current application page browsed by the user;
step S120, screening to obtain the URL of the third-party H5 page according to the locally stored own page URL list;
step S130, judging whether each third-party H5 page is preloaded or not according to a locally stored preloading list, if the corresponding URL exists in the preloading list, judging that the page is preloaded by another third party H5 until the preloading judgment of all the third-party H5 pages of the current page is finished; if not, go to step S140;
step S140, enter the pre-load execution queue of the third party H5 page, wherein the pre-load queue executes only one task at a time.
And S150, acquiring resources corresponding to the third party H5 page from the cloud according to the URL.
Because the resources required for opening the third party H5 page are all from the third party server when the third party H5 page is not preloaded, loading the resources in the web page view first only reduces the loading speed, and in order to further increase the loading speed of the third party H5 page resources, in another embodiment of the present invention, step S300 includes;
judging whether the page of the third party H5 requested to be opened is preloaded according to the preloading list;
if the page is pre-loaded, loading resources required for opening a third-party H5 page from the webpage view cache and the third-party server respectively;
otherwise, loading the resources required for opening the third-party H5 page from the third-party server.
If the resource list is the resource list of the third party H5 page with the statistical link filtered out, as shown in fig. 3, step S400 includes:
step S410, after the loading of the resources required by opening the third party H5 page is completed, acquiring a resource list of the third party H5 page;
step S420, filtering out statistical links in the resource list;
step S430, uploading the filtered resource list to the cloud, and updating an original resource list cached by the cloud; and simultaneously, loading resources according to the filtered resource list and adding the resources into the webpage view cache.
Referring to fig. 4, an embodiment of the present invention further provides a third party H5 page loading apparatus, where the apparatus is installed on an intelligent device, and may all be deployed on the same intelligent device, or may be deployed on different devices.
Specifically, the apparatus includes: one or more processors 200 and memory 100, with one processor 200 and memory 100 being an example in fig. 4. The processor 200 and the memory 100 may be connected by a bus or other means, such as by a bus connection for example.
The memory 100 is a non-transitory computer readable storage medium that can be used to store non-transitory software programs and non-transitory computer executable programs, such as a third party H5 page loading method in embodiments of the present invention. The processor 200 implements a third party H5 page loading method in the above-described embodiment of the present invention by running a non-transitory software program and instructions stored in the memory 100.
The memory 100 is a non-transitory computer readable storage medium that can be used to store non-transitory software programs and non-transitory computer executable programs, such as a third party H5 page loading method in embodiments of the present invention. The processor 200 implements a third party H5 page loading method in the above-described embodiment of the present invention by running a non-transitory software program and instructions stored in the memory 100.
The memory 100 may include a storage program area and a storage data area, wherein the storage program area may store an operating device, an application program required for at least one function; the storage data area may store data and the like required to execute a method of page loading of the third party H5 in the above-described embodiment. Further, the memory 100 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories 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.
Non-transitory software programs and instructions required to implement a method of third party H5 page loading in the above embodiments are stored in the memory, and when executed by one or more processors, perform a method of third party H5 page loading in the above embodiments, for example, performing the above-described method steps S100 to S400 in fig. 1, method steps S110 to S150 in fig. 2, and method steps S410 to S430 in fig. 3.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions, which when executed by one or more processors, may cause the one or more processors to perform a method of third party H5 page loading in the above-described embodiment, for example, performing the above-described method steps S100 to S400 in fig. 1, method steps S110 to S150 in fig. 2, and method steps S410 to S430 in fig. 3.
The above-described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
It will be understood by those of ordinary skill in the art that all or some of the steps, means, and methods disclosed above may be implemented as software, firmware, hardware, or suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
While embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (7)

1. A method for loading a third-party H5 page, comprising:
acquiring resources of a third-party H5 page according to a URL corresponding to a third-party H5 page link in the current application page; the resources are loaded according to a resource list of the third-party H5 page; the resource list comes from the cloud;
adding the resources of the third party H5 page to a web view cache;
according to an opening request of a third-party H5 page, loading resources required for opening the third-party H5 page from the webpage view cache and a third-party server respectively;
after the loading of the resources required by the opening of the third-party H5 page is completed, analyzing and obtaining a resource list of the third-party H5 page, uploading the resource list obtained through analysis to a cloud, when the resource list corresponding to the URL does not exist in the cloud, opening the third-party H5 page corresponding to the URL, storing the resource list in the cloud, and pre-loading the third-party H5 page corresponding to the resource list according to the resource list; when the cloud end has the resource list corresponding to the URL, the resource list in the cloud end is updated, wherein the resource list is the resource list of the third party H5 page with the filtered statistical link, and the filtered statistical link specifically includes: filtering all non-cacheable links in the resource list, wherein the statistical links are non-cacheable links;
the loading the resources required for opening the third-party H5 page from the webpage view cache and the third-party server respectively comprises:
judging whether the third-party H5 page requested to be opened is preloaded or not according to a preloading list; if the webpage view cache is pre-loaded, preferentially loading resources required by opening a third party H5 page from the resources cached by the webpage view; loading the resources which cannot be loaded from the webpage view cache and are required for opening the third-party H5 page from the third-party server; otherwise, loading the resources required for opening the third-party H5 page from the third-party server;
the acquiring the resource of the third party H5 page includes:
acquiring the resource of the third party H5 page from the cloud, and loading and acquiring the resource of the third party H5 page according to the resource list;
alternatively, the first and second liquid crystal display panels may be,
and acquiring a resource list of the third party H5 page from the cloud, and loading and acquiring the resource of the third party H5 page according to the resource list.
2. The method of claim 1, further comprising, before obtaining the resources of the third party H5 page according to the URL corresponding to the third party H5 page link in the current page of the application:
acquiring URLs of all H5 page links in the current page of the application;
and screening the URL linked by all the third-party H5 pages in the current page according to the URL list of the self page.
3. The method of claim 1, further comprising, after the adding the resource of the third party H5 page to the web view cache, storing the URL of the third party H5 page in a pre-load list.
4. The method of claim 3, wherein the obtaining the resources of the third-party H5 page according to the URL corresponding to the third-party H5 page link in the current page of the application comprises:
judging whether the third party H5 page in the current page is preloaded or not according to the preloading list;
and if the page is not preloaded, acquiring the resource of the third-party H5 page according to the URL of the third-party H5 page.
5. The method of claim 3, wherein the obtaining the resources of the third party H5 page comprises:
acquiring the resource from the cloud; the resources are obtained by loading the resources from the cloud according to a resource list of the third party H5 page; or
And loading the resources according to a resource list of the third party H5 page from the cloud.
6. An apparatus for third party H5 page loading, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements a method of loading a third party H5 page according to any one of claims 1 to 5 when executing the computer program.
7. A computer-readable storage medium storing computer-executable instructions for performing the method of any one of claims 1 to 5 for loading a third party H5 page.
CN202010582305.3A 2020-06-23 2020-06-23 Method and device for loading third-party H5 page and computer readable storage medium Active CN111753231B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010582305.3A CN111753231B (en) 2020-06-23 2020-06-23 Method and device for loading third-party H5 page and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010582305.3A CN111753231B (en) 2020-06-23 2020-06-23 Method and device for loading third-party H5 page and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111753231A CN111753231A (en) 2020-10-09
CN111753231B true CN111753231B (en) 2022-07-01

Family

ID=72676938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010582305.3A Active CN111753231B (en) 2020-06-23 2020-06-23 Method and device for loading third-party H5 page and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111753231B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145937A (en) * 2006-09-15 2008-03-19 腾讯科技(深圳)有限公司 Method for displaying access traffic data and its transmission device
CN106339398A (en) * 2015-07-09 2017-01-18 广州市动景计算机科技有限公司 Pre-reading method and device for webpage and intelligent terminal device
CN108984548A (en) * 2017-05-31 2018-12-11 腾讯科技(深圳)有限公司 Content of pages caching method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9330074B2 (en) * 2013-10-31 2016-05-03 Google Inc. Style sheet speculative preloading
US10938879B2 (en) * 2018-06-04 2021-03-02 Akamai Technologies, Inc. Third-party Ad acceleration

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145937A (en) * 2006-09-15 2008-03-19 腾讯科技(深圳)有限公司 Method for displaying access traffic data and its transmission device
CN106339398A (en) * 2015-07-09 2017-01-18 广州市动景计算机科技有限公司 Pre-reading method and device for webpage and intelligent terminal device
CN108984548A (en) * 2017-05-31 2018-12-11 腾讯科技(深圳)有限公司 Content of pages caching method and device

Also Published As

Publication number Publication date
CN111753231A (en) 2020-10-09

Similar Documents

Publication Publication Date Title
US10645143B1 (en) Static tracker
US10291738B1 (en) Speculative prefetch of resources across page loads
CN106682176A (en) Page loading method, equipment and device
US7814234B2 (en) Offline execution of web based applications
US20180041530A1 (en) Method and system for detecting malicious web addresses
US20170154013A9 (en) Ad blocking page display method and device
CN110209966B (en) Webpage refreshing method, webpage system and electronic equipment
CN112637361B (en) Page proxy method, device, electronic equipment and storage medium
CN107402938B (en) Page display method and device and client equipment
CN108932332A (en) The loading method and device of static resource
US10831892B2 (en) Web browser script monitoring
US20170300459A1 (en) Card-type desktop implementation method and apparatus
US9503541B2 (en) Fast mobile web applications using cloud caching
CN112632358A (en) Resource link obtaining method and device, electronic equipment and storage medium
WO2020057523A1 (en) Method and device for triggering vulnerability detection
CN111753233B (en) Third-party H5 page loading method and device and computer readable storage medium
CN111753231B (en) Method and device for loading third-party H5 page and computer readable storage medium
CN109145237A (en) A kind of optimization method of web cache problem
US10909205B2 (en) System and method for web-session recording
CN111753232B (en) Method and device for loading third-party H5 page and computer readable storage medium
CN113934954A (en) Webpage first screen rendering method and device in application program
CN111756744B (en) H5 user identification method, device, equipment and storage medium
CN110830537B (en) Page processing method and device
CN112948731A (en) Cache analysis method and system for website domain name resource and computer storage medium
CN113127788A (en) Page processing method, object processing method, device and 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
GR01 Patent grant
GR01 Patent grant