CN102984275A - Method and browser for web downloading - Google Patents

Method and browser for web downloading Download PDF

Info

Publication number
CN102984275A
CN102984275A CN2012105462949A CN201210546294A CN102984275A CN 102984275 A CN102984275 A CN 102984275A CN 2012105462949 A CN2012105462949 A CN 2012105462949A CN 201210546294 A CN201210546294 A CN 201210546294A CN 102984275 A CN102984275 A CN 102984275A
Authority
CN
China
Prior art keywords
request
web page
download
priority
page 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.)
Granted
Application number
CN2012105462949A
Other languages
Chinese (zh)
Other versions
CN102984275B (en
Inventor
杨晓兵
任寰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201210546294.9A priority Critical patent/CN102984275B/en
Publication of CN102984275A publication Critical patent/CN102984275A/en
Application granted granted Critical
Publication of CN102984275B publication Critical patent/CN102984275B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for web downloading, which comprises the steps that a request for downloading web resources in a page is initiated during page loading; the request for downloading the web resources is intercepted; a downloading request queue is formed according to downloading priorities corresponding to classes of the web resources in the request for downloading the web resources; and the web resources of different classes are downloaded in the downloading request queue according to the downloading priorities. According to the method, the web resources requested by a web are classified and subjected to priority processing on the downloading based on the classes of the network resources; the resources influencing a web effect can be downloaded preferentially during web browsing; and the web downloading efficiency is improved under the condition that a user experience is not influenced.

Description

Carry out method and the browser of page download
Technical field
The present invention relates to Internet technical field, relate in particular a kind of method and browser thereof that carries out page download.
Background technology
The abbreviation that appears at hereinafter is defined as follows:
DNS: domain name system
HTML: HTML
HTTP: Hypertext Transport Protocol
MIME: multipurpose internet mail expansion
FTP: file transfer protocol (FTP)
URL: URL(uniform resource locator)
Web browser refers to can the display web page server or the html file content of file system, and allows a kind of software of user and these file interactions.Web browser is mainly mutual by http protocol and web page server and obtain webpage, and these webpages are specified by URL, and file format is generally HTML, and is indicated in http protocol by MIME.Can comprise a plurality of documents in the webpage, each document obtains from server respectively.Most browser itself is supported the widely form except HTML, picture formats such as JPEG, PNG, GIF, and can expand and support numerous plug-in units (plug-ins).In addition, many browsers are also supported other URL type and corresponding agreement thereof, such as the encryption version of FTP, Gopher, HTTPS(HTTP agreement).HTTP content type and URL protocol specification allow Web page maker embedded images, animation, video, sound, Streaming Media etc. in webpage.Common web browser comprises the Firefox of Internet Explorer, the Mozilla of Microsoft, the Safari of Apple on the PC, Opera, Google Chrome, GreenBrowser browser, 360 secure browsers, search dog high speed browser, everyday browser, the TT of Tengxun, proud trip browser, Baidu's browser, Tencent QQ browser etc., browser is the client-side program that the most often uses.
Browser operation principle commonly used as shown in Figure 1, Fig. 1 is the operation principle of web browser in the prior art:
(1) the browser URL(that analyzes the page that hyperlink points to is such as the network address of Tsing-Hua University:
www.tsinghua.edu.cn
(2) browser is to the server ip address of this URL of DNS request analysis
(3) dns resolution goes out URL(Tsing-Hua University server) the ip address
(4) browser is set up TCP with server and is connected
(5) browser sends the request of file reading: GET/chn/yxsz/index.htm
(6) request of the file reading of server response browser is issued browser to the homepage face file index.htm of webpage
(7) discharging TCP connects
(8) all texts of browser display homepage face file index.htm
In above-mentioned steps 5, send send file reading order GET/chn/yxsz/index.htm the time, can obtain from server the resource of this index.htm, the resource of wherein said download comprises: html, JS, CSS, bmp, icon etc. are used for carrying out at the render engine of browser the resource of loaded and displayed.And for the downloading order of resource in webpage that above-mentioned various requests are downloaded, be according to downloading web pages from top to bottom at present, download according to the content in the frame that shows.The kernel of IE has been realized the optimization of some downloaded resources sequencings at present, but does not still have the prioritization scheme in the browser side.But the IE of lowest version, for example the downloading order among the IE6/7 is not optimized.In addition in mobile phone browser, because the bandwidth of mobile phone is more limited, so the high efficiency of its resource downloading is had requirement.
A prior art (CN102591877) of this area discloses a kind of embedded browser page resource request method.In the method Internet resources are divided into primary resource (such as html text, JS, picture, CSS) and child resource (such as the interface content of the ejections such as the advertisement beyond the main page), child resource comprises must child resource and nonessential child resource two classes.When browser sends the website information request, resolve its corresponding primary resource,, when network condition was bad, the necessary child resource in child resource corresponding to described primary resource was downloaded in request; If network condition is poor when obtaining child resource, then only to obtain and must then carry out the layout demonstration by child resource, the not situation of display web page can not appear owing to nonessential child resource can not obtain fully, improved user's experience.But, this invention is defined as primary resource and child resource to the order of resource downloading, and child resource only to limit be the interface content that the advertisement etc. beyond the main page is ejected, await further to improve for the download efficiency of the resources such as the web page element in the primary resource (such as html text, JS, picture, CSS).
Summary of the invention
For the defective of above-mentioned prior art, the technical problem that technical scheme of the present invention will solve provides a kind of method and browser thereof that carries out page download, to improve the download efficiency of web page resources.。
According to one aspect of the present invention, a kind of method of carrying out page download is provided, comprising: in the page loads, initiate the download request to the web page resources in the page; Tackle the download request of described web page resources, and according to the download priority that the corresponding priority list of classification of the web page resources in the download request of described web page resources generates, form the download request formation; In described download request formation, according to described download priority different classes of web page resources is downloaded.
Alternatively, the download request of described web page resources is the http download request; The download request step of the described web page resources of described interception comprises: the http download request of tackling described web page resources, wherein said http download request is tackled by Hook Function, and all resource request are set to ask the transmission state in the described http download request.
Alternatively, increase the quantity of http network connection by the api function that calls windows.
Alternatively, the classification of described web page resources is to know according to the URL of the web page resources in the described http download request; Then the classification of described web page resources comprises at least: webpage, script, picture, icon or Cascading Style Sheet.
Alternatively, described download priority is to generate according to the priority list that the difference download priority that arranges in different classes of web page resources at the browser side group is set up; Then the corresponding download priority of described classification according to the web page resources in the download request of web page resources forms the download request formation, comprise: the URL of described web page resources generates request items according to described priority list, and the described request project comprises URL and priority corresponding to described URL at least; The described request project generates described download request formation according to described priority.
Alternatively, describedly in the download request formation, different classes of web page resources carried out download step comprise according to described download priority: in described download request formation according to described processed to generate all-clear, the Internet resources of being let pass are downloaded.
Alternatively, the browser side will be sent all-clear to it, priority treatment when reaching default time threshold the stand-by period of described request project.
Alternatively, after the all-network resource of asking in the described download request formation is all downloaded, destroy all request items in the described download request formation.
Alternatively, described priority list dynamically determines when initiating described http download request, and in the described priority list web page resources to download the priority setting be to be loaded the classification of webpage and dynamically to be changed according to described.
Alternatively, described priority list is sent to the browser thruster by server.
Alternatively, described priority list is kept at the browser side, and upgrades according to the custom of browsing of browser client.
Alternatively, described priority list and browser client are bound, and upload to synchronously corresponding server side as the part of browser client information.
According to another aspect of the present invention, a kind of browser that carries out page download is provided, comprising: communication module, it is adapted for the download request of initiating the web page resources in the page in the page loads; Blocking module, it is adapted for the download request of the described web page resources of interception, and according to the download priority that the corresponding priority list of classification of the web page resources in the download request of described web page resources generates, forms the download request formation; The request Executive Module, it is adapted in described download request formation and according to described download priority different classes of web page resources is downloaded.
Alternatively, the download request of described web page resources is the http download request; Described blocking module, it is adapted for the http download request of the described web page resources of interception, and described http download request is tackled by Hook Function, and all resource request are set to ask the transmission state in the described http download request.
Alternatively, described communication module increases the quantity of http network connection by the api function that calls windows.
Alternatively, described blocking module is known the classification of described web page resources according to the URL of the web page resources in the described http download request, and the classification of described web page resources comprises at least: webpage, script, picture, icon or Cascading Style Sheet.
Alternatively, described blocking module further comprises generation module, this generation module is adapted for the difference that arranges in different classes of web page resources according to the browser side group and downloads the priority list that priority sets up and generate described priority, and described generation module generates request items with the URL of described web page resources according to described priority list, and the described request project comprises URL and priority corresponding to described URL at least; The described request project generates described download request formation according to described priority by described generation module.
Alternatively, the described request Executive Module processes to generate all-clear according to the priority of request items described in the described download request formation, and the Internet resources of being let pass are downloaded.
Alternatively, the described request Executive Module sends all-clear to it, priority treatment when reaching default time threshold the stand-by period of described request project.
Alternatively, after the all-network resource of asking in the described download request formation was all downloaded, the described request Executive Module was destroyed all request items in the described download request formation.
Alternatively, described priority list dynamically determines when initiating described http download request, and in the described priority list web page resources to download the priority setting be to be loaded the classification of webpage and dynamically to be changed according to described.
Alternatively, described priority list is pushed to described browser by server.
Alternatively, described priority list is kept at described browser end, and upgrades according to the custom of browsing of browser client.
Alternatively, described priority list and browser client are bound, and upload to synchronously corresponding server side as the part of browser client information.
Technical scheme of the present invention, because the download request of the described web page resources of interception, and according to the formation of the corresponding download priority formation of the classification of the web page resources in the download request of described web page resources download request; In described download request formation, according to described download priority different classes of web page resources is downloaded, so just can change the order of resource downloading of the IE browser of lowest version, improved the efficient of resource downloading, better supported for the resource downloading efficient among the lowest version IE (because sometimes, specific URL need to use the IE kernel of lowest version to play up), and carry out different disposal for different web pages at the sequencing of downloading, efficient is more targeted, the use habit that more meets the user, and user's viscosity is more increased.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, the accompanying drawing of required use was done to introduce simply during the below will describe embodiment, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing:
Fig. 1 is the operation principle of web browser in the prior art;
Fig. 2 is the working-flow figure of the embodiment of the invention;
Fig. 3 is the priority list schematic diagram of the request items in the embodiment of the invention;
Fig. 4 is the system architecture diagram of realizing page download in the browser of the embodiment of the invention;
Fig. 5 is the enforcement schematic diagram that the browser IE6/7 browser of the embodiment of the invention is optimized the page resource loading sequence.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in the accompanying drawing, yet should be appreciated that and to realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order to understand the disclosure more thoroughly that these embodiment are provided, and can with the scope of the present disclosure complete convey to those skilled in the art.
The specific embodiment of the invention with the IE6/IE7 browser as an example.Existing IE6/7 browser is not optimized the order that the page loads, according to the DISPLAY ORDER load page resource of the page.Fig. 2 is the working-flow figure of the specific embodiment of the invention, and Fig. 4 is the system architecture diagram of realizing page download in the browser of the specific embodiment of the invention.In conjunction with Fig. 2 and Fig. 4 a specific embodiment of the present invention is described.
Among the step S201, browser is initiated the download request to the web page resources in the page in the page loads, such as, this web page resources download request is the http download request, receives the http request of resource downloading.
And, because at subsequent step S202, S203, the operations such as interception and analysis, can cause many http requests to be tackled by the hook Hook Function, such as its subprogram internetcallbackFunc () function, like this, request process to web page resources is got clogged, need to mediate to the quantity of the network connection of system, increase first such as the quantity of the http link that can set up, in order to avoid cause network resource request to be blocked.The number of the network connection of system can change network connection number connect num by the api function that calls in the windows system.
Communication module 401 can be adapted for the operation of execution in step S201.
Among the step S202, tackle the download request of described web page resources, as the http download request of web page resources as described in tackling, wherein said http download request is tackled by Hook Function, and all resource request are set to ask the transmission state in the described http download request.Concrete example as: at a browser end operation Hook Function (hookfunction).Hook (Hook) is a kind of call back function, and a kind of mechanism that the system that also can be described as provides can be with information intercepting and processing before information arrives other processes.(in this example this hook program internetcallbackFunc () function by name).This hook function is lived the http request interception that browser sends, and makes it be in request and sends state (sendingrequest).
Among the step S203, at browser end the http resource request is analyzed, analyzed such as wherein URL.With the connection of requested web page resources, just can know the classification of the web page resources that will load according to this URL among the URL, the classification of these Internet resources comprises at least: webpage html, Cascading Style Sheet css, script js, picture bmp, icon icon etc.As, for " sendingrequest ", in the URL state just with the link of requested web page resources, the classification of web page resources be exactly according in the described http download request the URL of web page resources know.
Among the step S204, after obtaining the classification of Internet resources, browser arranges different download priority levels according to various resource, and sets up a priority list.For example, for requested resource priority is set based on the URL classification and generates priority list.This downloads priority, is to generate according to the priority list that the difference download priority that arranges in different classes of web page resources at the browser side group is set up.
Step S205, determine the resource class of the URL in the http request after, search the priority of corresponding resource according to this priority list, and set up a request items (requestitem), generate the request items tabulation.At least comprise two projects in this request items, URL classification and priority.
Such as the priority list schematic diagram of the request items in Fig. 3 specific embodiment of the invention, wherein the priority of the text resource html in the request items is that the priority of 9, css resource is that the priority level of 8, Js resource is 5, etc.
Step S206, for various types of other Internet resources in the request items, browser end is when the download request of interception web page resources, the download priority that the corresponding priority list of classification of the web page resources in the foundation download request of described web page resources generates forms the download request formation, the resource of various different priorities is put into formation, and browser is processed successively according to the priority of each resource.
Generation module 4021 is adapted for the operation of execution in step S204 to S206.
By step S203 to S206, can see that the download priority that generates according to the corresponding priority list of the classification of the web page resources in the download request of web page resources forms an example of download request formation: the URL of described web page resources generates request items according to described priority list, and the described request project comprises URL and priority corresponding to described URL at least; And then the described request project generates described download request formation according to described priority.
Blocking module 402 can be adapted for the interception of execution in step S202 to S206 and form the sequence of operations of download request formation.
In addition, priority list in the interception that blocking module 402 is carried out and the sequence of operations that forms the download request formation is dynamically determined when initiating this http download request, and to download the priority setting be to be loaded the classification (such as the classification of the webpage that analyzes among the step S203) of webpage and dynamically to change according to this to web page resources in this priority list.This priority list is pushed to browser by server.Priority list is stored in the browser side, can upgrade according to the custom of browsing of browser client.Priority list also can be bound with browser client, uploads to synchronously the server side of correspondence as the part of browser client information.Concrete, the formation of this priority list and definition can be carried out in several ways, comprise following several mode:
(1) be different for its corresponding priority list of different webpage (perhaps different classes of webpage), for example the priority of video related web page video plug-in unit classification wherein is higher; The webpage of text categories, the priority of the relevant plug-in unit of its video certainly can not be high; The concrete classification of webpage can be analyzed to classify from URL, or uses white list to classify, when the webpage load request, just can judge its classification after, dynamic priority resolution table.
(2) described priority list is can be pushed to client at server end to carry out real-time renewal, not necessarily is limited to the priority list that the browser side is preserved;
(3) browse custom for user's use, can determine user's use habit, thereby judge that it belongs to the user of that class (historical record that the browsing histories custom of User is judged or collected), then carries out the automatic adjustment of above-mentioned priority list at browsers local;
(4) this priority list can be bound with the user, is that a part that can be used as user profile is uploaded synchronously.
Step S207, in the download request formation, according to this download priority different classes of web page resources is downloaded, wherein, resource to be processed in the formation is generated all-clear (namely all-clear being sent in the request that is discharged in the formation), that is to say that the state of this resource becomes the state that sends (sentrequest).Specifically such as: in this download request formation according to this processed to generate all-clear, the Internet resources of being let pass are downloaded.
In order to prevent that Internet resources in the request items are owing to waits for too long is abandoned, for the resource request in the request items, if its stand-by period is when reaching default time threshold, no matter whether its priority level reaches, namely it is processed by force, it is sent all-clear, and its state becomes the state that sends.
Step S208 sends to server end and processes.
Step S209, the request of judging current clearance is last resource request in the formation whether.If not last request.
Return step S207, next request in the formation is processed.
If last resource request, after the various wait resource downloading of step S210 in the request items of having let pass finish, browser can send instruction to the request queue that generates, destroy all request items, be after all-network resource in the download request formation is all downloaded, destroy all request items in the download request formation, with free system resources.
Request Executive Module 403 can be adapted for the operation of execution in step S207 to S210.
Fig. 4 is the system architecture diagram of realizing page download in the browser of the embodiment of the invention.The system that realizes page download in the browser of embodiment of the present invention comprises at least, a communication module 401, and it is adapted for the download request of initiating the web page resources in the page in the page loads; Blocking module 402, it is adapted for the download request of the described web page resources of interception, and according to the download priority that the corresponding priority list of the classification of the web page resources in the download request of web page resources generates, forms the download request formation; Request Executive Module 403, it is adapted in the download request formation download priority according to Internet resources different classes of web page resources is downloaded.For in the existing browser and design of the present invention be not directly related assembly or module, all not shown for the purpose of brief description, this point those skilled in the art should realize and obtains.
Send the http download request of download request of web page resources at browser after, blocking module 402, the http download request, and all resource request are set to ask the transmission state in the http download request.
Further, also comprise a generation module 4021 in the blocking module 402, it downloads the priority of the priority list generating network resource that priority sets up for the difference that arranges in different classes of web page resources according to the browser side group; And the URL of web page resources generated request items according to priority list, request items comprises URL and priority corresponding to described URL at least.
Request Executive Module 403 processes to generate all-clear according to the priority of request items described in the described download request formation, and the Internet resources of being let pass are downloaded.Perhaps, when the stand-by period of request items reached default time threshold, request Executive Module 403 sent all-clear, priority treatment to it.After the all-network resource of asking in downloading request queue was all downloaded, request Executive Module 403 was destroyed all request items in the described download request formation.
Fig. 5 is the enforcement schematic diagram that browser IE6/7 browser is optimized the page resource loading sequence.
Wherein browser loads navigation webpage 501 by for example http agreement, need to server downloading web pages resource, namely send the http download request.In order to optimize downloading order to improve download efficiency, to adjust back by the hook hook, tackle this http download request, the hook hook adopts internetcallbackFunc () call back function, and the request that this is blocked is in request sends state sendingrequest.Comprised various information in the http download request, the information of various types of other web page resources that download especially arranged, as html, css ...
Browser obtains the classification 503 of web page resources according to the URL of web page resources, and to the server ip address of this URL of DNS request analysis, parse name and also ask to connect, behind the ip address that parses URL, connect with the server 502 that downloaded resources can be provided.
Priority 505(according to the classification 503 of web page resources behind the Hook Function readjustment (interception) is usually dynamically definite, server can push initial priority to browser) priority list that forms, generate request items, this request items comprises URL and its corresponding precedence information, priority by request items generates download priority, and final formation downloaded priority query's (back will be downloaded different classes of web page resources according to downloading priority).Behind the readjustment, the http request will be waited for, until obtain to download the all-clear of priority query.And, change network connection number connect num506 by api function.The network connection number that enlarges has been avoided obstruction, guaranteed usually, and according to priority scheduling 504 request items to download.
Wait for that the request after the transmission will be in has sent state sentrequest until during the acquisition all-clear, if surpass the Preset Time threshold value, the maximum wait time that namely arranges, then pressure gives all-clear, sends in advance.
By the dispatch request project, each download request is sent to server in order carry out download 507.
The specific embodiment of the present invention is take the http agreement as example, but supports URL types and corresponding agreement thereof for other, such as the encryption version of FTP, Gopher, HTTPS(HTTP agreement) the present invention is applicable equally.And, for existing diverse network browser, Firefox, the Safari of Apple such as Internet Explorer, the Mozilla of Microsoft, Opera, Google Chrome, GreenBrowser browser, 360 secure browsers, search dog high speed browser, everyday browser, the TT of Tengxun, proud trip browser, Baidu's browser, Tencent QQ browser etc., method of the present invention is applicable equally.Because the limited bandwidth of communication terminal, the method that the present invention proposes is especially effective for the web page resources download efficiency that improves communication terminal.
Intrinsic not relevant with any certain computer, virtual system or miscellaneous equipment with demonstration at this algorithm that provides.Various general-purpose systems also can be with using based on the teaching at this.According to top description, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.Should be understood that and to utilize various programming languages to realize content of the present invention described here, and the top description that language-specific is done is in order to disclose preferred forms of the present invention.
In the specification that provides herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can be put into practice in the situation of these details not having.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the description to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes in the above.Yet the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires the more feature of feature clearly put down in writing than institute in each claim.Or rather, as following claims reflected, inventive aspect was to be less than all features of the disclosed single embodiment in front.Therefore, follow claims of embodiment and incorporate clearly thus this embodiment into, wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can adaptively change and they are arranged in one or more equipment different from this embodiment the module in the equipment among the embodiment.Can be combined into a module or unit or assembly to the module among the embodiment or unit or assembly, and can be divided into a plurality of submodules or subelement or sub-component to them in addition.In such feature and/or process or unit at least some are mutually repelling, and can adopt any combination to disclosed all features in this specification (comprising claim, summary and the accompanying drawing followed) and so all processes or the unit of disclosed any method or equipment make up.Unless in addition clearly statement, disclosed each feature can be by providing identical, being equal to or the alternative features of similar purpose replaces in this specification (comprising claim, summary and the accompanying drawing followed).
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included among other embodiment, the combination of the feature of different embodiment means and is within the scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with compound mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, perhaps realizes with the software module of moving at one or more processor, and perhaps the combination with them realizes.It will be understood by those of skill in the art that and to use in practice microprocessor or digital signal processor (DSP) to realize according to some or all some or repertoire of parts in the equipment of the embodiment of the invention.The present invention can also be embodied as be used to part or all equipment or the device program (for example, computer program and computer program) of carrying out method as described herein.Such realization program of the present invention can be stored on the computer-readable medium, perhaps can have the form of one or more signal.Such signal can be downloaded from internet website and obtain, and perhaps provides at carrier signal, perhaps provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation of the scope that does not break away from claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed in element or step in the claim.Being positioned at word " " before the element or " one " does not get rid of and has a plurality of such elements.The present invention can realize by means of the hardware that includes some different elements and by means of the computer of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to come imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title with these word explanations.
Herein disclosed is A1, a kind of method of carrying out page download, comprising: in the page loads, initiate the download request to the web page resources in the page; Tackle the download request of described web page resources, and form the download request formation according to the corresponding download priority of the classification of the web page resources in the download request of described web page resources; In described download request formation, according to described download priority different classes of web page resources is downloaded.A2, such as the described method of A1, it is characterized in that the download request of described web page resources is the http download request; Then the download request step of the described web page resources of described interception comprises: the http download request of tackling described web page resources, wherein said http download request is tackled by Hook Function, and all resource request are set to ask the transmission state in the described http download request.A3, such as the described method of A2, it is characterized in that, further comprise: the quantity that increases the http network connection by the api function that calls windows.A4, such as the described method of A2, it is characterized in that the classification of described web page resources is to know according to the URL of the web page resources in the described http download request; Then the classification of described web page resources comprises at least: webpage, script, picture, icon or Cascading Style Sheet.A5, such as the described method of A4, it is characterized in that described download priority is to download the priority list that priority sets up according to the difference that arranges in different classes of web page resources at the browser side group to generate; Then the corresponding download priority of described classification according to the web page resources in the download request of web page resources forms the download request formation, comprise: the URL of described web page resources generates request items according to described priority list, and the described request project comprises URL and priority corresponding to described URL at least; The described request project generates described download request formation according to described priority.A6, such as the described method of A5, it is characterized in that, describedly in the download request formation, different classes of web page resources carried out download step comprise according to described download priority: in described download request formation according to described processed to generate all-clear, the Internet resources of being let pass are downloaded.A7, such as the described method of A5, it is characterized in that further comprise: the browser side will be sent all-clear to it, priority treatment when reaching default time threshold the stand-by period of described request project.A8, such as the described method of A5, it is characterized in that, further comprise: after the all-network resource of asking in the described download request formation is all downloaded, destroy all request items in the described download request formation.A9, such as the described method of A4, it is characterized in that described download priority is determined by the priority list that the priority of the classification of described web page resources forms.A10, such as the described method of A9, it is characterized in that, described priority list dynamically determines when initiating described http download request, and in the described priority list web page resources to download the priority setting be to be loaded the classification of webpage and dynamically to be changed according to described.A11, such as the described method of A10, it is characterized in that described priority list is sent to the browser thruster by server.A12, such as the described method of A11, it is characterized in that described priority list is kept at the browser side, and according to browser client browse the custom upgrade.A13, such as the described method of A11, it is characterized in that described priority list and browser client binding, and upload to synchronously corresponding server side as the part of browser client information.
Herein disclosed is B14, a kind of browser that carries out page download, comprising: communication module, it is adapted for the download request of initiating the web page resources in the page in the page loads; Blocking module, it is adapted for the download request of the described web page resources of interception, and the corresponding download priority of classification of the web page resources in the foundation download request of described web page resources, forms the download request formation; The request Executive Module, it is adapted in described download request formation and according to described download priority different classes of web page resources is downloaded.B15, such as the described browser of B14, it is characterized in that the download request of described web page resources is the http download request; Described blocking module, it is adapted for the http download request of the described web page resources of interception, and described http download request is tackled by Hook Function, and all resource request are set to ask the transmission state in the described http download request.B16, such as the described browser of B15, it is characterized in that further comprise: described communication module increases the quantity of http network connection by the api function that calls windows.B17, such as the described browser of B15, it is characterized in that, described blocking module is known the classification of described web page resources according to the URL of the web page resources in the described http download request, and the classification of described web page resources comprises at least: webpage, script, picture, icon or Cascading Style Sheet.B18, such as the described browser of B17, it is characterized in that, described blocking module further comprises: generation module, and it is adapted for the difference that arranges in different classes of web page resources according to the browser side group and downloads the priority list that priority sets up and generate described priority; And described generation module generates request items with the URL of described web page resources according to described priority list, and the described request project comprises URL and priority corresponding to described URL at least; The described request project generates described download request formation according to described priority by described generation module.B19, such as the described browser of B18, it is characterized in that the described request Executive Module processes to generate all-clear according to the priority of request items described in the described download request formation, the Internet resources of being let pass are downloaded.B20, such as the described browser of B18, it is characterized in that the stand-by period of described request project, the described request Executive Module sent all-clear to it, priority treatment when reaching default time threshold.B21, such as the described browser of B18, it is characterized in that after the all-network resource of asking in the described download request formation was all downloaded, the described request Executive Module was destroyed all request items in the described download request formation.B22, such as the described browser of B17, it is characterized in that described download priority is determined by the priority list that the priority of the classification of described web page resources forms.B23, such as the described browser of B22, it is characterized in that, described priority list dynamically determines when initiating described http download request, and in the described priority list web page resources to download the priority setting be to be loaded the classification of webpage and dynamically to be changed according to described.B24, such as the described browser of B23, it is characterized in that described priority list is pushed to described browser by server.B25, such as the described browser of B24, it is characterized in that described priority list is kept at described browser end, and according to browser client browse the custom upgrade.B26, such as the described browser of B24, it is characterized in that described priority list and browser client binding, and upload to synchronously corresponding server side as the part of browser client information.

Claims (20)

1. method of carrying out page download comprises:
In loading, the page initiates the download request to the web page resources in the page;
Tackle the download request of described web page resources, and form the download request formation according to the corresponding download priority of the classification of the web page resources in the download request of described web page resources; In described download request formation, according to described download priority different classes of web page resources is downloaded.
2. the method for claim 1 is characterized in that, the download request of described web page resources is the http download request; Then
The download request step of the described web page resources of described interception comprises:
Tackle the http download request of described web page resources, wherein said http download request is tackled by Hook Function, and all resource request are set to ask the transmission state in the described http download request.
3. method as claimed in claim 2 is characterized in that, further comprises:
Increase the quantity of http network connection by the api function that calls windows.
4. method as claimed in claim 2 is characterized in that, the classification of described web page resources is to know according to the URL of the web page resources in the described http download request;
Then the classification of described web page resources comprises at least: webpage, script, picture, icon or Cascading Style Sheet.
5. method as claimed in claim 4 is characterized in that, described download priority is to generate according to the priority list that the difference download priority that arranges in different classes of web page resources at the browser side group is set up; Then
The corresponding download priority of described classification according to the web page resources in the download request of web page resources forms the download request formation, comprising:
The URL of described web page resources generates request items according to described priority list, and the described request project comprises URL and priority corresponding to described URL at least;
The described request project generates described download request formation according to described priority.
6. method as claimed in claim 5 is characterized in that, describedly different classes of web page resources is carried out download step comprises according to described download priority in the download request formation:
The described processed of foundation is downloaded the Internet resources of being let pass to generate all-clear in described download request formation.
7. method as claimed in claim 5 is characterized in that, further comprises: the browser side will be sent all-clear to it, priority treatment when reaching default time threshold the stand-by period of described request project.
8. method as claimed in claim 5 is characterized in that, further comprises: after the all-network resource of asking in the described download request formation is all downloaded, destroy all request items in the described download request formation.
9. method as claimed in claim 4 is characterized in that, described download priority is determined by the priority list that the priority of the classification of described web page resources forms.
10. method as claimed in claim 9, it is characterized in that, described priority list dynamically determines when initiating described http download request, and in the described priority list web page resources to download the priority setting be to be loaded the classification of webpage and dynamically to be changed according to described.
11. method as claimed in claim 10 is characterized in that, described priority list is sent to the browser thruster by server.
12. method as claimed in claim 11 is characterized in that, described priority list is kept at the browser side, and upgrades according to the custom of browsing of browser client.
13. method as claimed in claim 11 is characterized in that, described priority list and browser client are bound, and upload to synchronously corresponding server side as the part of browser client information.
14. a browser that carries out page download comprises:
Communication module, it is adapted for the download request of initiating the web page resources in the page in the page loads;
Blocking module, it is adapted for the download request of the described web page resources of interception, and the corresponding download priority of classification of the web page resources in the foundation download request of described web page resources, forms the download request formation;
The request Executive Module, it is adapted in described download request formation and according to described download priority different classes of web page resources is downloaded.
15. browser as claimed in claim 14 is characterized in that,
The download request of described web page resources is the http download request;
Described blocking module, it is adapted for the http download request of the described web page resources of interception, and described http download request is tackled by Hook Function, and all resource request are set to ask the transmission state in the described http download request.
16. browser as claimed in claim 15 is characterized in that, further comprises:
Described communication module increases the quantity of http network connection by the api function that calls windows.
17. browser as claimed in claim 15, it is characterized in that, described blocking module is known the classification of described web page resources according to the URL of the web page resources in the described http download request, and the classification of described web page resources comprises at least: webpage, script, picture, icon or Cascading Style Sheet.
18. browser as claimed in claim 17, it is characterized in that, described blocking module further comprises: generation module, and it is adapted for the difference that arranges in different classes of web page resources according to the browser side group and downloads the priority list that priority sets up and generate described priority; And
Described generation module generates request items with the URL of described web page resources according to described priority list, and the described request project comprises URL and priority corresponding to described URL at least;
The described request project generates described download request formation according to described priority by described generation module.
19. browser as claimed in claim 18 is characterized in that, the described request Executive Module processes to generate all-clear according to the priority of request items described in the described download request formation, and the Internet resources of being let pass are downloaded.
20. browser as claimed in claim 18 is characterized in that, the stand-by period of described request project, the described request Executive Module sent all-clear to it, priority treatment when reaching default time threshold.
CN201210546294.9A 2012-12-14 2012-12-14 Carry out method and the browser of page download Active CN102984275B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210546294.9A CN102984275B (en) 2012-12-14 2012-12-14 Carry out method and the browser of page download

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210546294.9A CN102984275B (en) 2012-12-14 2012-12-14 Carry out method and the browser of page download

Publications (2)

Publication Number Publication Date
CN102984275A true CN102984275A (en) 2013-03-20
CN102984275B CN102984275B (en) 2016-09-21

Family

ID=47858008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210546294.9A Active CN102984275B (en) 2012-12-14 2012-12-14 Carry out method and the browser of page download

Country Status (1)

Country Link
CN (1) CN102984275B (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103336702A (en) * 2013-06-29 2013-10-02 广州市动景计算机科技有限公司 Method and device of accelerating webpage loading
CN103716319A (en) * 2013-12-26 2014-04-09 杭州华三通信技术有限公司 Device and method for Web access optimization
CN104102674A (en) * 2013-04-12 2014-10-15 腾讯科技(深圳)有限公司 Information download controlling method and device
CN104166569A (en) * 2014-08-15 2014-11-26 北京彩云动力教育科技有限公司 Front-end page loading method and system
CN104572144A (en) * 2013-10-16 2015-04-29 北大方正集团有限公司 Application downloading method and device
CN104917731A (en) * 2014-03-12 2015-09-16 深圳中兴网信科技有限公司 Method and system for improving data display speed, server and browser
WO2016173452A1 (en) * 2015-04-29 2016-11-03 阿里巴巴集团控股有限公司 Method and apparatus for processing resolution task, and server
CN106210000A (en) * 2016-06-30 2016-12-07 武汉斗鱼网络科技有限公司 A kind of method and system that webpage front-end resource is carried out load balancing
CN106294472A (en) * 2015-06-03 2017-01-04 中国移动通信集团广东有限公司 The querying method of a kind of Hadoop data base HBase and device
CN106375441A (en) * 2016-08-31 2017-02-01 北京深思数盾科技股份有限公司 Function extension method based on WEB browser and terminal device
CN106412024A (en) * 2016-09-07 2017-02-15 网易无尾熊(杭州)科技有限公司 Page acquisition method and device
CN106708870A (en) * 2015-11-16 2017-05-24 百度在线网络技术(北京)有限公司 Background information display method and device
WO2017124358A1 (en) * 2016-01-20 2017-07-27 白宏伟 Data acquisition method for traffic allocation technology and traffic control system
CN108038134A (en) * 2017-11-20 2018-05-15 东软集团股份有限公司 The method, apparatus and storage medium and electronic equipment of page presentation
CN108460042A (en) * 2017-02-20 2018-08-28 华为技术有限公司 A kind of method that the page is shown, relevant device and system
CN108476244A (en) * 2016-01-13 2018-08-31 三星电子株式会社 Shorten the method and system of page load time by using network delay
CN110929192A (en) * 2019-11-12 2020-03-27 北京城市网邻信息技术有限公司 Front-end request processing method and device
CN112836158A (en) * 2021-03-09 2021-05-25 Vidaa美国公司 Resource loading method on display equipment and display equipment
CN113467967A (en) * 2021-06-11 2021-10-01 广州虎牙科技有限公司 Configuration method of network loading resources, resource configuration system and related device
CN113612822A (en) * 2021-07-14 2021-11-05 海信电子科技(深圳)有限公司 Display device and network resource downloading method of self-adaptive memory

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102360349A (en) * 2011-07-21 2012-02-22 深圳市万兴软件有限公司 Method and device for acquiring audio/video link address in webpage
CN102368213A (en) * 2011-09-26 2012-03-07 奇智软件(北京)有限公司 Page downloading control method and system for IE (Internet Explorer) core browser
CN102368248A (en) * 2011-09-26 2012-03-07 奇智软件(北京)有限公司 Page downloading control method and system of IE kernel browser
CN102368250A (en) * 2011-09-26 2012-03-07 奇智软件(北京)有限公司 Page downloading control method and system for IE (Internet Explore) kernel browser
US20120272132A1 (en) * 2011-04-21 2012-10-25 Qualcomm Innovation Center, Inc. Methods and apparatus for improved browsing performance by precompilation of high-priority javascripts in a webpage and delaying the removal of corresponding compiled code

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120272132A1 (en) * 2011-04-21 2012-10-25 Qualcomm Innovation Center, Inc. Methods and apparatus for improved browsing performance by precompilation of high-priority javascripts in a webpage and delaying the removal of corresponding compiled code
CN102360349A (en) * 2011-07-21 2012-02-22 深圳市万兴软件有限公司 Method and device for acquiring audio/video link address in webpage
CN102368213A (en) * 2011-09-26 2012-03-07 奇智软件(北京)有限公司 Page downloading control method and system for IE (Internet Explorer) core browser
CN102368248A (en) * 2011-09-26 2012-03-07 奇智软件(北京)有限公司 Page downloading control method and system of IE kernel browser
CN102368250A (en) * 2011-09-26 2012-03-07 奇智软件(北京)有限公司 Page downloading control method and system for IE (Internet Explore) kernel browser

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104102674A (en) * 2013-04-12 2014-10-15 腾讯科技(深圳)有限公司 Information download controlling method and device
CN104102674B (en) * 2013-04-12 2019-02-26 腾讯科技(深圳)有限公司 Information download control method and device
CN103336702A (en) * 2013-06-29 2013-10-02 广州市动景计算机科技有限公司 Method and device of accelerating webpage loading
CN104572144A (en) * 2013-10-16 2015-04-29 北大方正集团有限公司 Application downloading method and device
CN103716319A (en) * 2013-12-26 2014-04-09 杭州华三通信技术有限公司 Device and method for Web access optimization
CN104917731A (en) * 2014-03-12 2015-09-16 深圳中兴网信科技有限公司 Method and system for improving data display speed, server and browser
CN104166569B (en) * 2014-08-15 2017-09-22 北京彩云动力教育科技有限公司 A kind of method and system of front end page loading
CN104166569A (en) * 2014-08-15 2014-11-26 北京彩云动力教育科技有限公司 Front-end page loading method and system
CN106210156A (en) * 2015-04-29 2016-12-07 阿里巴巴集团控股有限公司 The processing method of parsing task, device and server
WO2016173452A1 (en) * 2015-04-29 2016-11-03 阿里巴巴集团控股有限公司 Method and apparatus for processing resolution task, and server
CN106210156B (en) * 2015-04-29 2019-07-23 阿里巴巴集团控股有限公司 Processing method, device and the server of parsing task
CN106294472A (en) * 2015-06-03 2017-01-04 中国移动通信集团广东有限公司 The querying method of a kind of Hadoop data base HBase and device
CN106294472B (en) * 2015-06-03 2019-08-02 中国移动通信集团广东有限公司 A kind of querying method and device of Hadoop database HBase
CN106708870B (en) * 2015-11-16 2020-12-29 百度在线网络技术(北京)有限公司 Background information display method and device
CN106708870A (en) * 2015-11-16 2017-05-24 百度在线网络技术(北京)有限公司 Background information display method and device
CN108476244A (en) * 2016-01-13 2018-08-31 三星电子株式会社 Shorten the method and system of page load time by using network delay
WO2017124358A1 (en) * 2016-01-20 2017-07-27 白宏伟 Data acquisition method for traffic allocation technology and traffic control system
CN106210000A (en) * 2016-06-30 2016-12-07 武汉斗鱼网络科技有限公司 A kind of method and system that webpage front-end resource is carried out load balancing
CN106375441A (en) * 2016-08-31 2017-02-01 北京深思数盾科技股份有限公司 Function extension method based on WEB browser and terminal device
CN106412024A (en) * 2016-09-07 2017-02-15 网易无尾熊(杭州)科技有限公司 Page acquisition method and device
CN106412024B (en) * 2016-09-07 2019-10-15 网易无尾熊(杭州)科技有限公司 A kind of page acquisition methods and device
CN108460042A (en) * 2017-02-20 2018-08-28 华为技术有限公司 A kind of method that the page is shown, relevant device and system
CN108460042B (en) * 2017-02-20 2022-04-12 华为技术有限公司 Page display method, related equipment and system
CN108038134B (en) * 2017-11-20 2020-06-26 东软集团股份有限公司 Page display method and device, storage medium and electronic equipment
CN108038134A (en) * 2017-11-20 2018-05-15 东软集团股份有限公司 The method, apparatus and storage medium and electronic equipment of page presentation
CN110929192A (en) * 2019-11-12 2020-03-27 北京城市网邻信息技术有限公司 Front-end request processing method and device
CN112836158A (en) * 2021-03-09 2021-05-25 Vidaa美国公司 Resource loading method on display equipment and display equipment
CN113467967A (en) * 2021-06-11 2021-10-01 广州虎牙科技有限公司 Configuration method of network loading resources, resource configuration system and related device
CN113612822A (en) * 2021-07-14 2021-11-05 海信电子科技(深圳)有限公司 Display device and network resource downloading method of self-adaptive memory

Also Published As

Publication number Publication date
CN102984275B (en) 2016-09-21

Similar Documents

Publication Publication Date Title
CN102984275A (en) Method and browser for web downloading
CN103024044A (en) Method and device for downloading web pages
US11153402B2 (en) Method and apparatus for automatically optimizing the loading of images in a cloud-based proxy service
CN102882991B (en) A kind of browser and carry out the method for domain name mapping
CN102843445B (en) A kind of browser and carry out the method for domain name mapping
JP5022301B2 (en) Proxy server, communication relay program, and communication relay method
US10015226B2 (en) Methods for making AJAX web applications bookmarkable and crawlable and devices thereof
CN102999636A (en) Method and browser for carrying out interception treatment on popup window in webpage
CN104754073A (en) Resource access method and device
CN104063460A (en) Method and device for loading webpage in browser
CN103034727A (en) System for intercepting pop-up window in webpage
US11445005B2 (en) Expedited sub-resource loading
US20130326022A1 (en) Chronological-progression access prioritization
CN104468817A (en) Method and device for achieving resource download through CDN, server and client side
US8868638B2 (en) Methods for reducing latency in network connections using automatic redirects and systems thereof
CN104038510A (en) IOS system transparent agent realization method and system
CN104572843A (en) Page loading method and device
CN102902802A (en) Webpage transcoding method and device
CN101799821A (en) Method and system for realizing webpage application by widget
CN105516261A (en) Web page loading control method and load balancer
CN103559097A (en) Inter-process communication method and device in browser and browser
CN101170442B (en) Software online upgrade method and system
CN103853851A (en) Method for downloading files in browsers and browser device
CN104978207A (en) Method for uploading file, browser and system
CN103248627A (en) Method, forward proxy server and system for visiting website resources

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220718

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right