CN111753233A - 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
CN111753233A
CN111753233A CN202010583175.5A CN202010583175A CN111753233A CN 111753233 A CN111753233 A CN 111753233A CN 202010583175 A CN202010583175 A CN 202010583175A CN 111753233 A CN111753233 A CN 111753233A
Authority
CN
China
Prior art keywords
page
party
loading
resource list
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.)
Granted
Application number
CN202010583175.5A
Other languages
Chinese (zh)
Other versions
CN111753233B (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 CN202010583175.5A priority Critical patent/CN111753233B/en
Publication of CN111753233A publication Critical patent/CN111753233A/en
Application granted granted Critical
Publication of CN111753233B publication Critical patent/CN111753233B/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: according to a URL corresponding to a third party H5 page link in the current application page, acquiring a resource list of the third party H5 page from the cloud; wherein the cloud stores resource lists of different third party H5 pages; loading corresponding resources according to the resource list, and adding the resources into a webpage view cache; and loading the resources required by the opening of the third-party H5 page from the webpage view cache according to the opening request of the third-party H5 page. When the pre-loading is carried out, the resources are directly loaded from the third-party server by each client according to the resource list, the resources are only transmitted in a long distance once, the loading tasks are respectively transferred to each pre-loading client, the resources are not concentrated on the cloud loading, the data processing load of the cloud is reduced, and the pre-loading reliability and the pre-loading efficiency are improved.

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 comprise links of H5 pages of other websites besides own page links, H5 pages of other websites are called third-party H5 pages, when the third-party H5 pages are opened, resources are added from servers of the websites, and the servers of the websites are called third-party servers.
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 from a third-party server 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 loading the third-party H5 page in the prior art can improve the loading speed, in the preloading process, the transfer device (if any server) is required to load the resource from the third-party server, and then the resource is issued to the client, not only is the data error rate increased and the preloading efficiency reduced due to multiple remote forwarding and transmission of the resource, but also when multiple clients simultaneously request the preloading of different third-party webpages, the transfer device needs to simultaneously load the resources of multiple different third-party webpages, so that the processing capacity of the transfer device is required to be high, and the input cost of the transfer device is increased.
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 directly load a third-party H5 page resource from a third-party server to a webpage view cache according to a resource list, reduce the data processing load of a cloud end of a transfer device when a plurality of clients simultaneously request different third-party webpages to be loaded in advance, and improve the resource loading efficiency and the resource loading reliability.
According to the first aspect of the invention, a method for loading a third-party H5 page is provided, which comprises the following steps:
according to a URL corresponding to a third party H5 page link in the current application page, acquiring a resource list of the third party H5 page from the cloud; wherein the cloud stores resource lists of different third party H5 pages;
loading corresponding resources according to the resource list, and adding the resources into a webpage view cache;
and loading the resources required by the opening of the third-party H5 page from the webpage view cache according to the opening request of the third-party H5 page.
When the pre-loading is carried out, the resource list is only acquired to the cloud, the resources are directly loaded from the third-party server by each client according to the resource list, the resources are only subjected to one-time remote transmission, the loading tasks are respectively transferred to each pre-loading client, the resources are not concentrated on the cloud loading, the data processing load of the cloud is reduced, and the pre-loading reliability and the pre-loading efficiency are improved.
In a specific embodiment of the present invention, before the obtaining, to the cloud, the resource list of the third party H5 page according to the URL corresponding to the third party H5 page link in the current application page, 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 loading the corresponding resource according to the resource list and adding the resource to the web page view cache, the method further includes storing the URL of the third party H5 page in a pre-loaded 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, from the cloud, the resource list of the third party H5 page according to the URL corresponding to the third party H5 page link in the current application page includes:
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 a resource list 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 resource list of the third party H5 page is not obtained from the cloud, the corresponding resource list is obtained by parsing according to the URL of the third party H5 page, and the resource list is stored in the cloud. The stability of the pre-loading system is improved, and the data volume of the cloud resource list is continuously expanded.
In another specific embodiment of the present invention, the loading, from the web page view cache, the resource required for the third party H5 page opening according to the opening request of the third party H5 page includes:
according to an opening request of a third-party H5 page, preferentially loading resources required for opening the third-party H5 page from the resources cached in 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 according to the opening request of the third-party H5 page.
The situation that all resources required by the page opening of the third-party H5 cannot be loaded from the webpage view cache due to the page updating of the third-party H5 and the like is avoided, so that the page loading of the third-party H5 fails, and the loading success rate of the page of the third-party H5 is effectively improved.
In another specific embodiment of the present invention, the resource list is a resource list of the third party H5 page with the filtered statistical links, and the third party H5 page monitoring statistics is not triggered in the pre-loading stage, so as to ensure the accuracy of the third party H5 page monitoring statistics result.
In another specific embodiment of the present invention, after loading the resources required for the third party H5 page opening from the web page view cache according to the opening request of the third party H5 page, the method further comprises:
acquiring a resource list of the third party H5 page;
filtering out the obtained statistical links in the resource list;
uploading the filtered resource list to a cloud, updating the resource list of the third party H5 page stored in the cloud, loading resources according to the filtered resource list, and adding the resources to the webpage view cache.
Because the page of the third party H5 may be updated, after all resource data of the page of the third party H5 is obtained by loading the web view each time, the corresponding resource list is obtained again, the resource list not including the statistical link is obtained by filtering, and the resource list of the preloaded resources and the cloud of the web view cache is updated, so that the situation that the difference between the actual situations of the resources in the web view cache and the resource list in the cloud and the actual situation of the page of the third party H5 is too large, and the preloading effect 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 pre-loading is carried out, the resource list is only acquired to the cloud, the resources are directly loaded from the third-party server by each client according to the resource list, the resources are only subjected to one-time remote transmission, the transmission error rate is reduced, the loading tasks are also respectively transferred to each pre-loading client, the resources are not concentrated on the cloud loading, the data processing load of the cloud is reduced, the pre-loading reliability and the pre-loading efficiency are 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 flowchart of step S300 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 in an embodiment of the present invention is applied to a client, and includes:
step S100, according to a URL (uniform resource locator) corresponding to a third party H5 page link in the current page of the application, obtaining a resource list of the third party H5 page from a cloud (a server owned by the application and providing resource list sharing service for at least different clients installing the application); the resource lists of different third-party H5 pages in the cloud are stored according to the condition whether the URLs are the same or not, a resource list library of the third-party H5 page is established, as long as the resource list corresponding to the third-party H5 page exists in the cloud, different clients can search the resource list of the third-party H5 page by using the corresponding URL as an index when the third-party H5 page is preloaded, the resource list is obtained by analyzing the third-party server once, and the resource list can be obtained by the different clients from a free server (the cloud) repeatedly and is preloaded, so that the preloading speed is effectively improved.
And S200, loading corresponding resources according to the acquired resource list, adding the resources into a webpage view (WebView) cache, and realizing the pre-loading of the resources 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 resource list of each third party H5 page is sequentially obtained according to the corresponding URL item cloud, and in step S200, corresponding resources are loaded according to the resource list of each third party H5 page, and the resources of each third party H5 page are all added to the web view cache with the URL as an index.
And S300, loading resources required by the opening of the third-party H5 page from the webpage view cache according to the URL in the opening request (including the URL of the third-party H5 page) of the third-party H5 page of the user, and opening the third-party H5 page.
In the embodiment, when the pre-loading is carried out, the resource list is only acquired to the cloud, the resources are directly loaded from the third-party server by each client according to the resource list, the resources are only subjected to one-time remote transmission, the loading tasks are also respectively transferred to each pre-loading client, the resources are not concentrated on the cloud loading resources, the data processing load of the cloud is reduced, and the pre-loading reliability and the pre-loading efficiency are improved.
In the embodiment of the invention, before the resource list of the page of the third party H5 is acquired from the cloud 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 pages of the third party by using the characteristics, the URLs of the H5 pages 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 corresponding resources are loaded according to the resource list and added into the webpage view cache, the URL of the third party H5 page is stored into the pre-loading list by taking the URL as an index, so as to record the third party H5 page which is pre-loaded.
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 a current page of an application, determining whether the third party H5 page corresponding to the obtained URL has been preloaded according to a preloading list includes:
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 a resource list corresponding to the third-party H5 page is acquired 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;
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, 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 a resource list corresponding to the third party H5 page from the cloud according to the URL.
In this embodiment, in order to improve the success rate of loading the page of the third party H5, when the resource list of the page of the third party H5 is obtained from the cloud, if the corresponding resource list is not obtained from the cloud (the URL of the page of the third party H5 is used as an index to search the corresponding resource list in the cloud, and if the resource list corresponding to the same URL is not found, it is indicated that the resource list corresponding to the page of the third party H5 is not stored in the cloud), the corresponding resource list is obtained by parsing according to the URL of the page of the third party H5, and the resource list is stored in the cloud by using the corresponding URL as an index. In the embodiment of the present invention, the analyzing to obtain the corresponding resource list according to the URL of the third party H5 page includes the following two ways:
in the first mode, a URL of a third party H5 page is uploaded to a cloud, and the cloud simulates a browser page opening behavior according to the URL to acquire a corresponding resource list; when the method is used, the cloud end can return the resource list after the resource list is stored in the cloud end.
In the second mode, the third party H5 page is not preloaded temporarily, when an opening request of the user for the third party H5 page is received, the resource required for opening the third party H5 page is loaded from the third party server according to the URL in the opening request of the third party H5 page, the third party H5 page is opened, and after the resource loading is finished, the resource list of the third party H5 page is obtained, so that as long as one user opens the third party H5 page, when other users open again, the preloading can be performed, and the monitoring statistics of the third party H5 page by the third party is not affected.
Because the third party H5 page is updated and the third party does not notify the application embedded in the third party H5 page when updating the third party H5 page, the corresponding resource list stored in the cloud is not updated in real time with the update of the third party H5 page, if the resource list after updating the third party H5 page is greatly different from the resource list stored in the cloud, all the resources required for opening the third party H5 page may not be loaded from the web view cache, because the resources corresponding to the third party page in the web view cache are loaded according to the resource list stored in the cloud, the loading of the third party H5 page is finally failed, and in order to avoid the above situation, the loading success rate of the third party H5 page is increased when pre-loading, in an embodiment of the present invention, the step S300 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.
Although only part of resources required for opening the third-party H5 page can be loaded from the webpage view cache due to the update of the third-party H5 page by the third party, other resources required for opening the third-party H5 page are loaded from a third-party server corresponding to the third-party H5 page, so that the effect of pre-loading is ensured, and the success rate of pre-loading can be effectively improved.
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 preloading, the monitoring statistics on the third party H5 page of the third party is triggered, and the monitoring statistics results on the pre-loaded third party H5 page are added with 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. Therefore, in order to not trigger the third party to monitor and count the third party H5 page in the pre-loading stage and ensure the accuracy of the third party to monitor and count the third party H5 page, in another embodiment of the present invention, the resource list is a resource list with statistical links filtered out. Accordingly, in step S300, the other resources required for opening the third party H5 page loaded from the third party server include at least one of:
after the resource list is stored in the cloud, resources are added or modified due to the updating of a third party H5 page; and the number of the first and second groups,
because the resource list is filtered to remove the resource which is not preloaded, the loading of the part of 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.
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 after the third party updates the third party H5 list, the new resource list is too different from the resource list stored in the cloud, the workload is huge and the implementation steps are complicated, and the resource lists of all the third party H5 planes stored in the cloud are monitored in real time, so that the resource list is obtained by analyzing each time the third party H5 page is opened in the embodiment, and the resource list in the cloud and the resources in the webpage view cache are updated, as shown in fig. 3, step S300 in the embodiment includes the following steps:
step S310, receiving an opening request of a third party H5 page of a user;
step S320, according to the URL of the third party H5 page, the WebView starts to load the resources required by the third party H5 page opening from the webpage view cache and the third party server respectively for opening the third party H5 page;
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;
step S350, uploading the filtered resource list to a 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 S300 in fig. 1, method steps S110 to S150 in fig. 2, and method steps S310 to S340 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 S340 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 of ordinary skill 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 (10)

1. A method for loading a third-party H5 page, comprising:
according to a URL corresponding to a third party H5 page link in the current application page, acquiring a resource list of the third party H5 page from the cloud; wherein the cloud stores resource lists of different third party H5 pages;
loading corresponding resources according to the resource list, and adding the resources into a webpage view cache;
and loading the resources required by the opening of the third-party H5 page from the webpage view cache according to the opening request of the third-party H5 page.
2. The method of claim 1, further comprising, before the obtaining the resource list of the third-party H5 page from the cloud according to the URL corresponding to the third-party H5 page link in the current page of the application, the method further comprising:
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 storing the URL of the third party H5 page in a pre-loaded list after loading the corresponding resource according to the resource list and adding the resource to the web page view cache.
4. The method of claim 3, wherein obtaining the resource list of the third-party H5 page from the cloud 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 a resource list 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 resource list of the third party H5 page is not obtained to the cloud, the resource list is parsed according to the URL of the third party H5 page, and the resource list is stored to the cloud.
6. The method of any one of claims 1 to 5, wherein the loading, from the webpage view cache, the resources required for the third party H5 page opening according to the opening request of the third party H5 page comprises:
according to an opening request of a third-party H5 page, preferentially loading resources required for opening the third-party H5 page from the resources cached in 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 according to the opening request of the third-party H5 page.
7. The method of claim 6, wherein the resource list is a resource list of the third party H5 page with the filtered statistical links.
8. The method of claim 7, further comprising, after loading the resources required for the third party H5 page opening from the web page view cache in accordance with an open request of a third party H5 page:
acquiring a resource list of the third party H5 page;
filtering out the obtained statistical links in the resource list;
uploading the filtered resource list to a cloud, updating the resource list of the third party H5 page stored in the cloud, loading resources according to the filtered resource list, and adding the resources to the webpage view cache.
9. 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 8 when executing the program.
10. Computer-readable storage media storing computer-executable instructions for performing the method of any one of claims 1 to 8 for loading a third-party H5 page.
CN202010583175.5A 2020-06-23 2020-06-23 Third-party H5 page loading method and device and computer readable storage medium Active CN111753233B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010583175.5A CN111753233B (en) 2020-06-23 2020-06-23 Third-party H5 page loading method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010583175.5A CN111753233B (en) 2020-06-23 2020-06-23 Third-party H5 page loading method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111753233A true CN111753233A (en) 2020-10-09
CN111753233B CN111753233B (en) 2022-06-28

Family

ID=72676893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010583175.5A Active CN111753233B (en) 2020-06-23 2020-06-23 Third-party H5 page loading method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111753233B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114816639A (en) * 2022-04-24 2022-07-29 招银云创信息技术有限公司 Page display method, device, equipment, storage medium and program product

Citations (5)

* 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
US20150121198A1 (en) * 2013-10-31 2015-04-30 Google Inc. Style sheet speculative preloading
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
US20190373043A1 (en) * 2018-06-04 2019-12-05 Instart Logic, Inc. Third-party ad acceleration

Patent Citations (5)

* 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
US20150121198A1 (en) * 2013-10-31 2015-04-30 Google Inc. Style sheet speculative preloading
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
US20190373043A1 (en) * 2018-06-04 2019-12-05 Instart Logic, Inc. Third-party ad acceleration

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114816639A (en) * 2022-04-24 2022-07-29 招银云创信息技术有限公司 Page display method, device, equipment, storage medium and program product

Also Published As

Publication number Publication date
CN111753233B (en) 2022-06-28

Similar Documents

Publication Publication Date Title
US10645143B1 (en) Static tracker
US10291738B1 (en) Speculative prefetch of resources across page loads
US7814234B2 (en) Offline execution of web based applications
US9064029B2 (en) Dynamically identifying and evaluating component hierarchy for rendering content components on a webpage
US20120084346A1 (en) Page Loading Optimization Using Page-Maintained Cache
CN102446222A (en) Method, device and system of webpage content preloading
US9503541B2 (en) Fast mobile web applications using cloud caching
CN110647460B (en) Test resource management method and device and test client
US10963324B2 (en) Predictive microservice systems and methods
CN108804515B (en) Webpage loading method, webpage loading system and server
CN109634753B (en) Data processing method, device, terminal and storage medium for switching browser kernels
CN112632358A (en) Resource link obtaining method and device, electronic equipment and storage medium
WO2020057523A1 (en) Method and device for triggering vulnerability detection
CN111782692A (en) Frequency control method and device
CN112637361A (en) Page proxy method, device, electronic equipment and storage medium
CN109213824B (en) Data capture system, method and device
CN111753233B (en) Third-party H5 page loading method and device and computer readable storage medium
US20150205675A1 (en) Method and System for Improving Reliability of a Background Page
CN110300140B (en) Method for updating content in cloud distribution network, refreshing client and network node
CN111753231B (en) Method and device for loading third-party H5 page and computer readable storage medium
CN111753232B (en) Method and device for loading third-party H5 page and computer readable storage medium
US10567469B1 (en) Embedding hypermedia resources in data interchange format documents
US10536390B1 (en) Requesting embedded hypermedia resources in data interchange format documents
CN107103001B (en) Method, device and system for acquiring target front-end resource file based on browser
CN113138943B (en) Method and device for processing request

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