Method and system for preloading of webpages
A preloading and webpage technology, applied in the network field, can solve problems such as poor user browsing experience, inability to display effects, and balance of preloading resource costs, so as to speed up rendering, reduce network downloads, and reduce preloading resource costs. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] refer to figure 1 , which shows a flow chart of steps of a web page preloading method according to Embodiment 1 of the present application.
[0029] The webpage preloading method of the present embodiment comprises the following steps:
[0030] Step S10: The server obtains the normal display time of the webpage and the loading time of each script in the webpage.
[0031] Step S20: The server analyzes the normal display time of the webpage and the loading time of each script in the webpage, and determines a specific script from the scripts corresponding to the webpage.
[0032] Step S30: the client invokes the specific script corresponding to the target page and preloads it into the cache.
[0033] Step S40: The client renders the triggered link in the target page according to the specific script in the cache, so that the content of the page corresponding to the triggered link is displayed normally.
[0034] When the corresponding link in the target page is triggered,...
Embodiment 2
[0037] refer to figure 2, shows a flow chart of steps of a method for preloading a web page according to Embodiment 2 of the present application.
[0038] This embodiment describes the webpage preloading method of the present application from the server side, wherein the specific script of the webpage is the script necessary to complete the rendering of the webpage.
[0039] The webpage preloading method of the present embodiment comprises the following steps:
[0040] Step S102: The server obtains the normal display time of the webpage and the loading time of each script in the webpage.
[0041] In this step, the server collects and obtains the normal display time of all or some web pages in the whole network, and the loading time of each script in these web pages. The normal display time of a webpage usually refers to the time interval from when the webpage is opened to when the page has finished rendering the page structure and can be browsed by the user.
[0042] Step ...
Embodiment 3
[0053] refer to image 3 , which shows a flow chart of steps of a web page preloading method according to Embodiment 3 of the present application.
[0054] The webpage preloading method of the present embodiment comprises the following steps:
[0055] Step S202: The server obtains the normal display time of the webpage and the loading time of each script on the webpage; determines the script whose loading time is less than or equal to the normal display time of the webpage as the key script of the webpage (ie, a specific script of the webpage), and sets the loading time greater than the script of the webpage The normal display time of the script is determined as the non-critical script of the web page (that is, other scripts except specific scripts).
[0056] In this embodiment, the server records and analyzes the loading time of scripts corresponding to each web page in the entire network, and determines the key scripts and non-key scripts of each web page. Take a web page ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com