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

Active Publication Date: 2013-01-02
BEIJING SOGOU INFORMATION SERVICE +1
View PDF3 Cites 47 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] This application provides a webpage preloading method and system to solve the problem that the existing preloading scheme cann

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for preloading of webpages
  • Method and system for preloading of webpages
  • Method and system for preloading of webpages

Examples

Experimental program
Comparison scheme
Effect test

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 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and a system for preloading of webpages, and relates to the technical field of networks. The method includes acquiring normal display time of a webpage and loading time of various scripts in the webpage; analyzing the normal display time of the webpage and the loading time of the various scripts in the webpage, and determining a specific script from the corresponding scripts of the webpage; invoking the specific script corresponding to the target webpage and preloading the script to a cache; rendering a triggered link in the target webpage according to the specific script in the cache so as to display the webpage corresponding to the triggered link normally. Due to the specific script in the cache, normal displaying of the webpage is guaranteed, network download quantity of unessential data is reduced, the rendering speed of the webpage when the triggered link in the target webpage is triggered is increased, preloading resource cost is reduced, balance between the display effect of the webpage and the preloading resource cost is achieved, and content of the webpage with the triggered link is displayed efficiently.

Description

technical field [0001] The present application relates to the field of network technology, in particular to a webpage preloading method and system. Background technique [0002] In the traditional user web browsing scenario, the browser needs to wait until the user clicks the web page link before starting to download and run the resources on the page continuously, and the page presentation cannot be completed until all relevant resources are downloaded. In this scenario, it usually takes more than 10 seconds for the user to trigger the link on the page and see the complete page corresponding to the link. If the code design of the website corresponding to this link is not reasonable, it will lead to longer waiting time and make the page load time too long. [0003] To this end, many browsers will analyze user behavior to predict the link that the user may click, and preload it through the browser, thereby reducing the loading time of the page. When the user clicks on the pr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/30
Inventor 涂强余浩孙宁
Owner BEIJING SOGOU INFORMATION SERVICE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products