CN104063460A - Method and device for loading webpage in browser - Google Patents

Method and device for loading webpage in browser Download PDF

Info

Publication number
CN104063460A
CN104063460A CN201410294395.0A CN201410294395A CN104063460A CN 104063460 A CN104063460 A CN 104063460A CN 201410294395 A CN201410294395 A CN 201410294395A CN 104063460 A CN104063460 A CN 104063460A
Authority
CN
China
Prior art keywords
web page
page element
specified type
webpage
browser
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
CN201410294395.0A
Other languages
Chinese (zh)
Other versions
CN104063460B (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 Hongxiang Technical Service 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 CN201410294395.0A priority Critical patent/CN104063460B/en
Publication of CN104063460A publication Critical patent/CN104063460A/en
Application granted granted Critical
Publication of CN104063460B publication Critical patent/CN104063460B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a method and a device for loading a webpage in a browser. The method comprises the following steps of parsing a webpage requested to be downloaded by the browser to obtain the DOM (document object model) tree structure data information of the webpage; acquiring a text of a webpage element of a specified type from the DOM tree structure data information, wherein the text of the webpage element comprises a source address; requesting the downloading of contents of the webpage element of the specified type to a specified-type webpage element storage server corresponding to the browser according to the source address of the webpage element of the specified type; when the webpage is rendered and loaded, performing rendering by using the webpage element of the specified type downloaded from the specified-type webpage element storage server, and loading the webpage element of the specified type in the webpage. According to the embodiment of the invention, paths for requesting for downloading to a webpage server are reduced, the network switching capacity is reduced, bandwidth resources are effectively saved, the downloading time of the webpage element is reduced, and the loading speed of the webpage is further increased.

Description

A kind of in browser the method and apparatus of Web page loading
Technical field
The present invention relates to the technical field of browser, particularly relate to a kind of in browser Web page loading method and a kind of in browser the device of Web page loading.
Background technology
Browser refers to can display web page server or HTML (HyperTextMarkup Language, the HTML (Hypertext Markup Language)) file content of file system, and allows a kind of application program of user and these file interactions.
Browser is mainly by HTTP (Hypertext transfer protocol, HTTP) agreement and web page server are mutual and obtain webpage, these webpages are by URL (Uniform ResourceLocator, URL(uniform resource locator)) specify, file layout is generally HTML, and indicated in http protocol by MIME (Multipurpose Internet Mail Extensions, the expansion of multi-usage internet mail).
In a webpage, can comprise multiple documents, each document obtains from server respectively.Most browser itself is supported the form widely except HTML, the picture formats such as 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, as FTP, Gopher, HTTPS (encryption version of http protocol).
HTTP content type and URL protocol specification allow Web page maker's web page element such as embedded images, animation, video, sound, Streaming Media in webpage.
Because the web page element in webpage is numerous, in the time of browser Web page loading, the quantity of request resource is also a lot, and the parallel join number of browser is limited, the processing power of web page server and the network bandwidth are also limited, in the time of a large number of users request of loading webpage, and the relation in vying each other between multiple requests, ask more, need the resource that loads larger, between request competition strong with regard to Shaoxing opera, the loading velocity of final whole webpage can degradation.
Summary of the invention
In view of the above problems, the present invention has been proposed in case provide a kind of overcome the problems referred to above or address the above problem at least in part a kind of in browser Web page loading method and corresponding a kind of in browser the device of Web page loading.
According to one aspect of the present invention, provide a kind of in browser the method for Web page loading, comprising:
The webpage that browse request is downloaded to is resolved, and obtains the dom tree structured data information of described webpage;
Obtain the web page element text of specified type in described dom tree structured data information; Described web page element text comprises location, source place;
According to the address, source of specified type web page element, ask to carry out the download of described specified type web page element content to the specified type web page element storage server that browser is corresponding;
In the time playing up Web page loading, use the specified type web page element of downloading from specified type web page element storage server to play up, be carried in webpage.
Alternatively, described dom tree structured data information comprises one or more nodal informations;
The described step of obtaining the web page element text of specified type in described dom tree structured data information comprises:
The address information of described webpage is mated in default web page element list of types;
In the time that the match is successful, from web page element list of types, extract the type information that needs the web page element of downloading;
When described type information is when mating in described nodal information, from described nodal information, extract the web page element text of described specified type.
Alternatively, in described web page element list of types, store the corresponding relation of the address information of webpage and the type information of web page element;
Described web page element list of types generates according to user's operation information.
Alternatively, the web page element of described specified type comprise following at least one:
Text message, image information, voice data, video data.
Alternatively, described specified type web page element content storage server is returned to web page element content in the following manner:
In the time that web page element content corresponding to address, described source is stored in described specified type web page element storage server, judge that whether described web page element content is expired; If so, according to address, described source from web page server downloading web pages element content corresponding to described webpage; If not, extract web page element content corresponding to address, described source;
Return to described web page element content to browser.
Alternatively, described specified type web page element storage server returns to web page element content in the following manner:
In the time that web page element content corresponding to address, described source is not stored in described specified type web page element storage server, according to address, described source from web page server downloading web pages element content corresponding to described webpage;
Return to described web page element content to browser.
Alternatively, also comprise:
When exceeding default time threshold, and while not receiving web page element content corresponding to address, described source from described specified type web page element storage server, according to address, described source from web page server downloading web pages element content corresponding to described webpage.
Alternatively, also comprise:
The web page element of described specified type and other browsers are carried out to synchronous operation.
Alternatively, also comprise:
To the web page element content of downloading, generate First Characteristic mark from specified type web page element storage server;
According to address, described source from web page server downloading web pages element content corresponding to described webpage;
To the web page element content of downloading from described web page server, generate Second Characteristic mark;
In the time that described First Characteristic mark is not identical with described Second Characteristic mark, generate information;
Described information is sent to described specified type web page element storage server.
Alternatively, described browser at least comprises the first browser kernel;
The described webpage that browse request is downloaded to is resolved, and the step that obtains the dom tree structured data information of described webpage comprises:
The webpage in the first browser kernel, browse request being downloaded to is resolved, and obtains the dom tree structured data information of described webpage.
Alternatively, the step of obtaining the web page element of specified type in described dom tree structured data information described in comprises:
In the first browser kernel, obtain the web page element text of specified type in described dom tree structured data information.
Alternatively, the described address, source according to specified type web page element asks the step of the download of carrying out described specified type web page element content to comprise to specified type web page element storage server corresponding to browser:
The download of described specified type web page element content is asked to carry out to specified type web page element storage server corresponding to browser in address, source according to specified type web page element in the first browser kernel.
Alternatively, described browser at least also comprises the second browser kernel;
Described in the time playing up Web page loading, use the specified type web page element of downloading from specified type web page element storage server to play up, the step being carried in webpage comprises:
In the time playing up Web page loading, in the second browser kernel, adopt the address, source of the specified type web page element that address, source and, described first browser kernel of the web page element of specified type download from specified type web page element storage server to mate;
In the time that the match is successful, the specified type web page element content that adopts described the first browser kernel to download from specified type web page element storage server is played up.
According to a further aspect in the invention, provide a kind of in browser the device of Web page loading, comprising:
Dom tree obtains module, and the webpage that is suitable for browse request to download to is resolved, and obtains the dom tree structured data information of described webpage;
Web page element text obtains module, is suitable for obtaining the web page element text of specified type in described dom tree structured data information; Described text comprises location, source place;
Web page element content download module, is suitable for the address, source according to specified type web page element, asks to carry out the download of described specified type web page element content to the specified type web page element storage server that browser is corresponding;
Web page element rendering module, is suitable in the time playing up Web page loading, uses the specified type web page element of downloading from specified type web page element storage server to play up, and is carried in webpage.
Alternatively, described dom tree structured data information comprises one or more nodal informations;
Described dom tree obtains module and is also suitable for:
The address information of described webpage is mated in default web page element list of types;
In the time that the match is successful, from web page element list of types, extract the type information that needs the web page element of downloading;
When described type information is when mating in described nodal information, from described nodal information, extract the web page element text of described specified type.
Alternatively, in described web page element list of types, store the corresponding relation of the address information of webpage and the type information of web page element;
Described web page element list of types generates according to user's operation information.
Alternatively, the web page element of described specified type comprise following at least one:
Text message, image information, voice data, video data.
Alternatively, described specified type web page element content storage server is returned to web page element content in the following manner:
In the time that web page element content corresponding to address, described source is stored in described specified type web page element storage server, judge that whether described web page element content is expired; If so, according to address, described source from web page server downloading web pages element content corresponding to described webpage; If not, extract web page element content corresponding to address, described source;
Return to described web page element content to browser.
Alternatively, state specified type web page element storage server and return in the following manner web page element content:
In the time that web page element content corresponding to address, described source is not stored in described specified type web page element storage server, according to address, described source from web page server downloading web pages element content corresponding to described webpage;
Return to described web page element content to browser.
Alternatively, also comprise:
Overtime download module, be suitable for exceeding default time threshold, and while not receiving web page element content corresponding to address, described source from described specified type web page element storage server, according to address, described source from web page server downloading web pages element content corresponding to described webpage.
Alternatively, also comprise:
Synchronous operation module, is suitable for the web page element of described specified type and other browsers to carry out synchronous operation.
Alternatively in, also comprise:
The first generation module, is suitable for the web page element content downloaded from specified type web page element storage server, generates First Characteristic mark;
Original download module, is suitable for according to address, described source from web page server downloading web pages element content corresponding to described webpage;
The second generation module, is suitable for the web page element content to downloading from described web page server, generates Second Characteristic mark;
Information generation module, is suitable for, in the time that described First Characteristic mark is not identical with described Second Characteristic mark, generating information;
Information sending module, is suitable for described information to be sent to described specified type web page element storage server.
Alternatively, described browser at least comprises the first browser kernel;
Described dom tree obtains module and is also suitable for:
The webpage in the first browser kernel, browse request being downloaded to is resolved, and obtains the dom tree structured data information of described webpage.
Alternatively, described web page element text acquisition module is also suitable for:
In the first browser kernel, obtain the web page element text of specified type in described dom tree structured data information.
Alternatively, described web page element content download module is also suitable for:
The download of described specified type web page element content is asked to carry out to specified type web page element storage server corresponding to browser in address, source according to specified type web page element in the first browser kernel.
Alternatively, described browser at least also comprises the second browser kernel;
Described web page element rendering module is also suitable for:
In the time playing up Web page loading, in the second browser kernel, adopt the address, source of the specified type web page element that address, source and, described first browser kernel of the web page element of specified type download from specified type web page element storage server to mate;
In the time that the match is successful, the specified type web page element content that adopts described the first browser kernel to download from specified type web page element storage server is played up.
The webpage that the embodiment of the present invention downloads to browse request is resolved, obtain the web page element text of specified type in dom tree structured data information, ask to carry out the download of specified type web page element content to the specified type web page element storage server that browser is corresponding, in the time playing up Web page loading, use the specified type web page element of downloading from specified type web page element storage server to play up, be carried in webpage, by the download to specified type web page element storage server requests web page element, on the one hand, reduce the path while download to web page server request, reduce the exchange capacity of network, bandwidth resources are effectively saved, reduce the download time of web page element, and then promote the loading velocity of webpage, on the other hand, reduce the request quantity of web page server, alleviated calculation server and the bandwidth occupancy of web page server, improved the efficiency of web page server Web page loading.
The embodiment of the present invention is exceeding default time threshold, and while not receiving web page element content corresponding to address, source from specified type web page element storage server, according to source address from web page server downloading web pages element content corresponding to described webpage, make to load and may run into failure or overtime at web page element, or some other abnormal situation, cannot receive web page element content corresponding to address, source from specified type web page element storage server time, Web page loading element within the acceptable time, ensure the operation of webpage normal function.
The embodiment of the present invention at other browsers in the time loading identical webpage, carry out synchronous specified type web page element from current browser, avoid other browsers to send download request to specified type web page element storage server, further reduced the system resource burden of specified type web page element storage server.
The contrast that the embodiment of the present invention identifies by First Characteristic and Second Characteristic identifies, judges that whether the web page element of specified type is correct, has reduced the generation of error rate, has improved practicality.
The embodiment of the present invention starts the second browser kernel in the time that judgement current web page is suitable for adopting the second browser kernel to load, carry out the switching of browser kernel, the web page element of the buffer memory obtaining while request for the first browser kernel is sent to the web page element obtaining in the second browser kernel and plays up loading by IPC, reuse, avoid repeated obtain web page element, improved the loading velocity of webpage.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of instructions, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Brief description of the drawings
By reading below detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skill in the art.Accompanying drawing is only for the object of preferred implementation is shown, and do not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 show a kind of according to an embodiment of the invention in browser the flow chart of steps of the embodiment of the method 1 of Web page loading;
Fig. 2 show a kind of according to an embodiment of the invention in browser the flow chart of steps of the embodiment of the method 2 of Web page loading;
Fig. 3 show a kind of according to an embodiment of the invention in browser the flow chart of steps of the embodiment of the method 3 of Web page loading;
Fig. 4 show a kind of according to an embodiment of the invention in browser the flow chart of steps of the embodiment of the method 4 of Web page loading;
Fig. 5 show a kind of according to an embodiment of the invention in browser the structured flowchart of the device embodiment 1 of Web page loading;
Fig. 6 show a kind of according to an embodiment of the invention in browser the structured flowchart of the device embodiment 2 of Web page loading;
Fig. 7 show a kind of according to an embodiment of the invention in browser the structured flowchart of the device embodiment 3 of Web page loading; And
Fig. 8 show a kind of according to an embodiment of the invention in browser the structured flowchart of the device embodiment 4 of Web page loading.
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 accompanying drawing, but should be appreciated that and can realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order more thoroughly to understand the disclosure that these embodiment are provided, and can be by the those skilled in the art that conveys to complete the scope of the present disclosure.
With reference to Fig. 1, show a kind of according to an embodiment of the invention in browser the flow chart of steps of the embodiment of the method 1 of Web page loading, specifically can comprise the steps:
Step 101, the webpage that browse request is downloaded to is resolved, and obtains the dom tree structured data information of described webpage;
In specific implementation, user can send the load request request of loading webpage of webpage.The load request of webpage can refer to the instruction of certain webpage of loading that user sends.For example, user can load a webpage by clicking certain linking request, or carrys out webpage of request of loading etc. in address field input network address.In the time that user clicks certain link, be just equivalent to receive the load request of user's Web page loading; Equally, in the time inputting certain network address at address field and click confirming button or press enter key, be also equivalent to receive the load request of user's Web page loading.
Wherein, the content of load request can comprise the mark of webpage and/or the feature of webpage of user's request of loading.Banner can be the information that can represent a well-determined webpage, for example Uniform Resource Identifier (Uniform Resource Identifier, URI), Uniform Resource Identifier specifically can comprise again URL(uniform resource locator) (Uniform Resource Locator, URL), or unified resource title (Uniform Resource Name, URN) etc.
In browser, receive after the load request of webpage, browser can pass through DNS (Domain Name System, domain name analysis system) resolve and search IP (Internet Protocol, the agreement interconnecting between the network) address that the domain name (Domain Name) in this webpage URL is shone upon.After obtaining the success of IP address, browser can connect to the server request at this place, IP address.After successfully connecting the server at this place, IP address, browser end can initiate to the server at this place, IP address the request that webpage loads by HTTP (Hypertext transfer protocol, HTTP) agreement by request header information.It is pending that this server receives after this request etc., and the most backward browser end returns to response.
Now, under http protocol, browser can receive from server the document of HTML (Hypertext Markup Language, HTML (Hypertext Markup Language)) type.Browser can be resolved html document, generates the object of tree structure, i.e. DOM (Document ObjectModel, document dbject model) tree construction data message.
Step 102, obtains the web page element text of specified type in described dom tree structured data information; Described web page element text comprises location, source place;
In actual applications, described dom tree structured data information can comprise one or more nodal informations, and each web page element can be a node in dom tree structured data information, and these objects can represent the web page element such as word, picture.
Node in dom tree structured data information has hierarchical relationship each other.Can adopt the terms such as father (parent), son (child) and compatriot (sibling) to be used for describing these relations.Wherein, father node has child node.Child node at the same level is called as compatriot (brothers or sisters).In node tree, top node is called as root (root).Each node has father node, except root (it does not have father node).A node can have the son of any amount, and compatriot is the node that has identical father node.
In the optional embodiment of one of the present invention, step 102 can comprise following sub-step:
Sub-step S11 mates the address information of described webpage in default web page element list of types;
In specific implementation, the address information of webpage can be URL etc., in described web page element list of types, can store the corresponding relation of the address information of webpage and the type information of web page element, instruction browser can be downloaded to specified type web page element content storage server the web page element of specified type in this webpage.
Sub-step S12 in the time that the match is successful, extracts the type information that needs the web page element of downloading from web page element list of types;
In the time that the match is successful, can show that the web page element of specified type in this webpage is pre-stored in specified type web page element content storage server, need to know the type information of web page element.
In the optional example of one of the embodiment of the present invention, the web page element of described specified type can comprise following at least one:
Text message, image information, voice data, video data.
Wherein, for image information, can comprise the image of the multiple formats such as GIF, JPG, PNG; For voice data, can comprise the audio frequency of the multiple formats such as MP3, WMA, WAV, MIDI, for video data, can comprise the video data of the multiple formats such as MPEG, AVI, RM, RMVB.
For example, the example of this web page element list of types is as shown in the table:
The address information of webpage The type information of web page element
http://photo.aaa.com.cn/ Image information
http://news.bbb.com.cn/ Word message, image information, video data
http://2014.ccc.com.cn/ Image information, video data
http://book.ddd.com.cn/ Word message
Wherein, webpage corresponding to network address " http://photo.aaa.com.cn/ " can be certain webpage channel that image is provided specially, and the image information comprising is more; Webpage corresponding to network address " http://news.bbb.com.cn/ " can be certain webpage channel that news is provided specially, and the Word message comprising, image information, video data are all many; Webpage corresponding to network address " http: // 2014.ccc.com.cn/ " can be certain webpage channel that world cup race information in 2014 is provided specially, and the image information comprising, video data are all many; Webpage corresponding to network address " http://book.ddd.com.cn/ " can be certain webpage channel that books and periodicals information is provided specially, and the Word message comprising is many.
The type of the web page element that different web pages comprises is different, but user makes the number of request of web page element of the type larger to the request of this webpage, for example, and the volume of this web page element (image information) itself is also larger, in order to alleviate the download pressure of web page server, therefore can be in specified type web page element content storage server the web page element of specified type in pre-stored this webpage.
Certainly, the web page element of above-mentioned judgement specified type, just as example, in the time implementing the embodiment of the present invention, can arrange according to actual conditions the web page element of other specified type, and the embodiment of the present invention is not limited this.In addition, except the web page element of above-mentioned specified type, those skilled in the art can also adopt the web page element of other specified type according to actual needs, and the embodiment of the present invention is not also limited this.
Sub-step S13 when described type information is when mating in described nodal information, extracts the web page element text of described specified type from described nodal information.
In actual applications, can search by several method the web page element of wishing operation (for example specified type) at node tree:
For example, can be by using getElementById () method and getElementsByTagName () method to search.
Again for example, can be by using parentNode, firstChild and the lastChild attribute of a node element.
Wherein, these two kinds of methods of getElementById () and getElementsByTagName (), can search any web page element in whole html document.And these two kinds of methods are ignored the structure of document conventionally, if search <p> elements all in document, getElementsByTagName () method can all find them, no matter which level of <p> element in document.Meanwhile, getElementById () method also can be returned to correct element, no matter where it is hidden in file structure.These two kinds of methods can provide any needed html element element, no matter their residing positions in document.
In addition, getElementById () can return to web page element by the ID specifying.
It should be noted that, the web page element finding can be web page element text, the address of for example originating, but not web page element content, i.e. web page element data itself.
For example, the type information of the web page element of specifying in webpage corresponding to network address " http://photo.aaa.com.cn/ " is image information, if finding the address, source of web page element in the node in the dom tree structured data information of this webpage is " http://photo.aaa.com.cn/img/bdlogo.gif ", this address, source can show that the form of corresponding web page element is GIF, belong to image information, can extract this address, source.
Step 103, according to the address, source of specified type web page element, asks to carry out the download of described specified type web page element content to the specified type web page element storage server that browser is corresponding;
In specific implementation, specified type web page element storage server can be caching server (cacheserver), be deployed in a large number in the network computer room of multiple appointed areas, for example each urban district, form caching server cluster, for the browser of appointed area is provided by the download of the web page element content of specified type (as provide).
In recent years, Internet (the Internet) applies with unprecedented speed increment, large-scale terminal user proposes higher requirement to bandwidth, if lack careful management, this bandwidth requirement means expensive expense concerning ISP, in addition, for example, will cause a large amount of immeasurable delays from the Internet request of data of terminal (browser) each time.
Caching server is played the part of an intermediary role between terminal and whole Internet, an effective caching server directly request for response terminal as much as possible, reduce the request quantity of transmitting by Internet, different with the limited caching function of Web browser, caching server is served a large amount of users with a large amount of storage spaces simultaneously.Thereby, caching server can be that popular Web website Quick supplies up-to-date data, the access speed of other Web websites that caching server can also accelerate to have been crossed by local user access, the user who exceeds browser rs cache restriction for those demand datas is particularly useful.
By disposing caching server, the data that originally visit Internet resource can be converted into access cache server, effectively save massive band width.
Browser can start the html document of display web page, and the address, source that obtains wherein embedded web page element, if the address, source of specified type web page element, can ask to carry out the download of specified type web page element content to specified type web page element storage server; If not the address, source of specified type web page element, the download that can ask to download to web page server this web page element content.
In the optional embodiment of one of the present invention, described web page element list of types can generate according to user's operation information.
Apply the embodiment of the present invention, specified type web page element storage server can gather in advance by variety of way user's operation information, wherein can comprise at least one in user's local operation behavioural information and user's online operation behavior information.
This user behavior information can be gathered by the client software being arranged on subscriber equipment, and wherein, described subscriber equipment can comprise all kinds of intelligent terminals such as computing machine, notebook computer, mobile phone, PDA, panel computer.
Several collection users' local operation behavioural information is below provided, and/or, the example of user's online operation behavior information:
Example 1, gathers the online operation behavior information in user's a period of time by browser, comprises the webpage collected in the network address of access and corresponding access times, browser collection folder etc.;
As the online operation behavior information gathering by browser in user 15 days is:
Access network address Access times
www.aaa.com 31
www.bbb.com 2
www.ccc.com 7
www.ddd.com 4
Example 2, by being arranged on the local operation behavioural information of the fail-safe software collection user on subscriber equipment, as by the local behavioural information gathering in user 15 days being: open certain TV play and the frequency thereof, open certain game and the frequency thereof etc.
By the analysis of the operation information to user, can obtain user's behavioural habits, as user habit is accessed some website, or have larger demand to searching for/access the website of which type, specified type web page element content storage server can be downloaded the web page element of specified type in this website in advance.For example, the web page element of specified type or receive the web page element of the specified type of this website initiatively submitting in Preset Time (as 6 o'clock every days) is downloaded this website.Simultaneously, specified type web page element storage server can upgrade web page element list of types, and at the appointed time or when browser free time (downloading as do not carried out web page access or file), web page element list of types is pushed in browser.
It should be noted that, because user's behavioural habits have the ageing of part, user is accessed relatively concentrated, for example, during Football World Championship, user accesses the report that world cup race is relevant in a large number, but after the ageing inefficacy in this part, user accesses and can reduce thereupon, and for example, after Football World Championship finishes, user tends to a large amount of minimizings to the relevant report of this world cup race, therefore, web page element list of types is along with the variation of user behavior custom can exist local variation's property.Certainly, the behavioural habits that form due to user self interest have relative stability, for example user likes football race, the relevant report of the league football match races such as often access England Premier League, Division A League Matches of Spanish Football, and also can there is relative stability in web page element list of types therefore.
In the optional embodiment of one of the present invention, described specified type web page element content storage server can be returned to web page element content in the following manner:
Sub-step S21, in the time that web page element content corresponding to address, described source is stored in described specified type web page element storage server, judges that whether described web page element content is expired; If so, carry out sub-step S22, if not, carry out sub-step S23;
Sub-step S22, according to address, described source from web page server downloading web pages element content corresponding to described webpage;
Sub-step S23, extracts web page element content corresponding to address, described source;
Sub-step S24, returns to described web page element content to browser.
In specific implementation, if specified type web page element storage server finds this address, source, can show that web page element corresponding to this address, source downloaded in advance and stored.
Browser, in the request header information of the webpage load request sending to web page server, has comprised the expired time of web page element.
Browser is encapsulated in specified type web page element storage server by this expired time and sends in the request of downloading specified type web page element, is sent to specified type web page element storage server.
Specified type web page element storage server can contrast this expired time and the download time of downloading this web page element, if download time does not exceed expired time, can show that this web page element content is effective, return to server after extracting this web page element content; If download time exceedes expired time, can show this web page element content expire, need to download web page element content corresponding to this address, source to web page server, then return to browser.
In the optional embodiment of another kind of the present invention, described specified type web page element storage server can return to web page element content in the following manner:
Sub-step S31, in the time that web page element content corresponding to address, described source is not stored in described specified type web page element storage server, according to address, described source from web page server downloading web pages element content corresponding to described webpage;
Sub-step S32, returns to described web page element content to browser.
In specific implementation, if specified type web page element storage server does not find this address, source, can show not downloaded stored of web page element corresponding to this address, source, need to download web page element content corresponding to this address, source to web page server, then return to browser.
Step 104, in the time playing up Web page loading, is used the specified type web page element of downloading from specified type web page element storage server to play up, and is carried in webpage.
When browser gets the web page element in webpage, can in the html document of browser, play up operation, to show this web page element in interface.
For making those skilled in the art understand better the embodiment of the present invention, below by taking browser access URL Web page loading as example, the process of embodiment of the present invention Web page loading is described:
1. in the time detecting that user inputs network address (suppose it is a html page, and be to access for the first time), browser sends the webpage of this network address instruction of request of loading to web page server, and server returns to corresponding html text;
2. browser starts to be written into the source code of html text, when detecting while having a < link > label in < head > label, needs to quote outside CSS file;
3. browser sends the request of CSS file to web page server, and server returns to corresponding CSS file;
4. browser continues to be written into the code of < body > part in html text, and now CSS file receives, and can start to play up webpage;
5. in the time that browser detects a < img > label in html text, need to quote a pictures, for the web page element of specified type, send to specified type web page element storage server the request Loading Image.Now browser can not wait for that picture downloaded, but continues to play up code below;
6. specified type web page element storage server returns to picture file, because picture has taken certain area, has affected arranging of subsequent paragraphs, and therefore browser need to be played up this part code again;
7. in the time that browser detects a < script > label that comprises a line JavaScript code, move immediately;
8. adopt JavaScript script to carry out above-mentioned statement, its order browser hides certain < div > in code (style.display=" none "), owing to having lacked < div > element, browser need to be played up this part code again;
9. in the time </HTML > being detected, played up;
10. when user clicks " changing skin " button in interface, JavaScript allows browser change the CSS path of < link > label;
11. browsers adopt each elements such as < div >, < span >, < ul >, < li >, and the CSS file that please look for novelty to web page server, again play up the page.
The webpage that the embodiment of the present invention downloads to browse request is resolved, obtain the web page element text of specified type in dom tree structured data information, ask to carry out the download of specified type web page element content to the specified type web page element storage server that browser is corresponding, in the time playing up Web page loading, use the specified type web page element of downloading from specified type web page element storage server to play up, be carried in webpage, by the download to specified type web page element storage server requests web page element, on the one hand, reduce the path while download to web page server request, reduce the exchange capacity of network, bandwidth resources are effectively saved, reduce the download time of web page element, and then promote the loading velocity of webpage, on the other hand, reduce the request quantity of web page server, alleviated calculation server and the bandwidth occupancy of web page server, improved the efficiency of web page server Web page loading.
With reference to Fig. 2, show a kind of according to an embodiment of the invention in browser the flow chart of steps of the embodiment of the method 2 of Web page loading, specifically can comprise the steps:
Step 201, the webpage that browse request is downloaded to is resolved, and obtains the dom tree structured data information of described webpage;
Step 202, obtains the web page element text of specified type in described dom tree structured data information; Described web page element text comprises location, source place;
Step 203, according to the address, source of specified type web page element, asks to carry out the download of described specified type web page element content to the specified type web page element storage server that browser is corresponding;
Step 204, in the time playing up Web page loading, is used the specified type web page element of downloading from specified type web page element storage server to play up, and is carried in webpage;
Step 205, when exceeding default time threshold, and while not receiving web page element content corresponding to address, described source from described specified type web page element storage server, according to address, described source from web page server downloading web pages element content corresponding to described webpage.
In embodiments of the present invention, browser is to the download of the request specified type web page element content of specified type web page element storage server, specified type web page element storage server (exceedes default time threshold) and does not all calculate result within a period of time, browser can directly disconnect request so, initiates the download of specified type web page element content to web page server.
This time also can be referred to as time-out time, and specified type web page element storage server may run into various mistakes, can not, because of these mistakes, ask to keep and allow always, takies browse request number.
The embodiment of the present invention is exceeding default time threshold, and while not receiving web page element content corresponding to address, source from specified type web page element storage server, according to source address from web page server downloading web pages element content corresponding to described webpage, make to load and may run into failure or overtime at web page element, or some other abnormal situation, cannot receive web page element content corresponding to address, source from specified type web page element storage server time, Web page loading element within the acceptable time, ensure the operation of webpage normal function.
Step 206, carries out synchronous operation by the web page element of described specified type and other browsers.
In specific implementation, if other browsers are initiated the load request of webpage, current browser can pass through P2P (PeertoPeer, peer-to-peer network) etc. mode and other browsers carry out synchronous operation, so that the web page element of formulating type is sent to other browsers, realize the loading of this webpage in other browsers.
Other browsers can be arranged in same community with current browser, and community is the area unit of communication management the inside.According to the coverage of communication network signal, real geographic area can be divided into different management areas, under each management area, there are some users to access wherein, and communicate.In practice, community can be a management area that school forms, and can be also management area of forming, a few streets etc.
Communication in community between browser, mutual node is few, and communication speed, than fast with specified type web page element storage server, has improved the speed of download of web page element, has further accelerated the loading velocity of webpage.
The embodiment of the present invention at other browsers in the time loading identical webpage, carry out synchronous specified type web page element from current browser, avoid other browsers to send download request to specified type web page element storage server, further reduced the system resource burden of specified type web page element storage server.
With reference to Fig. 3, show a kind of according to an embodiment of the invention in browser the flow chart of steps of the embodiment of the method 3 of Web page loading, specifically can comprise the steps:
Step 301, the webpage that browse request is downloaded to is resolved, and obtains the dom tree structured data information of described webpage;
Step 302, obtains the web page element text of specified type in described dom tree structured data information; Described web page element text comprises location, source place;
Step 303, according to the address, source of specified type web page element, asks to carry out the download of described specified type web page element content to the specified type web page element storage server that browser is corresponding;
Step 304, in the time playing up Web page loading, is used the specified type web page element of downloading from specified type web page element storage server to play up, and is carried in webpage;
Step 305, to the web page element content of downloading from specified type web page element storage server, generates First Characteristic mark;
Step 306, according to address, described source from web page server downloading web pages element content corresponding to described webpage;
Step 307, to the web page element content of downloading from described web page server, generates Second Characteristic mark;
Step 308, in the time that described First Characteristic mark is not identical with described Second Characteristic mark, generates information;
Step 309, is sent to described specified type web page element storage server by described information.
In embodiments of the present invention, to the web page element content of downloading from specified type web page element storage server, generation First Characteristic mark, this First Characteristic mark can be the information that can represent a well-determined web page element, for example MD5 (Message-Digest Algorithm5, message digest algorithm 5) value, Hash (Hash) value, SHA1 (Secure Hash Algorithm, Secure Hash Algorithm) value etc.
Similarly, identify identical rule to generate First Characteristic, to the web page element content of downloading from web page server, generate Second Characteristic mark, this Second Characteristic mark can be the information that can represent a well-determined web page element.For example, if First Characteristic is designated MD5 value, Second Characteristic mark also needs the value for MD5; If First Characteristic is designated hash value, Second Characteristic mark also needs for hash value; First Characteristic is designated SHA1 value, and Second Characteristic mark also needs the value for SHA1, etc.
When First Characteristic mark and Second Characteristic identify when identical, can show that the web page element content of downloading is correct in specified type web page element storage server; In the time that First Characteristic mark is not identical with Second Characteristic mark, can show that the web page element content of downloading is incorrect in specified type web page element storage server, need to point out this web page element of specified type web page element storage server to make mistakes, to proofread and correct.
The contrast that the embodiment of the present invention identifies by First Characteristic and Second Characteristic identifies, judges that whether the web page element of specified type is correct, has reduced the generation of error rate, has improved practicality.
With reference to Fig. 4, show a kind of according to an embodiment of the invention in browser the flow chart of steps of the embodiment of the method 4 of Web page loading, specifically can comprise the steps:
Step 401, the webpage in the first browser kernel, browse request being downloaded to is resolved, and obtains the dom tree structured data information of described webpage;
Step 402 is obtained the web page element text of specified type in described dom tree structured data information in the first browser kernel;
Step 403, the download of described specified type web page element content is asked to carry out to specified type web page element storage server corresponding to browser in the address, source according to specified type web page element in the first browser kernel;
Step 404, in the time playing up Web page loading, in the second browser kernel, adopt the address, source of the specified type web page element that address, source and, described first browser kernel of the web page element of specified type download from specified type web page element storage server to mate;
Step 405, in the time that the match is successful, the specified type web page element content that adopts described the first browser kernel to download from specified type web page element storage server is played up.
In embodiments of the present invention, browser can comprise two or more browser kernels, wherein at least comprises at least one in the first browser kernel and the second browser kernel.
The first browser kernel can be the browser kernel that the current acquiescence of browser is used, and the browser kernel of this acquiescence can be system setting, also can make user arrange, and can be specifically the browser kernel of the contour performance of Webkit kernel.Certainly, can also be Gecko kernel, Presto kernel etc., the embodiment of the present invention is not limited this.
The second browser kernel can be built-in other browser kernels except the first browser kernel of browser, can be in the loading of the adaptive current web page of some situation, can be Trident kernel (being IE kernel), comprise IE-com kernel (compatible IE kernel) and/or IE-stand kernel.Certainly, can also be Gecko kernel, Presto kernel etc., the embodiment of the present invention is not limited this.
In specific implementation, can in the first browser kernel, receive the load request of current web page, carry out the download of web page element.
In the time judging that current web page is suitable for adopting the second browser kernel to load, can start the second browser kernel.
In the time being switched to the second browser kernel and playing up, can pass through IPC (Inter-ProcessCommunication, interprocess communication, be a kind of mechanism of Inter-Process Communication, the process of operating system and thread can be by its swap data and message) communication adopts the web page element of the first browser kernel download to play up.
Particularly, and the address, source (for example URL) of the web page element that browser kernel is played up needs by I/O thread is sent to the first browser kernel, the first browser kernel in buffer memory to the first browser kernel downloading web pages element according to source address (for example URL) contrast, if address, source is consistent, this web page element that can extract from buffer memory, is sent to the second browser kernel by I/O thread by this web page element.
And the mode that different browser kernels is played up can be different, taking Trident kernel as example, loading and play up html page can be as follows:
1, the order of Trident kernel downloading web pages resource is from top to bottom, and the order of playing up web page resources is also from top to bottom, downloads and plays up simultaneously and carry out;
2, in the time being rendered into certain part of the page, all parts above it have all been downloaded (being not that all elements that are associated have all been downloaded);
If 3 labels that run into semantic interpretation embed files (JS script, CSS pattern), so now the downloading process of Trident kernel can be enabled independent connection and downloaded;
4 and resolve after download, in resolving, stop the download of all down elements of the page;
5, style sheet is after download completes, by with before resolve together with all style sheet of download, after being parsed, will all elements (containing what played up in the past) before this being re-started and be played up;
6, in JS, CSS if any redefining, rear defined function will cover front defined function.
The embodiment of the present invention starts the second browser kernel in the time that judgement current web page is suitable for adopting the second browser kernel to load, carry out the switching of browser kernel, the web page element of the buffer memory obtaining while request for the first browser kernel is sent to the web page element obtaining in the second browser kernel and plays up loading by IPC, reuse, avoid repeated obtain web page element, improved the loading velocity of webpage.
For embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the embodiment of the present invention is not subject to the restriction of described sequence of movement, because according to the embodiment of the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and related action might not be that the embodiment of the present invention is necessary.
With reference to Fig. 5, show a kind of according to an embodiment of the invention in browser the structured flowchart of the device embodiment 1 of Web page loading, specifically can comprise as lower module:
Dom tree obtains module 501, and the webpage that is suitable for browse request to download to is resolved, and obtains the dom tree structured data information of described webpage;
Web page element text obtains module 502, is suitable for obtaining the web page element text of specified type in described dom tree structured data information; Described text comprises location, source place;
Web page element content download module 503, is suitable for the address, source according to specified type web page element, asks to carry out the download of described specified type web page element content to the specified type web page element storage server that browser is corresponding;
Web page element rendering module 504, is suitable in the time playing up Web page loading, uses the specified type web page element of downloading from specified type web page element storage server to play up, and is carried in webpage.
In the optional embodiment of one of the present invention, described dom tree structured data information can comprise one or more nodal informations;
Described dom tree obtains module 501 and can also be suitable for:
The address information of described webpage is mated in default web page element list of types;
In the time that the match is successful, from web page element list of types, extract the type information that needs the web page element of downloading;
When described type information is when mating in described nodal information, from described nodal information, extract the web page element text of described specified type.
In the optional embodiment of one of the present invention, in described web page element list of types, can store the corresponding relation of the address information of webpage and the type information of web page element;
Described web page element list of types can generate according to user's operation information.
In the optional example of one of the embodiment of the present invention, the web page element of described specified type comprise following at least one:
Text message, image information, voice data, video data.
In the optional embodiment of one of the present invention, described specified type web page element content storage server can be returned to web page element content in the following manner:
In the time that web page element content corresponding to address, described source is stored in described specified type web page element storage server, judge that whether described web page element content is expired; If so, according to address, described source from web page server downloading web pages element content corresponding to described webpage; If not, extract web page element content corresponding to address, described source;
Return to described web page element content to browser.
In the optional embodiment of one of the present invention, state specified type web page element storage server and can return in the following manner web page element content:
In the time that web page element content corresponding to address, described source is not stored in described specified type web page element storage server, according to address, described source from web page server downloading web pages element content corresponding to described webpage;
Return to described web page element content to browser.
With reference to Fig. 6, show a kind of according to an embodiment of the invention in browser the structured flowchart of the device embodiment 2 of Web page loading, specifically can comprise as lower module:
Dom tree obtains module 601, and the webpage that is suitable for browse request to download to is resolved, and obtains the dom tree structured data information of described webpage;
Web page element text obtains module 602, is suitable for obtaining the web page element text of specified type in described dom tree structured data information; Described text comprises location, source place;
Web page element content download module 603, is suitable for the address, source according to specified type web page element, asks to carry out the download of described specified type web page element content to the specified type web page element storage server that browser is corresponding;
Web page element rendering module 604, is suitable in the time playing up Web page loading, uses the specified type web page element of downloading from specified type web page element storage server to play up, and is carried in webpage.
Overtime download module 605, be suitable for exceeding default time threshold, and while not receiving web page element content corresponding to address, described source from described specified type web page element storage server, according to address, described source from web page server downloading web pages element content corresponding to described webpage.
Synchronous operation module 606, is suitable for the web page element of described specified type and other browsers to carry out synchronous operation.
With reference to Fig. 7, show a kind of according to an embodiment of the invention in browser the structured flowchart of the device embodiment 3 of Web page loading, specifically can comprise as lower module:
Dom tree obtains module 701, and the webpage that is suitable for browse request to download to is resolved, and obtains the dom tree structured data information of described webpage;
Web page element text obtains module 702, is suitable for obtaining the web page element text of specified type in described dom tree structured data information; Described text comprises location, source place;
Web page element content download module 703, is suitable for the address, source according to specified type web page element, asks to carry out the download of described specified type web page element content to the specified type web page element storage server that browser is corresponding;
Web page element rendering module 704, is suitable in the time playing up Web page loading, uses the specified type web page element of downloading from specified type web page element storage server to play up, and is carried in webpage.
The first generation module 705, is suitable for the web page element content downloaded from specified type web page element storage server, generates First Characteristic mark;
Original download module 706, is suitable for according to address, described source from web page server downloading web pages element content corresponding to described webpage;
The second generation module 707, is suitable for the web page element content to downloading from described web page server, generates Second Characteristic mark;
Information generation module 708, is suitable for, in the time that described First Characteristic mark is not identical with described Second Characteristic mark, generating information;
Information sending module 709, is suitable for described information to be sent to described specified type web page element storage server.
With reference to Fig. 8, show a kind of according to an embodiment of the invention in browser the structured flowchart of the device embodiment 4 of Web page loading, described browser at least comprises at least one in the first browser kernel and the second browser kernel, specifically can comprise as lower module:
Dom tree obtains module 801, and the webpage that is suitable in the first browser kernel, browse request being downloaded to is resolved, and obtains the dom tree structured data information of described webpage.
Web page element text obtains module 802, is suitable for obtaining the web page element text of specified type in described dom tree structured data information in the first browser kernel.
Web page element content download module 803, is suitable for the address, source according to specified type web page element in the first browser kernel and asks to carry out the download of described specified type web page element content to specified type web page element storage server corresponding to browser.
Web page element rendering module 804, be suitable in the time playing up Web page loading, in the second browser kernel, adopt the address, source of the specified type web page element that address, source and, described first browser kernel of the web page element of specified type download from specified type web page element storage server to mate;
In the time that the match is successful, the specified type web page element content that adopts described the first browser kernel to download from specified type web page element storage server is played up.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
The algorithm providing at this is intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with demonstration.Various general-purpose systems also can with based on using together with this teaching.According to description above, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.It should be understood that and can utilize various programming languages to realize content of the present invention described here, and the description of above language-specific being done is in order to disclose preferred forms of the present invention.
In the instructions that provided herein, a large amount of details are described.But, can understand, embodiments of the invention can be put into practice in the situation that there is no these details.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 above in the description of exemplary embodiment of the present invention, each feature of the present invention is grouped together into single embodiment, figure or sometimes in its description.But, the method for the disclosure should be construed to the following intention of reflection: the present invention for required protection requires than the more feature of feature of clearly recording in each claim.Or rather, as reflected in claims below, inventive aspect is to be less than all features of disclosed single embodiment above.Therefore, claims of following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can the module in the equipment in embodiment are adaptively changed and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and can put them in addition multiple submodules or subelement or sub-component.At least some in such feature and/or process or unit are mutually repelling, and can adopt any combination to combine all processes or the unit of disclosed all features in this instructions (comprising claim, summary and the accompanying drawing followed) and disclosed any method like this or equipment.Unless clearly statement in addition, in this instructions (comprising claim, summary and the accompanying drawing followed) disclosed each feature can be by providing identical, be equal to or the alternative features of similar object replaces.
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature instead of further feature included in other embodiment, the combination of the feature of different embodiment means within 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 array mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, or realizes with the software module of moving on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that and can use in practice microprocessor or digital signal processor (DSP) to realize according to the some or all functions of the some or all parts in the equipment of Web page loading in browser of the embodiment of the present invention.The present invention can also be embodied as part or all equipment or the device program (for example, computer program and computer program) for carrying out method as described herein.Realizing program of the present invention and can be stored on computer-readable medium like this, or can there is the form of one or more signal.Such signal can be downloaded and obtain from internet website, or provides on carrier signal, or provides with any other form.
It should be noted above-described embodiment the present invention will be described instead of limit the invention, and those skilled in the art can design alternative embodiment in the case of not departing from the scope of 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 as element or step in the claims.Being positioned at word " " before element or " one " does not get rid of and has multiple such elements.The present invention can be by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim of having enumerated some devices, several in these devices can be to carry out imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title by these word explanations.
The embodiment of the invention discloses A1, a kind of in browser the method for Web page loading, comprising:
The webpage that browse request is downloaded to is resolved, and obtains the dom tree structured data information of described webpage;
Obtain the web page element text of specified type in described dom tree structured data information; Described web page element text comprises location, source place;
According to the address, source of specified type web page element, ask to carry out the download of described specified type web page element content to the specified type web page element storage server that browser is corresponding;
In the time playing up Web page loading, use the specified type web page element of downloading from specified type web page element storage server to play up, be carried in webpage.
A2, method as described in A1, described dom tree structured data information comprises one or more nodal informations;
The described step of obtaining the web page element text of specified type in described dom tree structured data information comprises:
The address information of described webpage is mated in default web page element list of types;
In the time that the match is successful, from web page element list of types, extract the type information that needs the web page element of downloading;
When described type information is when mating in described nodal information, from described nodal information, extract the web page element text of described specified type.
A3, method as described in A2, store the corresponding relation of the address information of webpage and the type information of web page element in described web page element list of types;
Described web page element list of types generates according to user's operation information.
A4, method as described in A1 or A2 or A3, the web page element of described specified type comprise following at least one:
Text message, image information, voice data, video data.
A5, method as described in A1, described specified type web page element content storage server is returned to web page element content in the following manner:
In the time that web page element content corresponding to address, described source is stored in described specified type web page element storage server, judge that whether described web page element content is expired; If so, according to address, described source from web page server downloading web pages element content corresponding to described webpage; If not, extract web page element content corresponding to address, described source;
Return to described web page element content to browser.
A6, method as described in A1, described specified type web page element storage server returns to web page element content in the following manner:
In the time that web page element content corresponding to address, described source is not stored in described specified type web page element storage server, according to address, described source from web page server downloading web pages element content corresponding to described webpage;
Return to described web page element content to browser.
A7, method as described in A1 or A2 or A3 or A5 or A6, also comprise:
When exceeding default time threshold, and while not receiving web page element content corresponding to address, described source from described specified type web page element storage server, according to address, described source from web page server downloading web pages element content corresponding to described webpage.
A8, method as described in A1 or A2 or A3 or A5 or A6, also comprise:
The web page element of described specified type and other browsers are carried out to synchronous operation.
A9, method as described in A1 or A2 or A3 or A5 or A6, also comprise:
To the web page element content of downloading, generate First Characteristic mark from specified type web page element storage server;
According to address, described source from web page server downloading web pages element content corresponding to described webpage;
To the web page element content of downloading from described web page server, generate Second Characteristic mark;
In the time that described First Characteristic mark is not identical with described Second Characteristic mark, generate information;
Described information is sent to described specified type web page element storage server.
A10, method as described in A1 or A2 or A3 or A5 or A6, described browser at least comprises the first browser kernel;
The described webpage that browse request is downloaded to is resolved, and the step that obtains the dom tree structured data information of described webpage comprises:
The webpage in the first browser kernel, browse request being downloaded to is resolved, and obtains the dom tree structured data information of described webpage.
A11, method as described in A10, described in obtain the web page element of specified type in described dom tree structured data information step comprise:
In the first browser kernel, obtain the web page element text of specified type in described dom tree structured data information.
A12, method as described in A11, the described address, source according to specified type web page element asks the step of the download of carrying out described specified type web page element content to comprise to specified type web page element storage server corresponding to browser:
The download of described specified type web page element content is asked to carry out to specified type web page element storage server corresponding to browser in address, source according to specified type web page element in the first browser kernel.
A13, method as described in A12, described browser at least also comprises the second browser kernel;
Described in the time playing up Web page loading, use the specified type web page element of downloading from specified type web page element storage server to play up, the step being carried in webpage comprises:
In the time playing up Web page loading, in the second browser kernel, adopt the address, source of the specified type web page element that address, source and, described first browser kernel of the web page element of specified type download from specified type web page element storage server to mate;
In the time that the match is successful, the specified type web page element content that adopts described the first browser kernel to download from specified type web page element storage server is played up.
The embodiment of the invention also discloses B14, a kind of in browser the device of Web page loading, comprising:
Dom tree obtains module, and the webpage that is suitable for browse request to download to is resolved, and obtains the dom tree structured data information of described webpage;
Web page element text obtains module, is suitable for obtaining the web page element text of specified type in described dom tree structured data information; Described text comprises location, source place;
Web page element content download module, is suitable for the address, source according to specified type web page element, asks to carry out the download of described specified type web page element content to the specified type web page element storage server that browser is corresponding;
Web page element rendering module, is suitable in the time playing up Web page loading, uses the specified type web page element of downloading from specified type web page element storage server to play up, and is carried in webpage.
B15, device as described in B14, described dom tree structured data information comprises one or more nodal informations;
Described dom tree obtains module and is also suitable for:
The address information of described webpage is mated in default web page element list of types;
In the time that the match is successful, from web page element list of types, extract the type information that needs the web page element of downloading;
When described type information is when mating in described nodal information, from described nodal information, extract the web page element text of described specified type.
B16, device as described in B15, store the corresponding relation of the address information of webpage and the type information of web page element in described web page element list of types;
Described web page element list of types generates according to user's operation information.
B17, device as described in B14 or B15 or B16, the web page element of described specified type comprise following at least one:
Text message, image information, voice data, video data.
B18, device as described in B14, described specified type web page element content storage server is returned to web page element content in the following manner:
In the time that web page element content corresponding to address, described source is stored in described specified type web page element storage server, judge that whether described web page element content is expired; If so, according to address, described source from web page server downloading web pages element content corresponding to described webpage; If not, extract web page element content corresponding to address, described source;
Return to described web page element content to browser.
B19, device as described in B14, state specified type web page element storage server and return in the following manner web page element content:
In the time that web page element content corresponding to address, described source is not stored in described specified type web page element storage server, according to address, described source from web page server downloading web pages element content corresponding to described webpage;
Return to described web page element content to browser.
B20, device as described in B14 or B15 or B16 or B18 or B19, also comprise:
Overtime download module, be suitable for exceeding default time threshold, and while not receiving web page element content corresponding to address, described source from described specified type web page element storage server, according to address, described source from web page server downloading web pages element content corresponding to described webpage.
B21, device as described in B14 or B15 or B16 or B18 or B19, also comprise:
Synchronous operation module, is suitable for the web page element of described specified type and other browsers to carry out synchronous operation.
B22, device as described in B14 or B15 or B16 or B18 or B19, also comprise:
The first generation module, is suitable for the web page element content downloaded from specified type web page element storage server, generates First Characteristic mark;
Original download module, is suitable for according to address, described source from web page server downloading web pages element content corresponding to described webpage;
The second generation module, is suitable for the web page element content to downloading from described web page server, generates Second Characteristic mark;
Information generation module, is suitable for, in the time that described First Characteristic mark is not identical with described Second Characteristic mark, generating information;
Information sending module, is suitable for described information to be sent to described specified type web page element storage server.
B23, device as described in B14 or B15 or B16 or B18 or B19, described browser at least comprises the first browser kernel;
Described dom tree obtains module and is also suitable for:
The webpage in the first browser kernel, browse request being downloaded to is resolved, and obtains the dom tree structured data information of described webpage.
B24, device as described in B23, described web page element text obtains module and is also suitable for:
In the first browser kernel, obtain the web page element text of specified type in described dom tree structured data information.
B25, device as described in B24, described web page element content download module is also suitable for:
The download of described specified type web page element content is asked to carry out to specified type web page element storage server corresponding to browser in address, source according to specified type web page element in the first browser kernel.
B26, device as described in B25, described browser at least also comprises the second browser kernel;
Described web page element rendering module is also suitable for:
In the time playing up Web page loading, in the second browser kernel, adopt the address, source of the specified type web page element that address, source and, described first browser kernel of the web page element of specified type download from specified type web page element storage server to mate;
In the time that the match is successful, the specified type web page element content that adopts described the first browser kernel to download from specified type web page element storage server is played up.

Claims (10)

1. a method for Web page loading in browser, comprising:
The webpage that browse request is downloaded to is resolved, and obtains the dom tree structured data information of described webpage;
Obtain the web page element text of specified type in described dom tree structured data information; Described web page element text comprises location, source place;
According to the address, source of specified type web page element, ask to carry out the download of described specified type web page element content to the specified type web page element storage server that browser is corresponding;
In the time playing up Web page loading, use the specified type web page element of downloading from specified type web page element storage server to play up, be carried in webpage.
2. the method for claim 1, is characterized in that, described dom tree structured data information comprises one or more nodal informations;
The described step of obtaining the web page element text of specified type in described dom tree structured data information comprises:
The address information of described webpage is mated in default web page element list of types;
In the time that the match is successful, from web page element list of types, extract the type information that needs the web page element of downloading;
When described type information is when mating in described nodal information, from described nodal information, extract the web page element text of described specified type.
3. method as claimed in claim 2, is characterized in that, stores the corresponding relation of the address information of webpage and the type information of web page element in described web page element list of types;
Described web page element list of types generates according to user's operation information.
4. the method as described in claim 1 or 2 or 3, is characterized in that, the web page element of described specified type comprise following at least one:
Text message, image information, voice data, video data.
5. the method for claim 1, is characterized in that, described specified type web page element content storage server is returned to web page element content in the following manner:
In the time that web page element content corresponding to address, described source is stored in described specified type web page element storage server, judge that whether described web page element content is expired; If so, according to address, described source from web page server downloading web pages element content corresponding to described webpage; If not, extract web page element content corresponding to address, described source;
Return to described web page element content to browser.
6. the method for claim 1, is characterized in that, described specified type web page element storage server returns to web page element content in the following manner:
In the time that web page element content corresponding to address, described source is not stored in described specified type web page element storage server, according to address, described source from web page server downloading web pages element content corresponding to described webpage;
Return to described web page element content to browser.
7. the method as described in claim 1 or 2 or 3 or 5 or 6, is characterized in that, also comprises:
When exceeding default time threshold, and while not receiving web page element content corresponding to address, described source from described specified type web page element storage server, according to address, described source from web page server downloading web pages element content corresponding to described webpage.
8. the method as described in claim 1 or 2 or 3 or 5 or 6, is characterized in that, also comprises:
The web page element of described specified type and other browsers are carried out to synchronous operation.
9. the method as described in claim 1 or 2 or 3 or 5 or 6, is characterized in that, also comprises:
To the web page element content of downloading, generate First Characteristic mark from specified type web page element storage server;
According to address, described source from web page server downloading web pages element content corresponding to described webpage;
To the web page element content of downloading from described web page server, generate Second Characteristic mark;
In the time that described First Characteristic mark is not identical with described Second Characteristic mark, generate information;
Described information is sent to described specified type web page element storage server.
10. a device for Web page loading in browser, comprising:
Dom tree obtains module, and the webpage that is suitable for browse request to download to is resolved, and obtains the dom tree structured data information of described webpage;
Web page element text obtains module, is suitable for obtaining the web page element text of specified type in described dom tree structured data information; Described text comprises location, source place;
Web page element content download module, is suitable for the address, source according to specified type web page element, asks to carry out the download of described specified type web page element content to the specified type web page element storage server that browser is corresponding;
Web page element rendering module, is suitable in the time playing up Web page loading, uses the specified type web page element of downloading from specified type web page element storage server to play up, and is carried in webpage.
CN201410294395.0A 2014-06-25 2014-06-25 A kind of method and apparatus loading webpage in a browser Active CN104063460B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410294395.0A CN104063460B (en) 2014-06-25 2014-06-25 A kind of method and apparatus loading webpage in a browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410294395.0A CN104063460B (en) 2014-06-25 2014-06-25 A kind of method and apparatus loading webpage in a browser

Publications (2)

Publication Number Publication Date
CN104063460A true CN104063460A (en) 2014-09-24
CN104063460B CN104063460B (en) 2018-10-09

Family

ID=51551174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410294395.0A Active CN104063460B (en) 2014-06-25 2014-06-25 A kind of method and apparatus loading webpage in a browser

Country Status (1)

Country Link
CN (1) CN104063460B (en)

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077389A (en) * 2014-06-27 2014-10-01 北京奇虎科技有限公司 Display method of webpage element information and browser device
CN104462249A (en) * 2014-11-19 2015-03-25 北京奇虎科技有限公司 Webpage loading method and device
CN104965764A (en) * 2015-06-02 2015-10-07 百度在线网络技术(北京)有限公司 Static resource processing method and apparatus
CN105760284A (en) * 2016-02-01 2016-07-13 广州酷狗计算机科技有限公司 Website performance monitoring method and device
CN106528895A (en) * 2016-12-29 2017-03-22 重庆南华中天信息技术有限公司 CSS resource front-end display device
CN106547806A (en) * 2015-09-23 2017-03-29 阿里巴巴集团控股有限公司 Page loading method and device
CN107402985A (en) * 2017-07-14 2017-11-28 广州爱拍网络科技有限公司 Special video effect output control method, device and computer-readable recording medium
CN107633019A (en) * 2017-08-24 2018-01-26 阿里巴巴集团控股有限公司 A kind of page events acquisition method and device
WO2018054170A1 (en) * 2016-09-23 2018-03-29 腾讯科技(深圳)有限公司 Browser resources pre-pulling method, terminal and storage medium
CN108108367A (en) * 2016-11-24 2018-06-01 腾讯科技(深圳)有限公司 A kind of Webpage display process and device
CN108595652A (en) * 2018-04-27 2018-09-28 平安科技(深圳)有限公司 Load method, apparatus, computer equipment and the storage medium of DOM node data
CN109358919A (en) * 2018-08-20 2019-02-19 中国平安人寿保险股份有限公司 Dynamic Configuration, device, computer equipment and the storage medium of Universal page
CN109857486A (en) * 2019-02-02 2019-06-07 北京字节跳动网络技术有限公司 A kind of processing method, device, equipment and the medium of program page data
CN110134375A (en) * 2019-05-14 2019-08-16 网易(杭州)网络有限公司 Control method, device and the readable storage medium storing program for executing of game role behavior
CN110532455A (en) * 2019-09-05 2019-12-03 北京市博汇科技股份有限公司 A kind of Web page picture acquisition methods and system based on Chrome browser
CN110830839A (en) * 2018-08-08 2020-02-21 腾讯科技(深圳)有限公司 Multi-pendant display method and device and storage medium
WO2020082231A1 (en) * 2018-10-23 2020-04-30 Citrix Systems, Inc. Local secure rendering of web content
CN111125597A (en) * 2019-12-18 2020-05-08 百度在线网络技术(北京)有限公司 Webpage loading method, browser, electronic equipment and storage medium
WO2020143159A1 (en) * 2019-01-08 2020-07-16 网易(杭州)网络有限公司 User interface processing method and device
CN112016014A (en) * 2020-08-18 2020-12-01 北京达佳互联信息技术有限公司 Webpage display method, webpage resource generation method, webpage display device, webpage resource generation device, electronic equipment and medium
CN112231606A (en) * 2015-10-14 2021-01-15 创新先进技术有限公司 Webpage processing method and device
CN112784201A (en) * 2021-01-29 2021-05-11 游艺星际(北京)科技有限公司 Webpage display method, device, terminal and storage medium
CN113783911A (en) * 2020-06-10 2021-12-10 北京奇虎科技有限公司 File downloading method, device, system, equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111506380A (en) * 2020-04-22 2020-08-07 上海极链网络科技有限公司 Rendering method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075236A (en) * 2006-06-12 2007-11-21 腾讯科技(深圳)有限公司 Apparatus and method for accelerating browser webpage display
CN103279574A (en) * 2013-06-20 2013-09-04 北京小米科技有限责任公司 Method, device and terminal device for loading explorer pictures
WO2013139025A1 (en) * 2012-03-22 2013-09-26 Google Inc. Providing content
CN103530329A (en) * 2013-09-27 2014-01-22 北京奇虎科技有限公司 Method and device for performing webpage loading and browsers
CN103617165A (en) * 2013-10-22 2014-03-05 小米科技有限责任公司 Picture loading method, device and terminal
CN103678535A (en) * 2013-12-02 2014-03-26 北京奇虎科技有限公司 Browser and downloading method thereof
US8713010B1 (en) * 2013-02-19 2014-04-29 Luxian Limited Processor engine, integrated circuit and method therefor

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075236A (en) * 2006-06-12 2007-11-21 腾讯科技(深圳)有限公司 Apparatus and method for accelerating browser webpage display
WO2013139025A1 (en) * 2012-03-22 2013-09-26 Google Inc. Providing content
US8713010B1 (en) * 2013-02-19 2014-04-29 Luxian Limited Processor engine, integrated circuit and method therefor
CN103279574A (en) * 2013-06-20 2013-09-04 北京小米科技有限责任公司 Method, device and terminal device for loading explorer pictures
CN103530329A (en) * 2013-09-27 2014-01-22 北京奇虎科技有限公司 Method and device for performing webpage loading and browsers
CN103617165A (en) * 2013-10-22 2014-03-05 小米科技有限责任公司 Picture loading method, device and terminal
CN103678535A (en) * 2013-12-02 2014-03-26 北京奇虎科技有限公司 Browser and downloading method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱晓辉等: "海量图片的分布式存储及负载均衡研究", 《计算机工程》 *

Cited By (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077389A (en) * 2014-06-27 2014-10-01 北京奇虎科技有限公司 Display method of webpage element information and browser device
CN104462249A (en) * 2014-11-19 2015-03-25 北京奇虎科技有限公司 Webpage loading method and device
CN109740082A (en) * 2014-11-19 2019-05-10 北京奇虎科技有限公司 Webpage loading method and device
CN104462249B (en) * 2014-11-19 2019-02-12 北京奇虎科技有限公司 Webpage loading method and device
CN104965764A (en) * 2015-06-02 2015-10-07 百度在线网络技术(北京)有限公司 Static resource processing method and apparatus
CN106547806A (en) * 2015-09-23 2017-03-29 阿里巴巴集团控股有限公司 Page loading method and device
CN112231606A (en) * 2015-10-14 2021-01-15 创新先进技术有限公司 Webpage processing method and device
CN112231606B (en) * 2015-10-14 2024-03-12 创新先进技术有限公司 Webpage processing method and device
CN105760284A (en) * 2016-02-01 2016-07-13 广州酷狗计算机科技有限公司 Website performance monitoring method and device
WO2018054170A1 (en) * 2016-09-23 2018-03-29 腾讯科技(深圳)有限公司 Browser resources pre-pulling method, terminal and storage medium
US10666758B2 (en) 2016-09-23 2020-05-26 Tencent Technology (Shenzhen) Company Limited Browser resource pre-pulling method, terminal and storage medium
CN108108367A (en) * 2016-11-24 2018-06-01 腾讯科技(深圳)有限公司 A kind of Webpage display process and device
CN106528895A (en) * 2016-12-29 2017-03-22 重庆南华中天信息技术有限公司 CSS resource front-end display device
CN107402985B (en) * 2017-07-14 2021-03-02 广州爱拍网络科技有限公司 Video special effect output control method and device and computer readable storage medium
CN107402985A (en) * 2017-07-14 2017-11-28 广州爱拍网络科技有限公司 Special video effect output control method, device and computer-readable recording medium
CN107633019A (en) * 2017-08-24 2018-01-26 阿里巴巴集团控股有限公司 A kind of page events acquisition method and device
CN108595652A (en) * 2018-04-27 2018-09-28 平安科技(深圳)有限公司 Load method, apparatus, computer equipment and the storage medium of DOM node data
CN110830839A (en) * 2018-08-08 2020-02-21 腾讯科技(深圳)有限公司 Multi-pendant display method and device and storage medium
CN109358919A (en) * 2018-08-20 2019-02-19 中国平安人寿保险股份有限公司 Dynamic Configuration, device, computer equipment and the storage medium of Universal page
CN109358919B (en) * 2018-08-20 2024-04-02 中国平安人寿保险股份有限公司 Dynamic configuration method and device for universal page, computer equipment and storage medium
WO2020082231A1 (en) * 2018-10-23 2020-04-30 Citrix Systems, Inc. Local secure rendering of web content
US11074338B2 (en) 2018-10-23 2021-07-27 Citrix Systems, Inc. Local secure rendering of web content
WO2020143159A1 (en) * 2019-01-08 2020-07-16 网易(杭州)网络有限公司 User interface processing method and device
US11890540B2 (en) 2019-01-08 2024-02-06 Netease (Hangzhou) Network Co., Ltd. User interface processing method and device
CN109857486A (en) * 2019-02-02 2019-06-07 北京字节跳动网络技术有限公司 A kind of processing method, device, equipment and the medium of program page data
CN110134375A (en) * 2019-05-14 2019-08-16 网易(杭州)网络有限公司 Control method, device and the readable storage medium storing program for executing of game role behavior
CN110532455A (en) * 2019-09-05 2019-12-03 北京市博汇科技股份有限公司 A kind of Web page picture acquisition methods and system based on Chrome browser
CN111125597A (en) * 2019-12-18 2020-05-08 百度在线网络技术(北京)有限公司 Webpage loading method, browser, electronic equipment and storage medium
CN111125597B (en) * 2019-12-18 2023-10-27 百度在线网络技术(北京)有限公司 Webpage loading method, browser, electronic equipment and storage medium
CN113783911A (en) * 2020-06-10 2021-12-10 北京奇虎科技有限公司 File downloading method, device, system, equipment and storage medium
CN112016014B (en) * 2020-08-18 2023-12-26 北京达佳互联信息技术有限公司 Webpage display method, webpage resource generation device, electronic equipment and medium
CN112016014A (en) * 2020-08-18 2020-12-01 北京达佳互联信息技术有限公司 Webpage display method, webpage resource generation method, webpage display device, webpage resource generation device, electronic equipment and medium
CN112784201A (en) * 2021-01-29 2021-05-11 游艺星际(北京)科技有限公司 Webpage display method, device, terminal and storage medium
CN112784201B (en) * 2021-01-29 2024-05-14 游艺星际(北京)科技有限公司 Webpage display method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN104063460B (en) 2018-10-09

Similar Documents

Publication Publication Date Title
CN104063460A (en) Method and device for loading webpage in browser
CN106575298B (en) Rapid presentation of web sites containing dynamic content and stale content
US9529780B2 (en) Displaying content on a mobile device
CN101364979B (en) Downloaded material parsing and processing system and method
EP2724251B1 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
CN104426925B (en) Web page resources acquisition methods and device
US9690568B2 (en) Client-side script bundle management system
CN104572843B (en) The loading method and device of a kind of page
CN105760405A (en) Methods and devices for obtaining network resource for loading web page and method and device for caching network resource
CN105095280A (en) Caching method and apparatus for browser
CN101369280A (en) Method and device for web page browsing in digital television terminal
CN102737116A (en) Method and device for storing webpage resources
EP2399209A1 (en) Content access platform and methods and apparatus providing access to internet content for heterogeneous devices
CN103678549A (en) Webpage table data sharing method and device
CN104615700A (en) Method for collecting webpage objects in browser, browser client side and system
US20090193100A1 (en) Presenting a link to a media file automatically selected for optimized rendering on a client device
US20150058452A1 (en) Video loading method, device and system of mobile terminal
CN101808114A (en) Method and system for realizing website access and front-end server
CN110737853B (en) Multi-platform display static page data synchronization method and B2B system
CN102968345A (en) Note real-time synchronizing method and device
CN108334619A (en) A kind of collecting method, device, computing device and storage medium
CN104283865A (en) Download processing method and device, server and client device
CN104065736A (en) URL redirection method, device, and system
CN110955855B (en) Information interception method, device and terminal
CN104980464A (en) Network request processing method, network server and network system

Legal Events

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

Effective date of registration: 20220728

Address after: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee after: 3600 Technology Group 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
TR01 Transfer of patent right

Effective date of registration: 20230705

Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing Hongxiang Technical Service Co.,Ltd.

Address before: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee before: 3600 Technology Group Co.,Ltd.

TR01 Transfer of patent right