CN111753233B - Third-party H5 page loading method and device and computer readable storage medium - Google Patents
Third-party H5 page loading method and device and computer readable storage medium Download PDFInfo
- Publication number
- CN111753233B CN111753233B CN202010583175.5A CN202010583175A CN111753233B CN 111753233 B CN111753233 B CN 111753233B CN 202010583175 A CN202010583175 A CN 202010583175A CN 111753233 B CN111753233 B CN 111753233B
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a 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; the cloud stores resource lists of different third-party H5 pages; loading corresponding resources according to the resource list, and adding the resources to a webpage view cache; and loading the resources required by the page opening of the third-party H5 from the webpage view cache according to the opening request of the page of the third-party H5. 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
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 need to be added from a server of the website, and the server of the website is called a third-party server.
When browsing application pages, a user often accesses a link of a third-party H5 page embedded in the current page and enters an H5 webpage of the third party; however, because 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.
For 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 own server;
analyzing a resource acquisition record of a third-party browser, acquiring and storing a resource list of a third-party page;
According to the resource list, loading the resource corresponding to the third-party page from a third-party server, and sending 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, 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; the cloud stores resource lists of different third-party H5 pages;
loading corresponding resources according to the resource list, and adding the resources to a webpage view cache;
and loading the resources required by the page opening of the third-party H5 from the webpage view cache according to the opening request of the page of the third-party H5.
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 opening of the third-party H5 page cannot be loaded from the webpage view cache due to the situation that the third-party H5 page is updated and the like is avoided, so that the loading failure of the third-party H5 page is caused, and the loading success rate of the third-party H5 page 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 by the cloud, loading resources according to the filtered resource list, and adding the resources 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 resource list without the statistical link is obtained by filtering, and the resource list of the pre-loaded resource and the resource list of the cloud in the web view cache are updated, so that the condition that the difference between the actual conditions of the resource in the web view cache and the resource list in the cloud and the actual conditions of the third party H5 page is too large, and the pre-loading effect is not affected.
According to the 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 in the memory and executable on the processor, wherein the processor executes the program to implement the method for loading the page of the third party H5 according to any embodiment of the first aspect of the present invention.
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 third party H5 page loading 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 lists can be obtained by the different clients from a free server (the cloud) repeatedly and are preloaded, so that the preloading speed is effectively improved.
And step S200, loading corresponding resources according to the acquired resource list, adding the resources into a webpage view (WebView) cache, and realizing the preloading of the resources required by the opening of the page 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 entry cloud, in step S200, corresponding resources are loaded according to the resource list of each third-party H5 page, and the URL is used as an index to completely add the resources of each third-party H5 page to the web view cache.
Step S300, loading resources required by the page opening of the third-party H5 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 page of the third-party H5.
In the embodiment, when the pre-loading is carried out, only the resource list is obtained from 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 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.
To sum up, the obtaining of the URL corresponding to the page link of the third party H5 in the current page in the embodiment 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 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 obtained 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 resource list does not exist, the corresponding third-party H5 page is not preloaded, and the resource list corresponding to the third-party H5 page is 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 the preloaded list stored locally, if the corresponding URL exists in the preloaded list, judging the preloading of another third-party H5 page until the preloading judgment of all 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.
And step 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 parsing 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 a 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 resources required by the third party H5 page opening are 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, other users can preload the page without affecting the monitoring statistics of the third party H5 page by the third party.
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 updated by the third party H5 page is different from the resource list stored in the cloud, all 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 obtained by loading according to the resource list stored in the cloud, and finally the third party H5 page fails to be loaded, 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 resources of the third party H5 page according to the resource list from the cloud, when the third party H5 page is preloaded, the monitoring statistics of the third party H5 page of the third party can be triggered, 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. 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, which are loaded from the third party server, include at least one of the following:
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 (c) a second step of,
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 of the third-party H5 page.
According to the method, the statistical links in the resource list are filtered by using a standard device control scheme in an HTTP protocol, all non-cacheable links in the resource list are filtered, in a webpage request, a server returns whether the link allows caching or not to each link, the statistical links are non-cacheable links, so that the statistical links can be filtered by filtering the non-cacheable links, and the filtered non-cacheable links are still loaded from a third-party server when the webpage is opened, so that the pre-loading of the third-party H5 page does not influence the statistics of the webpage opening times by the third party.
In order to avoid that the preloading effect is affected due to the fact that the difference between the new resource list and the resource list stored in the cloud is too large after the third party updates the third party H5 list, the workload is huge and the implementation steps are complicated due to the fact that the resource lists of all third party H5 planes stored in the cloud are monitored in real time, so that the resource list is obtained by analyzing every 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 of 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;
step S330, after the loading of the resources required by the page opening of the third party H5 is completed, acquiring a resource list of the page of the third party H5;
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 (8)
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; 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, wherein the resource list is a resource list of the third party H5 page with filtered statistical links, and the filtering statistical links specifically include: filtering out all non-cacheable links in the resource list, wherein the statistical links are non-cacheable links;
loading 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;
the loading the resources required by the third-party H5 page opening from the webpage view cache according to the opening request of the third-party H5 page comprises the following steps:
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 a third-party server 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, parsing the resource list according to the URL of the third party H5 page to obtain the corresponding resource list, and storing the resource list to the cloud.
6. The method of claim 1, 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.
7. 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 6 when executing the computer program.
8. A computer-readable storage medium storing computer-executable instructions for performing the method of any one of claims 1 to 6 for third party H5 page loading.
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 CN111753233A (en) | 2020-10-09 |
CN111753233B true 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) |
Families Citing this family (1)
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 (3)
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)
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 |
-
2020
- 2020-06-23 CN CN202010583175.5A patent/CN111753233B/en active Active
Patent Citations (3)
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 |
---|---|
CN111753233A (en) | 2020-10-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10645143B1 (en) | Static tracker | |
US10291738B1 (en) | Speculative prefetch of resources across page loads | |
US10261938B1 (en) | Content preloading using predictive models | |
US20120084346A1 (en) | Page Loading Optimization Using Page-Maintained Cache | |
US20080104195A1 (en) | Offline execution of web based applications | |
CN107402938B (en) | Page display method and device and client equipment | |
CN105095280A (en) | Caching method and apparatus for browser | |
CN104735112A (en) | Resource file sending method and resource file caching method and device | |
US11330075B2 (en) | One-time cache | |
US9503541B2 (en) | Fast mobile web applications using cloud caching | |
CN103152367A (en) | Cache dynamic maintenance updating method and system | |
CN112632358B (en) | Resource link obtaining method and device, electronic equipment and storage medium | |
CN112637361B (en) | Page proxy method, device, electronic equipment and storage medium | |
CN110647460B (en) | Test resource management method and device and test client | |
WO2020057523A1 (en) | Method and device for triggering vulnerability detection | |
CN111753233B (en) | Third-party H5 page loading method and device and computer readable storage medium | |
CN110311975B (en) | Data request processing method and device | |
CN113535199A (en) | WebApp-based website updating method, system and storage medium | |
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 | |
CN110825603A (en) | Page first loading time determining method and device, electronic equipment and storage medium | |
CN113127788B (en) | Page processing method, object processing method, device and equipment | |
US20170048344A1 (en) | Webpage Loading Method and Apparatus | |
US10599740B1 (en) | Program code streaming | |
CN110958160B (en) | Website detection method, device and system and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |