Page loading method and device, equipment and medium
By preloading the resources of the third-party landing page to the browser memory cache when the application starts, the problem of the long loading time of the third-party landing page is solved, and faster loading speed and better user experience are achieved.
Patent Information
- Application Number
- CN202510221277.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-26
- Publication Date
- 2025-05-30
AI Technical Summary
The page loading time of third-party landing pages is longer, resulting in poor user loading experience.
When the target application is started, the resources of the third-party landing page are preloaded into the browser's memory cache. When the landing page is loaded, the preloaded resources are directly read from the memory cache for loading.
By preloading resources into the memory cache, the loading time of third-party landing pages is significantly shortened, the user's loading experience is improved, and the display rate of landing pages is increased.
Smart Images

Figure CN120066655A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular, to a page loading method, apparatus, device, and medium. Background Art
[0002] A landing page is a method of presenting information in the form of a web page. For example, an advertising landing page has capabilities such as rich content display, information reporting, real-time billing, and traffic diversion. For the third-party landing page of an application, due to uneven implementation quality, the page loading duration may be relatively long, resulting in a poor user loading experience and the need for improvement. Summary of the Invention
[0003] To solve the above technical problems, the present disclosure provides a page loading method, apparatus, device, and medium.
[0004] An embodiment of the present disclosure provides a page loading method, the method including:
[0005] In response to the startup of a target application, preloading resources of a target landing page into the memory cache of a target browser, where the target landing page is a third-party landing page;
[0006] In response to a loading trigger operation for the target landing page, reading the preloading resources of the target landing page from the memory cache through the target browser, and loading the target landing page based on the preloading resources of the target landing page.
[0007] An embodiment of the present disclosure further provides a page loading apparatus, the apparatus including:
[0008] A preloading module, configured to preload preloading resources of a target landing page into the memory cache of a target browser in response to the startup of a target application, where the target landing page is a third-party landing page;
[0009] A loading module, configured to read the preloading resources of the target landing page from the memory cache through the target browser in response to a loading trigger operation for the target landing page, and load the target landing page based on the preloading resources of the target landing page.
[0010] An embodiment of the present disclosure further provides an electronic device, the electronic device including: a processor; a memory for storing executable instructions of the processor; the processor, configured to read the executable instructions from the memory and execute the executable instructions to implement the page loading method provided by the embodiment of the present disclosure.
[0011] An embodiment of the present disclosure also provides a computer-readable storage medium storing a computer program for executing the page loading method provided by the embodiment of the present disclosure.
[0012] The technical solution provided by the embodiment of the present disclosure has the following advantages compared with the prior art: In the page loading solution provided by the embodiment of the present disclosure, in response to the startup of a target application program, preloading resources of a target landing page are preloaded into the memory cache of a target browser, where the target landing page is a third-party landing page; in response to a loading trigger operation for the target landing page, the target browser reads the preloading resources of the target landing page from the memory cache and loads the target landing page based on the preloading resources of the target landing page. By adopting the above technical solution, when the application program starts, the preloading resources of the third-party landing page are preloaded into the memory cache of the browser. When the third-party landing page is loaded, the preloading resources can be directly read from the memory cache of the browser for fast loading, greatly shortening the loading duration of the third-party landing page, and no adjustment needs to be made to the third-party landing page, thereby increasing the display rate of the third-party landing page and giving users a better loading experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In combination with the accompanying drawings and with reference to the following specific embodiments, the above and other features, advantages and aspects of the various embodiments of the present disclosure will become more apparent. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the original elements and elements are not necessarily drawn to scale.
[0014] Figure 1 It is a schematic flowchart of a page loading method provided by an embodiment of the present disclosure;
[0015] Figure 2 It is a schematic flowchart of another page loading method provided by an embodiment of the present disclosure;
[0016] Figure 3 It is a schematic diagram of a page loading process provided by an embodiment of the present disclosure;
[0017] Figure 4 It is a schematic diagram of another page loading process provided by an embodiment of the present disclosure;
[0018] Figure 5 It is a schematic structural diagram of a page loading device provided by an embodiment of the present disclosure;
[0019] Figure 6 It is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0020] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not used to limit the protection scope of the present disclosure.
[0021] It should be understood that the various steps recited in the method embodiments of the present disclosure can be executed in a different order and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this regard.
[0022] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0023] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0024] It should be noted that the modifications of "one" and "plural" mentioned in the present disclosure are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise clearly specified in the context, it should be understood as "one or more".
[0025] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.
[0026] To solve the problem of too long loading time of the third-party landing page in the related art, embodiments of the present disclosure provide a page loading method, which will be introduced below in combination with specific embodiments.
[0027] Figure 1 It is a schematic flowchart of a page loading method provided by an embodiment of the present disclosure. This method can be executed by a page loading device, where the device can be implemented by software and / or hardware and is generally integrated in an electronic device. As Figure 1 shown, this method includes:
[0028] Step 101: In response to the startup of the target application, preload the preloading resources of the target landing page into the memory cache of the target browser, where the target landing page is a third-party landing page.
[0029] Among them, the target application can be any application that needs to optimize the loading duration of its third-party landing page, and the specific type and quantity are not limited. For example, the target application can be a short video application, a live broadcast application, a reading application, etc. A landing page is a method of presenting information in the form of a web page, aiming to guide visitors to complete specific actions, such as browsing information, filling out forms, downloading applications, and registering for services. When a user clicks on a preset landing page entry, they can directly jump to this page. The preset landing page entry can be an advertisement, a search result, a link, etc. The landing page has high pertinence and guidance. The target landing page in the embodiments of the present disclosure can be a third-party landing page, which refers to a landing page made and implemented by a third party and does not belong to the target application. The resources of the third-party landing page need to be obtained from an external server.
[0030] The preloading resources can be the resources that can be pre-downloaded and cached among all the resources of a landing page. The preloading resources can include static resources, resources with a relatively long cache timeliness, and resources without anti-cache settings. In the embodiments of the present disclosure, the preloading resources can include at least one of the following: images, font format template files, script files, etc. The script files can include cross-domain script files, and the cross-domain script files are only downloaded without execution by modifying the reference method, avoiding the premature issuance of some logics of the landing page, such as statistics and network requests.
[0031] Specifically, the user can trigger the startup of the target application. In response to the startup of the target application, the page loading device can generate a browser for the target landing page in advance and write the preloading resources of the target landing page into the memory cache of the target browser. Here, preloading means loading in advance before the startup of the target landing page. By reusing the memory cache of the browser, the subsequent loading speed of the landing page can be improved.
[0032] Exemplarily, Figure 2 is a schematic flowchart of another page loading method provided by the embodiments of the present disclosure. As Figure 2 shown, preloading the preloading resources of the target landing page into the memory cache of the target browser can include the following steps:
[0033] Step 201: Generate a target browser for the target landing page in the target application and obtain the preloading resources of the target landing page.
[0034] Among them, the target browser can be an in - browser of the target application or a browser instance. Different landing pages generate corresponding in - browsers to load the landing pages.
[0035] Specifically, after the target application is started, the page loading device can first generate a target browser corresponding to the target landing page in the target application. If the target browser has been generated, it can obtain the target browser; and obtain the pre - loaded resources of the target landing page in advance according to the page address of the target landing page, which can be obtained specifically from the local storage space or the server of the target landing page.
[0036] In some embodiments, obtaining the pre - loaded resources of the target landing page may include: determining whether the pre - loaded resources of the target landing page exist in the local storage space. If so, obtain the pre - loaded resources of the target landing page from the local storage space; otherwise, obtain the pre - loaded resources of the target landing page from the target server corresponding to the target landing page.
[0037] Among them, the local storage space can be the disk of the electronic device where the target application is located. When the page loading device obtains the pre - loaded resources of the target landing page, it can first read in the local storage space. If the pre - loaded resources of the target landing page exist in the local storage space, the pre - loaded resources are obtained from the local storage space; if the pre - loaded resources of the target landing page do not exist in the local storage space, the corresponding pre - loaded resources can be obtained from the target server corresponding to the target landing page through a network request. The target server can be the resource storage server of the target landing page. By first downloading the resources to the local and then obtaining them from the network when they are not available locally, this method can further improve the resource loading speed.
[0038] Optionally, obtaining the pre - loaded resources of the target landing page from the target server corresponding to the target landing page includes: sending a resource acquisition request to the target server corresponding to the target landing page based on the resource address of the pre - loaded resources to obtain the pre - loaded resources, where the resource address of the pre - loaded resources is obtained by performing early domain name resolution when the information page with the page entry of the target landing page is displayed.
[0039] The resource address of the preloaded resource can be a unique identifier for identifying and locating network resources. The page entry of the target landing page can be an entry control that can quickly enter the target landing page. The information page can include one or more such entry controls to be able to jump to the target landing page when triggered by the user. Domain name resolution, also known as DNS (Domain Name System) resolution, can be the process of mapping to the corresponding IP (Internet Protocol Address) address through the DNS protocol when accessing a certain domain name. Specifically, when the page loading device obtains the preloaded resources of the target landing page from the target server corresponding to the target landing page, it can obtain the pre-resolved resource address of the preloaded resource, and send a resource acquisition request to the target server of the target landing page based on this resource address to obtain the preloaded resource. In addition, the page loading device can, in response to the display of the information page with the page entry of the target landing page, perform domain name resolution on the domain name of the preloaded resource of the target landing page in the information page to obtain the resource address, and store the resource address in the local storage space to directly obtain the preloaded resource through this resource address when obtaining the preloaded resource subsequently.
[0040] In the related art, there is a significant delay in loading the resources of the landing page due to domain name resolution. For a website with many third-party landing pages, this delay may greatly reduce the loading performance.
[0041] In the above solution, by pre-resolving the domain names of the preloaded resources of the third-party landing pages in advance, it is possible to quickly obtain the resources when acquiring the resources, greatly reducing the domain name resolution time, further shortening the page loading time, and improving the page loading speed.
[0042] Step 202: Write the preloaded resources of the target landing page into the memory cache of the target browser through the target browser.
[0043] Specifically, after the page loading device obtains the preloaded resources of the target landing page, it can write the preloaded resources of the target landing page into the memory cache of the target browser through the target browser. By reusing the memory cache of the browser, the loading speed of subsequent landing pages can be improved.
[0044] In some embodiments, writing the preloaded resources of the target landing page into the memory cache of the target browser through the target browser includes: obtaining the web directory file of the target landing page through the target browser; triggering the writing of multiple preloaded resources corresponding to the preloading tag into the memory cache of the target browser based on the preloading tag in the web directory file.
[0045] Among them, the web page directory file can be a directory including one or more preloaded resources and a file with preloading tags preset for each preloaded resource. The web page directory file can be a HyperText Markup Language 5 (HTML5) file. The preloading tag is used to provide a way for the browser to write resources into the memory cache of the browser. For an electronic device with an operating system where the browser engine does not provide a way to write into the browser memory cache, resources can be written into the browser memory cache through this method. Specifically, the page loading device can obtain the corresponding web page directory file from the local storage space or the target server based on the page address of the target landing page through the target browser, and trigger the writing of multiple preloaded resources corresponding to the preloading tags in the web page directory file into the memory cache of the target browser for subsequent use.
[0046] In the above solution, since the memory cache is the fastest channel to obtain resources, reusing the memory cache of the browser can effectively improve the loading speed of subsequent landing pages.
[0047] Step 102: In response to the loading trigger operation for the target landing page, read the preloaded resources of the target landing page from the memory cache through the target browser, and load the target landing page based on the preloaded resources of the target landing page.
[0048] Among them, the loading trigger operation can be a trigger operation for loading and displaying the target landing page, specifically, gesture control operations such as clicking, long pressing, and double clicking on the page entry of the target landing page in the information page. The embodiments of the present disclosure do not limit this.
[0049] In the embodiments of the present disclosure, after the page loading device receives the loading trigger operation of the user for the target landing page, it can intercept the resource acquisition request when the target browser sends the resource acquisition request based on the page address of the target landing page that has been generated, and read the preloaded resources of the target landing page from the memory cache, that is, redirect to the page address of the target landing page using the same target browser, and the resource request can hit the memory cache of the target browser; then load the target landing page based on the preloaded resources of the target landing page. In addition, if the preloaded resources of the target landing page do not exist in the memory cache of the target browser, they can be obtained from the local storage space. If they do not exist in the local storage space, they can be obtained from the target server of the target landing page. If there are other resources for the target landing page in addition to the preloaded resources, the other resources can be obtained from the target server of the target landing page, and the target landing page is loaded based on the preloaded resources and the other resources. The loading process can be to parse the resources and render the target landing page, and display the target landing page to the user.
[0050] The page loading solution provided by the embodiments of the present disclosure preloads the preloading resources of the target landing page into the memory cache of the target browser in response to the startup of the target application, where the target landing page is a third-party landing page; in response to a loading trigger operation for the target landing page, the target browser reads the preloading resources of the target landing page from the memory cache and loads the target landing page based on the preloading resources of the target landing page. By adopting the above technical solution, when the application starts, the preloading resources of the third-party landing page are preloaded into the memory cache of the browser. When the third-party landing page is loaded, the preloading resources can be directly read from the memory cache of the browser for fast loading, greatly shortening the loading duration of the third-party landing page, and no adjustment is required for the third-party landing page, thereby increasing the display rate of the third-party landing page and giving users a better loading experience effect.
[0051] In some embodiments, the number of target landing pages is multiple, and the page loading method may further include: downloading the preloading resource packages of each target landing page to the local storage space in order from high to low according to the pre-download priority of the multiple target landing pages, where the pre-download priority is determined based on the access quantity and / or the preloading success rate.
[0052] The pre-download priority may be the priority at the time of pre-download set for the target landing page. The higher the priority, the more preferentially it is downloaded. The pre-download priorities of different target landing pages can be determined based on the access quantity and / or the preloading success rate. The access quantity may be the historical access times of the target landing page, and the access quantity is proportional to the pre-download priority. The larger the access quantity, the higher the pre-download priority; the preloading success rate may be the ratio of the number of times the target landing page is successfully loaded according to the preloading method of the above embodiments to the total number of times, and the preloading success rate is proportional to the pre-download priority. The higher the preloading success rate, the higher the pre-download priority; when determining the preloading priority based on the access quantity and the preloading success rate, the weights of the access quantity and the preloading success rate can be set for weighted determination. The preloading resource package may include the web directory file of a target landing page and the files of the preloading resources.
[0053] Specifically, before step 101 above, the page loading device may sort the multiple target landing pages of the target application in order from high to low according to the pre-download priority, and download the preloading resource packages of each target landing page to the local storage space in sequence according to the sorting result for subsequent use.
[0054] In the above solution, when the number of third-party landing pages is large, when preloading resource packages of third-party landing pages in advance, they can be downloaded in descending order according to the preset pre-download priority. The download order is optimized to ensure that third-party landing pages with high traffic and high preloading success rate can be processed first. Even when it is impossible to download all preloading resource packages of third-party landing pages in time due to a large number, some third-party landing pages with high priority can still be downloaded.
[0055] Next, a specific example is used to further illustrate the page loading method provided by the embodiments of the present disclosure. Exemplarily, Figure 3 FIG. is a schematic diagram of a page loading process provided by an embodiment of the present disclosure. As Figure 3 shown, the page loading process may include a preloading stage and a loading stage. The preloading stage may include: downloading a preloading resource package and storing it in the local storage space; generating an embedded browser instance in advance and obtaining the generated browser instance; obtaining preloading resources in advance and retrieving them from the local storage space; writing the preloading resources into the browser memory cache; if there are no resources in the local storage space, initiating a network request to obtain resources from the server of the third-party landing page. The loading stage may include: the user clicks to open the third-party landing page; the browser is initialized and the browser instance is reused; the browser loads the page address of the third-party landing page; the browser loads resources; intercepting the browser request to make it read the browser memory cache; if there are no resources in the memory cache, then reading the local storage space; if there are no resources in the local storage space, initiating a network request to obtain resources from the server of the third-party landing page; the browser loading ends.
[0056] Exemplarily, Figure 4 FIG. is another schematic diagram of a page loading process provided by an embodiment of the present disclosure. As Figure 4 shown, the figure shows the download process of preloading resources of the third-party landing page in the interaction form of different terminals, which may include the offline link and the online link in the figure. The offline link means pre-storing the preloading resources of the third-party landing page in the server cache in advance, including timed triggering, scraping start, and cache writing. Through timed triggering of the offline task, the resource scraping server scrapes the preloading resource package from the database of the server of the third-party landing page and writes it into the server cache; the online link means downloading preloading resources based on the page address of the third-party landing page when the target application starts. The specific process includes: the resource packaging server requests the resource download platform with the page address of the third-party landing page. The resource download platform compresses the address length and reads the preloading resources from the server cache. If a hit occurs, it sends the preloading resource name to the resource download platform. The resource download platform sends the preloading resource name to the resource packaging server. The resource packaging server returns the preloading resources to the target application, and then executes Figure 3The target application server in the figure may include the resource packaging server, resource download platform, server cache, and resource fetching server in the figure, which can realize the download of preloaded resources of the third-party landing page through interaction.
[0057] Exemplarily, taking the third-party landing page as the advertising landing page, the resource crawling server crawls and analyzes the entire advertising link in the advertising landing page, selects the advertising landing page with the highest preloading priority and adds it to the preloading candidate set. After the offline crawling server completes the page analysis and uploads the preloaded resource package, it stores the resource address of the preloaded resource in the server cache; in the delivery link, the resource download platform attempts to read the preloaded resource package from the server cache, and if it hits, it sends the preloaded resource package; when the number of advertising landing pages is large, the resource crawling server often cannot analyze and crawl all the landing pages in time, so the crawling logic has also been optimized for multiple rounds, and the crawling priority (that is, the preloading priority) is set or adjusted according to the number of visits, preloading success rate, etc., to ensure that third-party landing pages with high number of visits and high preloading success rate can be downloaded first.
[0058] Optionally, when downloading the preloaded resource package of the third-party landing page, you can first download it to the cloud storage platform, and then download the preloaded resources from the cloud storage platform. For example, if the preloaded resource package of the third-party landing page is requested 10 times by 10 users, it is only downloaded once from the server of the third-party landing page to the cloud storage platform, and then downloaded from the cloud storage platform for the next 9 times. The above method can reduce the access pressure brought to the server of the third-party landing page by downloading the preloaded resources in advance, and at the same time improve the reading speed of the preloaded resources.
[0059] This solution can optimize resource pre-loading for third-party landing pages. There is no need to modify the third-party landing pages, and it will not put pressure on the server of the resources of the third-party landing pages. The resources will hit the fastest browser's memory cache as much as possible, shortening the page loading time to increase the page display rate, and significantly reducing the white screen display time of the first screen of the third-party landing page, so as to reduce the user churn rate of the third-party landing page, provide users with a better loading experience, and thereby improve the conversion rate of the page. For example, for advertising landing pages, the page loading time can be greatly reduced, and the page loading success rate can be improved, indirectly increasing the user's willingness to actually perform conversion operations.
[0060] Figure 5 This is a schematic diagram of the structure of a page loading device provided by an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can generally be integrated into an electronic device. Figure 5 As shown, the device comprises:
[0061] A preloading module 501, configured to preload preloading resources of a target landing page into a memory cache of a target browser in response to the startup of a target application, where the target landing page is a third-party landing page;
[0062] A loading module 502, configured to read the preloading resources of the target landing page from the memory cache through the target browser in response to a loading trigger operation on the target landing page, and load the target landing page based on the preloading resources of the target landing page.
[0063] Optionally, the preloading module 501 includes:
[0064] A first unit, configured to generate a target browser for the target landing page in the target application and obtain the preloading resources of the target landing page;
[0065] A second unit, configured to write the preloading resources of the target landing page into the memory cache of the target browser through the target browser.
[0066] Optionally, the first unit is configured to:
[0067] Determine whether the preloading resources of the target landing page exist in the local storage space. If so, obtain the preloading resources of the target landing page from the local storage space; otherwise, obtain the preloading resources of the target landing page from a target server corresponding to the target landing page.
[0068] Optionally, the first unit is specifically configured to:
[0069] Send a resource acquisition request to the target server corresponding to the target landing page based on the resource address of the preloading resources to obtain the preloading resources, where the resource address of the preloading resources is obtained by performing early domain name resolution when an information page with the page entry of the target landing page is displayed.
[0070] Optionally, the second unit is configured to:
[0071] Obtain a web directory file of the target landing page through the target browser;
[0072] Based on a preloading tag in the web directory file, trigger writing a plurality of preloading resources corresponding to the preloading tag into the memory cache of the target browser.
[0073] Optionally, the loading module 502 is configured to:
[0074] Intercept the resource acquisition request when sending the resource acquisition request based on the page address of the target landing page based on the generated target browser, and read the preloading resources of the target landing page from the memory cache.
[0075] Optionally, the number of the target landing pages is multiple, and the device further includes a download module, configured to:
[0076] Download the preloading resource packages of the target landing pages to the local storage space in order from high to low according to the pre-download priorities of the multiple target landing pages, where the pre-download priorities are determined based on the access quantity and / or the preloading success rate.
[0077] The page loading device provided by the embodiments of the present disclosure can execute the page loading method provided by any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the method.
[0078] The embodiments of the present disclosure also provide a computer program product, including a computer program / instructions, which when executed by a processor, implement the page loading method provided by any embodiment of the present disclosure.
[0079] Figure 6 It is a schematic structural diagram of an electronic device provided by the embodiments of the present disclosure. Specifically, refer to Figure 6 , which shows a schematic structural diagram of an electronic device 600 suitable for implementing the embodiments of the present disclosure. The electronic device 600 in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (PADs), portable multimedia players (PMPs), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example, and should not bring any limitation to the functions and usage scope of the embodiments of the present disclosure.
[0080] As Figure 6 shown, the electronic device 600 may include a processing device 601 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage device 608 into the random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. The input / output (I / O) interface 605 is also connected to the bus 604.
[0081] Generally, the following devices can be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 can allow the electronic device 600 to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 6 the electronic device 600 with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices can be implemented or had.
[0082] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes program codes for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above functions defined in the page loading method of the embodiment of the present disclosure are executed.
[0083] It should be noted that the above-mentioned computer-readable medium in the present disclosure can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of a computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory, a read-only memory, an electrically erasable programmable read-only memory (EPROM), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, and this computer-readable signal medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wires, optical cables, radio frequency (RF), etc., or any suitable combination of the above.
[0084] In some embodiments, the client and the server can communicate using any currently known or future-developed network protocol such as the HyperText Transfer Protocol (HTTP), and can be interconnected with digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), the Internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future-developed network.
[0085] The above-mentioned computer-readable medium can be included in the above-mentioned electronic device; it can also exist separately without being assembled into the electronic device.
[0086] The above computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: in response to the startup of a target application, preload the preloading resources of a target landing page into the memory cache of a target browser, where the target landing page is a third-party landing page; and in response to a loading trigger operation for the target landing page, read the preloading resources of the target landing page from the memory cache through the target browser, and load the target landing page based on the preloading resources of the target landing page.
[0087] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof. The programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network or a wide area network, or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0088] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that, in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.
[0089] The units described in the embodiments of the present disclosure may be implemented in software or in hardware. In some cases, the name of the unit does not constitute a limitation on the unit itself.
[0090] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that can be used include: Field-Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Parts (ASSP), System on Chip (SOC), Complex Programmable Logic Device (CPLD), and so on.
[0091] In the context of this disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include electrical connections based on one or more wires, portable computer disks, hard disks, random access memories, read-only memories, erasable programmable read-only memories, flash memories, optical fibers, compact disk read-only memories, optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0092] It can be understood that before using the technical solutions disclosed in the embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the information involved in this disclosure should be informed to users and the authorization of users should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0093] The above description is only a preferred embodiment of this disclosure and an explanation of the technical principles applied. Those skilled in the art should understand that the scope of disclosure involved in this disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, the technical solutions formed by mutually replacing the above features with the (but not limited to) technical features having similar functions disclosed in this disclosure.
[0094] In addition, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the present disclosure. Certain features that are described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.
[0095] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A page loading method, characterized in that: include: In response to the target application being started, preloading preloaded resources of a target landing page into a memory cache of a target browser, wherein the target landing page is a third-party landing page; In response to a loading trigger operation on the target landing page, the preloaded resources of the target landing page are read from the memory cache by the target browser, and the target landing page is loaded based on the preloaded resources of the target landing page.
2. The method according to claim 1, characterized in that Preloading the preloaded resources of the target landing page into the memory cache of the target browser includes: Generate a target browser for the target landing page in the target application, and obtain preloaded resources for the target landing page; The preloaded resources of the target landing page are written into the memory cache of the target browser through the target browser.
3. The method according to claim 2, characterized in that The obtaining of the preloaded resources of the target landing page includes: Determine whether there are preloaded resources for the target landing page in the local storage space. If so, obtain the preloaded resources for the target landing page from the local storage space; otherwise, obtain the preloaded resources for the target landing page from the target server corresponding to the target landing page.
4. The method according to claim 3, characterized in that Acquiring preloaded resources of the target landing page from a target server corresponding to the target landing page includes: Based on the resource address of the preloaded resource, a resource acquisition request is issued to the target server corresponding to the target landing page to obtain the preloaded resource, wherein the resource address of the preloaded resource is obtained by performing advance domain name resolution in response to the display of an information page with a page entry of the target landing page.
5. The method according to claim 2, characterized in that: Writing the preloaded resources of the target landing page into the memory cache of the target browser through the target browser includes: Obtaining the webpage directory file of the target landing page through the target browser; Based on the preloading tag in the webpage directory file, triggering multiple preloading resources corresponding to the preloading tag is written into the memory cache of the target browser.
6. The method according to claim 1, characterized in that Reading the preloaded resources of the target landing page from the memory cache through the target browser includes: Based on the generated target browser, based on the page address of the target landing page, the resource acquisition request is intercepted when the resource acquisition request is sent, and the preloaded resources of the target landing page are read from the memory cache.
7. The method according to claim 1, characterized in that The number of the target landing pages is multiple, and the method further includes: The preloaded resource packages of the target landing pages are downloaded to the local storage space in order of the preload priority of the target landing pages from high to low, wherein the preload priority is determined based on the number of visits and / or the preload success rate.
8. A page loading device, characterized in that: include: A preloading module, configured to preload preloaded resources of a target landing page into a memory cache of a target browser in response to the start of a target application, wherein the target landing page is a third-party landing page; A loading module is used to respond to a loading trigger operation on the target landing page, read the preloaded resources of the target landing page from the memory cache through the target browser, and load the target landing page based on the preloaded resources of the target landing page.
9. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the page loading method described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the page loading method described in any one of claims 1 to 7.