CN111753232B - 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
CN111753232B
CN111753232B CN202010582379.7A CN202010582379A CN111753232B CN 111753232 B CN111753232 B CN 111753232B CN 202010582379 A CN202010582379 A CN 202010582379A CN 111753232 B CN111753232 B CN 111753232B
Authority
CN
China
Prior art keywords
party
page
resource
loading
list
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
CN202010582379.7A
Other languages
Chinese (zh)
Other versions
CN111753232A (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 CN202010582379.7A priority Critical patent/CN111753232B/en
Publication of CN111753232A publication Critical patent/CN111753232A/en
Application granted granted Critical
Publication of CN111753232B publication Critical patent/CN111753232B/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 a first resource of a third-party H5 page according to a URL corresponding to a third-party H5 page link in an application current page; the first resource is a resource of the third-party H5 page loaded according to a first resource list; the first resource list is a resource list of the third party H5 page with the statistical link filtered out and is stored in a cloud; adding a first resource of the third party H5 page to a web view cache; and according to the opening request of the third-party H5 page, loading the resources required by the opening of the third-party H5 page from the webpage view cache and the third-party server respectively. The method and the device improve the page opening speed and the loading success rate of the third party H5 under the condition of not influencing the monitoring statistics of the page link of the third party H5.

Description

Third-party H5 page loading method and device 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 H5 webpage of the third party; 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:
loading the resource of the third-party page from the third-party server into a third-party browser of the 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 preloaded resource.
Although loading the third party H5 page in the prior art can improve the loading speed, each time the resource is loaded according to the resource list and issued to the client, the monitoring statistics of the third party (other websites to which the third party H5 page belongs) on the third party H5 page is triggered, and in the pre-loading stage, the third party H5 page is not actually opened, if the user does not visit the link of the third party H5 page when browsing the application page, the statistical result of the third party on the third party H5 page will not meet the actual statistical result, and the error of the monitoring statistical result will be larger as the number of the pre-loaded clients increases.
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 improve the loading speed and the loading success rate of the third-party H5 page on the premise of not influencing the monitoring statistical result of the third-party H5 page.
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 a first resource of a third-party H5 page according to a URL corresponding to a third-party H5 page link in an application current page; the first resource is a resource of the third-party H5 page, which is loaded according to a first resource list stored in a cloud; the first resource list is a resource list of the third-party H5 page with the statistical links filtered out;
adding a first resource of the third party H5 page to a web view cache;
and according to the opening request of the third-party H5 page, loading the resources required by the opening of the third-party H5 page from the webpage view cache and the third-party server respectively.
Because the statistical links in the resource list are filtered out in the first resource list, the first resource of the third-party H5 page is preloaded according to the first resource list, monitoring statistics of the third-party H5 link by the third party is not triggered, and when a user actually opens the third-party H5 page, the resources required by opening the third-party H5 page are loaded from the webpage view cache and the third-party server respectively, so that when the resources are loaded from the third-party server, the monitoring statistics of the third-party H5 page link can be triggered, the opening speed and the loading success rate of the third-party H5 page can be improved under the condition that the monitoring statistics of the third-party H5 page link by the third party are not influenced, and therefore the user experience and the application commercial value are improved.
In a specific embodiment of the present invention, before acquiring the first 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 first resource of the third party H5 page is added to the web page view cache, the method further includes storing the URL of the third party H5 page in a pre-loading list, and identifying the pre-loaded third party H5 page, so as to facilitate the subsequent pre-loading determination of the third party H5 page.
In a specific embodiment of the present invention, the obtaining the first 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;
and if the third party H5 page is not pre-loaded, acquiring a first 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, if the cloud does not store the first resource list, according to the URL of the third party H5 page, parsing to obtain a corresponding first resource list, and storing the first resource list in the cloud; the analyzing to obtain the corresponding first resource list according to the URL of the third party H5 page includes the following two ways:
uploading the URL of the third party H5 page to a cloud, simulating a browser page opening behavior by the cloud according to the URL, acquiring a corresponding resource list, and filtering out statistical links from the resource list to obtain a corresponding first resource list; or
And when an opening request of the third party H5 page is received, loading the resources required by the third party H5 page opening from a third party server according to the URL in the opening request, acquiring a resource list of the third party H5 page after the resource loading is finished, and filtering out statistical links from the resource list to obtain a corresponding first resource list. The stability of the pre-loading system is improved, and the continuous expansion of the data volume of the cloud first resource list is realized.
In a specific embodiment of the present invention, the acquiring the first resource of the third party H5 page includes:
acquiring a first resource from a cloud; the first resource is obtained by loading from the cloud according to a first resource list;
and loading the first resource according to the first resource list from the cloud.
In a specific embodiment of the present invention, the loading the resource required for the page opening of the third party H5 from the web view cache and the third party server respectively includes:
loading resources required for opening a third party H5 page from the first resources of the 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.
And acquiring partial resource data of the resource list from the webpage view cache, loading the resource list from a third-party server to filter or add new resource data, 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, after said loading the resource required for the page open of the third party H5 from the web view cache and the third party server respectively, further comprises:
acquiring a resource list of the third party H5 page;
filtering out statistical links in the resource list to obtain a corresponding first resource list;
uploading the first resource list to a cloud, updating the first resource list stored by the cloud, loading a first resource according to the first resource list, and adding the first resource to the webpage view cache.
Because the third party H5 page may be updated, after all resource data of the third party H5 page are obtained by loading the web view each time, the corresponding resource list is obtained again, the corresponding first resource list is obtained by filtering, the first resource list of the first resource and the cloud terminal is loaded in advance by updating the web view cache, and the situation that the actual situation of the first resource in the web view cache and the actual situation of the first resource list in the cloud terminal and the third party H5 page are too different from each other and the effect of the pre-loading is affected is prevented.
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 third-party H5 page link is loaded in advance, partial resources of the third-party H5 page are loaded through the first resource list which does not include the statistical link, monitoring statistics of the third-party H5 page link by the third party is avoided from being triggered, when a user actually opens the third-party H5 page, the first resource is loaded from the webpage view cache, the filtered resource and the newly added resource are loaded from the third-party server, the resource is loaded from the third-party server, monitoring statistics of the third-party H5 page link by the third party can be triggered, and the opening speed of the third-party H5 page is improved under the condition that the monitoring statistics of the third-party H5 page link are not influenced; and the new resources can be loaded due to the updating of the third party H5 page, the page loading success rate of the third party H5 is improved, and therefore the user experience and the application commercial value 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 flow chart of step S300 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.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features.
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 in an embodiment of the present invention is applied to a client, and includes:
s100, acquiring a first Resource of a third-party H5 page according to a URL (Uniform Resource Locator) of a page link of the third-party H5 in the current page; wherein:
the first resource is a resource of a third-party H5 page loaded according to a first resource list stored in the cloud (the server owned by the application).
The first resource list is a resource list of a third-party H5 page with a statistical link filtered out, and the first resource list is stored in the cloud end and is shared by all the clients; therefore, if the resource list of the third party H5 page contains the statistical link and is not added or modified after being stored in the cloud, the first resource is all the resources of the third party H5 page; otherwise, the first resource is a partial resource of the third party H5 page.
In this embodiment, the manner of acquiring the first resource of the third party H5 page includes:
(1) the method comprises the steps that a first resource is obtained from a cloud, and the cloud loads the first resource according to a first resource list to obtain the first resource;
(2) the method comprises the steps of obtaining a first resource list from a cloud end, loading according to the first resource list to obtain first resources, directly loading the first resources from a third-party server by each client end according to the first resource list, only carrying out once remote transmission on the first resources, respectively transferring loading tasks of the first resources to each pre-loading client end, not concentrating on the cloud end to load the first resources, reducing data processing load of the cloud end, and improving pre-loading reliability and pre-loading efficiency.
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, there may be several third-party H5 page links in the current page, the first resource of each third-party H5 page is sequentially acquired according to the corresponding URL, and in step S200, the URL is used as an index and is all added to the web view cache.
To this end, the third party H5 page has not actually been opened, but is preloaded with the first resource of the third party H5 page and cached in the web view cache.
If all the resources of the third party H5 page are preloaded in step S100, that is, the resources are preloaded according to the resource list of the third party H5 page without filtering out the statistical link, so that the third party H5 page monitoring statistics of the third party is triggered during preloading, and the monitoring statistics result of the preloaded third party H5 page is added 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 results of the third party H5 pages are added by 1, the monitoring statistical results have errors, and the errors tend 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 results of the third party are inaccurate.
In this embodiment, the resource of the third party H5 page is preloaded according to the first resource list with the filtered statistical link, so that the third party H5 page monitoring statistics of the third party is not triggered during preloading, and the third party H5 page monitoring statistics of the third party does not perform statistics on the preloading, so that even if the preloaded third party H5 page is not opened subsequently, the third party H5 page monitoring statistics result of the third party is not affected.
Step S300, according to an opening request of the third party H5 page (the request includes the 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, that is, loading the first resource of the third party H5 page from the web view cache first, and loading other resources that cannot be loaded from the web view cache directly from the server (third party server) of the website where the third party H5 page is located. Wherein the other resources include at least one of:
after the first resource list is stored in the cloud, resources are added or modified due to page updating of a third party H5; and the number of the first and second groups,
since the resource list is filtered out of resources that are not preloaded.
In the prior art, when a web page is opened, a preloaded resource (web view cache) is directly obtained, but after a resource list (in this embodiment, a first resource list) of a third party H5 page is stored in a cloud, the third party H5 page may be updated, and compared with the resource list before updating, the resource list is changed, and a corresponding resource is naturally different from the preloaded resource according to the resource list stored in the cloud, so that all resources required for opening the third party H5 page cannot be loaded only from the web view cache, thereby causing a resource loading failure and failing to open the third party H5 page; in addition, when the third party performs pre-loading, the monitoring statistics of the third party H5 page by the third party is not counted, if the third party receives the opening request of the third party H5 page from the user, the third party only loads the resource from the webpage view cache, the monitoring statistics of the third party H5 page by the third party cannot be triggered, and the third party finally cannot monitor and count the opening of the third party H5 page at this time, so that the monitoring statistics result has errors; in summary, in the embodiments of the present invention, the resources required for opening the third party H5 page are loaded from the web view cache and the third party server, so that the loading success rate of the third party H5 page can be ensured, and the accuracy of the third party for monitoring and counting the third party H5 page is improved, thereby improving the user experience and the application commercial value.
In the embodiment of the invention, before acquiring the first resource 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, the method further includes acquiring the URL corresponding to the third-party H5 page link in the current page of the application. Since the corresponding service acquires the URLs of all the H5 pages in the current application page when the user browses the current application page, to acquire the URLs of the third-party H5 page through the feature, the URLs of the third-party H5 page need to be screened from the URLs of all the 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.
After the first resource of the third party H5 page is added into the webpage view cache, the URL of the third party H5 page is stored into a pre-loading list by taking the URL as an index, so that the third party H5 page which is pre-loaded is recorded.
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 the 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;
if the third-party H5 page does not exist, the corresponding third-party H5 page is not pre-loaded, and the first resource of the third-party H5 page is obtained 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;
s120, screening to obtain the URL of the third-party H5 page according to the locally stored URL list of the page;
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, entering a preloading execution queue of a third party H5 page, wherein the preloading queue only executes one task at a time.
S150, acquiring a first resource of a third party H5 page; the method comprises the following steps:
sending a request for obtaining a first resource list (the request comprises a URL), obtaining a first resource list corresponding to the URL of a third party H5 page, and then downloading a first resource according to the first resource list;
sending a request for acquiring a first resource (the request comprises a URL) to the cloud end, and receiving the first resource from the cloud end; and the cloud end acquires a first resource list corresponding to the URL according to the URL in the first resource acquisition request, downloads the first resource according to the first resource list and returns the first resource.
In step S100 of this embodiment, if the cloud does not store the first resource list corresponding to the URL of the third party H5 page, parsing the first resource list corresponding to the third party H5 page, and storing the first resource list in the cloud includes:
analyzing according to the URL of the third party H5 page to obtain a corresponding resource list;
and filtering out statistical links in the resource list, obtaining a first resource list, and storing the first resource list in the cloud.
In this embodiment, the obtaining of the corresponding resource list according to the URL resolution of the third party H5 page includes two ways:
in the first mode, a URL of a third party H5 page is uploaded to a cloud, the cloud simulates browser behavior according to the URL to acquire a corresponding resource list, and statistical links in the resource list are filtered out to acquire a corresponding first resource list; when the method is used, the cloud end returns the first resource list after the first resource list is stored in the cloud end, or loads the first resource according to the first resource list and then returns the first resource.
In the second mode, the third party H5 page is not pre-loaded temporarily, and when an opening request of a user for the third party H5 page is received, resources required for opening the third party H5 page are loaded from a third party server according to the opening request of the third party H5 page, and a third party H5 page is opened; after the resource loading is finished, acquiring a resource list of a third party H5 page; filtering out statistical links in the resource list to obtain a corresponding first resource list; therefore, only one user opens the third-party H5 page, and when other users open the page again, the page can be pre-loaded, and the monitoring statistics of the third-party H5 page by the third party are not influenced.
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.
In order to avoid that the preloading effect is affected due to the fact that the difference between the new first resource list and the first resource list stored in the cloud is too large after the third party updates the third party H5 list, in this embodiment, the first resource list in the cloud and the first resource in the web view cache are updated each time the third party H5 page is opened, as shown in fig. 3, step S300 of this embodiment includes the following steps:
step S310, receiving an opening request of a third party H5 page of a user;
and step S320, according to the URL of the page of the third-party H5, loading the resources required by the page opening of the third-party H5 from the webpage view cache and the third-party server respectively by the WebView for opening the page of the third-party H5.
S330, after the loading of the resources required by the opening of the third party H5 page is completed, acquiring a resource list of the third party H5 page;
step S340, filtering out statistical links in the resource list to obtain a corresponding first resource list;
step S350, uploading the new first resource list to the cloud, and updating the original first resource list cached by the cloud; and simultaneously loading resources according to the new first 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 may be installed on an intelligent device, may all be deployed on the same intelligent device, and may also 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 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 S300 in fig. 1, method steps S110 to S150 in fig. 2, and method steps S310 to S350 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 S300 in fig. 1, method steps S110 to S150 in fig. 2, and method steps S310 to S350 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 (9)

1. A method for loading a third-party H5 page, comprising:
acquiring a first resource of a third-party H5 page according to a URL corresponding to a third-party H5 page link in an application current page; the first resource is a resource of the third-party H5 page loaded and obtained according to a first resource list stored in the cloud; the first resource list is a resource list of the third party H5 page with the filtered statistical links, and the filtered statistical links specifically include: filtering all uncacheable links in the resource list, wherein the statistical links are uncacheable links;
adding a first resource 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 by the opening of the third-party H5 page from the webpage view cache and a third-party server respectively;
wherein the loading the resource required for opening the page of the third party H5 from the webpage view cache and the third party server respectively comprises:
loading resources required for opening a third party H5 page from the first resources of the webpage view cache;
loading, from the third-party server, resources required to open the third-party H5 page that cannot be loaded from the web view cache;
the obtaining of the first resource of the third-party H5 page includes one of:
sending a first resource request for acquiring the first resource list to the cloud, acquiring the first resource list corresponding to the URL of the third party H5 page, and downloading the first resource according to the first resource list;
sending a first resource request for acquiring the first resource list to the cloud, receiving the first resource from the cloud, acquiring the first resource list corresponding to the URL by the cloud according to the URL in the first resource request, downloading the first resource according to the first resource list, and returning the first resource.
2. The method of claim 1, further comprising, before obtaining the first resource 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 adding the first 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 first resource 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 third party H5 page is not pre-loaded, acquiring a first resource of the third party H5 page according to the URL of the third party H5 page.
5. The method of claim 1, wherein if the cloud does not store the first resource list, parsing to obtain a corresponding first resource list according to the URL of the third party H5 page, and storing the first resource list in the cloud; the analyzing to obtain the corresponding first resource list according to the URL of the third party H5 page includes the following two ways:
uploading the URL of the third party H5 page to a cloud, simulating a browser page opening behavior by the cloud according to the URL, acquiring a corresponding resource list, and filtering out statistical links from the resource list to obtain a corresponding first resource list; or alternatively
And when an opening request of the third party H5 page is received, loading the resources required by the third party H5 page opening from a third party server according to the URL in the opening request, acquiring a resource list of the third party H5 page after the resource loading is finished, and filtering out statistical links from the resource list to obtain a corresponding first resource list.
6. The method of claim 5, wherein the obtaining the first resource of the third party H5 page comprises:
acquiring a first resource from a cloud; the first resource is obtained by loading from the cloud according to a first resource list; or
And loading the first resource according to the first resource list from the cloud.
7. The method according to claim 1, further comprising, after said loading the resources required for the third party H5 page open from the web view cache and the third party server, respectively:
acquiring a resource list of the third party H5 page;
filtering out the obtained statistical links in the resource list to obtain a corresponding first resource list;
uploading the obtained first resource list to a cloud, updating the first resource list of the third-party H5 page stored by the cloud, loading a first resource according to the obtained first resource list, and adding the first resource to the webpage view cache.
8. 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 7 when executing the computer program.
9. A computer-readable storage medium storing computer-executable instructions for performing the method of any one of claims 1 to 7 for loading a third party H5 page.
CN202010582379.7A 2020-06-23 2020-06-23 Method and device for loading third-party H5 page and computer readable storage medium Active CN111753232B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010582379.7A CN111753232B (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
CN202010582379.7A CN111753232B (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
CN111753232A CN111753232A (en) 2020-10-09
CN111753232B true CN111753232B (en) 2022-07-01

Family

ID=72676861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010582379.7A Active CN111753232B (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) CN111753232B (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
CN111753232A (en) 2020-10-09

Similar Documents

Publication Publication Date Title
US10645143B1 (en) Static tracker
US10291738B1 (en) Speculative prefetch of resources across page loads
RU2453911C2 (en) Offline execution of web based applications
KR102151457B1 (en) Method and apparatus for reducing page load time in a communication system
US20120084346A1 (en) Page Loading Optimization Using Page-Maintained Cache
CN109284464B (en) Page loading method and terminal, page response method and server
CN104735112A (en) Resource file sending method and resource file caching method and device
Ma et al. Measurement and analysis of mobile web cache performance
CN107402938B (en) Page display method and device and client equipment
CN110647460B (en) Test resource management method and device and test client
CN108804515B (en) Webpage loading method, webpage loading system and server
CN111046310A (en) Page processing method, device, server and computer readable storage medium
US9503541B2 (en) Fast mobile web applications using cloud caching
WO2020057523A1 (en) Method and device for triggering vulnerability detection
CN112632358A (en) Resource link obtaining method and device, electronic equipment and storage medium
CN111753233B (en) Third-party H5 page loading method and device and computer readable storage medium
CN111753232B (en) Method and device for loading third-party H5 page and computer readable storage medium
CN110941595B (en) File system access method and device
CN109145237A (en) A kind of optimization method of web cache problem
CN105242960B (en) Method for processing system function call request and browser
CN111753231B (en) Method and device for loading third-party H5 page and computer readable storage medium
CN112632440B (en) Static resource generation method for teacher personal homepage based on watermark characteristic rule string
CN107103001B (en) Method, device and system for acquiring target front-end resource file based on browser
CN113760390A (en) Page file loading method, device, equipment and storage medium
CN112861031B (en) URL refreshing method, device and equipment in CDN and CDN node

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