Unlock instant, AI-driven research and patent intelligence for your innovation.

Method, system and device for downloading webpage resources

A technology for downloading webpage resources and resources, applied in the Internet field, can solve the problems of slow webpage loading speed, long time spent, and long webpage sub-resource download time, etc. The effect of the number of Socket connections

Active Publication Date: 2015-07-15
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Analysis of the above technical solutions shows that when the browser loads a webpage, when it parses the subresource of the webpage that needs to be waited for from the main resource of the webpage, it cannot continue parsing the webpage until the subresource of the webpage is downloaded and parsed and executed. main resource, thus causing the page to load slower
When there are web page sub-resources that do not need to wait in the main web page resource, a web page sub-resource download request needs to be sent every time a web page sub-resource that does not need to wait is resolved, and each time the processing of the web page sub-resource download request is An HTTP connection needs to be established. If there are N sub-resources in the webpage, N HTTP connections must be established between the browser client and the server. Since each HTTP connection needs to establish a Socket connection, send a request, and wait for a response, the It takes a lot of extra time for each Socket connection, especially in a wireless network environment, it takes 1.2 seconds to 12 seconds to establish a Socket connection, so it takes a long time to download web page sub-resources

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, system and device for downloading webpage resources
  • Method, system and device for downloading webpage resources
  • Method, system and device for downloading webpage resources

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] figure 1 It is a flow chart of the method for downloading web page resources provided by the present invention.

[0048] Such as figure 1 As shown, the method includes:

[0049] Step 101, the client downloads the main resource of the web page.

[0050] In step 102, the client parses the downloaded webpage main resource, and adds the downloaded information of the parsed webpage sub-resource into a waiting queue for sending.

[0051] Step 103, when the number of web page sub-resources in the waiting queue reaches a preset value or the waiting time of the waiting queue reaches a preset value, pack the download information of all web page sub-resources in the waiting queue into a download request , and send the download request to the proxy server.

[0052] Step 104, the proxy server parses out the download information of more than one webpage sub-resource from the one download request, sends a download request respectively according to the downloaded information of eac...

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 application discloses a method, a system and a device for downloading webpage resources. The method comprises the following steps: downloading webpage main resources, analyzing the downloaded webpage main resources and adding the downloaded information of the analyzed webpage sub-resources in a queue waiting to be sent by a client-side; when the number of the webpage sub-resources in the queue waiting to be sent reaches a preset value or the await time of the queue waiting to be sent reaches a preset value, packing the downloaded information of all the webpage sub-resources in the queue waiting to be sent in a downloading request, and sending the downloading request to a proxy server; analyzing the downloaded information of more than one webpage sub-resource in the downloading request, respectively sending downloading requests according to the downloaded information of each analyzed webpage sub-resource, and returning the downloaded webpage sub-resources to the client-side by the proxy server. The webpage loading speed or the downloading speed of the webpage resources can be increased through the application of the invention.

Description

technical field [0001] The present application relates to the technical field of the Internet, in particular to a method, system and device for downloading web page resources. Background technique [0002] To load a web page, the browser must first download and parse the web page resources. The current web page resources include main web page resources and web page sub-resources, where the main web page resource is the source code of the web page, and the web page sub-resources are resources other than the main web page resource in the web page, such as pictures, streaming media, JavaScript scripts and CSS scripts, etc. . [0003] Currently, when a browser loads a webpage, it first downloads the main resource of the webpage, and then parses the main resource of the webpage. When the JavaScript script or CSS script of the external link in the main resource of the webpage is parsed, stop parsing the main resource of the webpage and start downloading the JavaScript script or ...

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08H04L29/06G06F17/30
Inventor 沈锦龙刘杉林燕描罗坤
Owner TENCENT TECH (SHENZHEN) CO LTD