Invention content
In view of the above problems, it is proposed that the present invention overcoming the above problem in order to provide one kind or solves at least partly
State a kind of method of webpage of load in a browser of problem and a kind of corresponding device loading webpage in a browser.
One side according to the present invention provides a kind of method loading webpage in a browser, including:
The webpage that browse request downloads to is parsed, the DOM tree structure data information of the webpage is obtained;
Obtain the web page element text of specified type in the DOM tree structure data information;The web page element text packet
Include source address;
According to the source address of specified type web page element, to the corresponding specified type web page element storage service of browser
Device makes requests on the download for carrying out the specified type web page element content;
When rendering load webpage, the specified type webpage member downloaded from specified type web page element storage server is used
Element is rendered, and is loaded in webpage.
Optionally, the DOM tree structure data information includes one or more nodal informations;
The step of web page element text of specified type, includes in the acquisition DOM tree structure data information:
The address information of the webpage is matched in preset web page element list of types;
When successful match, the type information for the web page element that extraction needs are downloaded from web page element list of types;
When the type information is matched with the nodal information, the specified type is extracted from the nodal information
Web page element text.
Optionally, the address information of webpage and the type information of web page element are stored in the web page element list of types
Correspondence;
Information generates the web page element list of types depending on the user's operation.
Optionally, the web page element of the specified type includes following at least one:
Text message, image information, audio data, video data.
Optionally, the specified type web page element content storage server returns in web page element in the following manner
Hold:
When the corresponding web page element content of the source address is stored in the specified type web page element storage server
When, judge whether the web page element content is expired;If so, being taken from the corresponding webpage of the webpage according to the source address
Business device downloads web page element content;If it is not, then extracting the corresponding web page element content of the source address;
The web page element content is returned to browser.
Optionally, the specified type web page element storage server returns to web page element content in the following manner:
When the corresponding web page element content of the source address is not stored in the specified type web page element storage service
When device, web page element content is downloaded from the corresponding web page server of the webpage according to the source address;
The web page element content is returned to browser.
Optionally, further include:
When more than preset time threshold, and not from the specified type web page element storage server receive it is described come
When the corresponding web page element content of source address, webpage is downloaded from the corresponding web page server of the webpage according to the source address
Element content.
Optionally, further include:
The web page element of the specified type is sent to other browsers and synchronizes operation.
Optionally, further include:
To the web page element content downloaded from specified type web page element storage server, fisrt feature mark is generated;
According to the source address web page element content is downloaded from the corresponding web page server of the webpage;
To the web page element content downloaded from the web page server, second feature mark is generated;
When fisrt feature mark is differed with second feature mark, prompt message is generated;
The prompt message is sent to the specified type web page element storage server.
Optionally, the browser includes at least the first browser kernel;
It is described that the webpage that browse request downloads to is parsed, obtain the DOM tree structure data information of the webpage
The step of include:
The webpage that browse request downloads to is parsed in the first browser kernel, obtains the DOM of the webpage
Tree construction data information.
Optionally, described the step of obtaining the web page element of specified type in the DOM tree structure data information, includes:
The web page element text of specified type in the DOM tree structure data information is obtained in the first browser kernel.
Optionally, the source address according to specified type web page element is first to the corresponding specified type webpage of browser
Plain storage server makes requests on the step of download for carrying out the specified type web page element content and includes:
According to the source address of specified type web page element to the corresponding specified class of browser in the first browser kernel
Type web page element storage server makes requests on the download for carrying out the specified type web page element content.
Optionally, the browser at least further includes the second browser kernel;
It is described render load webpage when, use the specified type net downloaded from specified type web page element storage server
Page element is rendered, and the step loaded in webpage includes:
When rendering load webpage, using the source address of the web page element of specified type in the second browser kernel
With the source for the specified type web page element that first browser kernel is downloaded from specified type web page element storage server
Address is matched;
When successful match, downloaded from specified type web page element storage server using first browser kernel
Specified type web page element content is rendered.
According to another aspect of the present invention, a kind of device loading webpage in a browser is provided, including:
Dom tree obtains module and obtains the DOM of the webpage suitable for being parsed to the webpage that browse request downloads to
Tree construction data information;
Web page element text obtains module, is suitable for obtaining the webpage member of specified type in the DOM tree structure data information
Plain text;The text includes source address;
Web page element content download module is suitable for the source address according to specified type web page element, is corresponded to browser
Specified type web page element storage server make requests on the download for carrying out the specified type web page element content;
Web page element rendering module, be suitable for render load webpage when, using from specified type web page element storage service
The specified type web page element that device is downloaded is rendered, and is loaded in webpage.
Optionally, the DOM tree structure data information includes one or more nodal informations;
The dom tree obtains module and is further adapted for:
The address information of the webpage is matched in preset web page element list of types;
When successful match, the type information for the web page element that extraction needs are downloaded from web page element list of types;
When the type information is matched with the nodal information, the specified type is extracted from the nodal information
Web page element text.
Optionally, the address information of webpage and the type information of web page element are stored in the web page element list of types
Correspondence;
Information generates the web page element list of types depending on the user's operation.
Optionally, the web page element of the specified type includes following at least one:
Text message, image information, audio data, video data.
Optionally, the specified type web page element content storage server returns in web page element in the following manner
Hold:
When the corresponding web page element content of the source address is stored in the specified type web page element storage server
When, judge whether the web page element content is expired;If so, being taken from the corresponding webpage of the webpage according to the source address
Business device downloads web page element content;If it is not, then extracting the corresponding web page element content of the source address;
The web page element content is returned to browser.
Optionally, it states specified type web page element storage server and returns to web page element content in the following manner:
When the corresponding web page element content of the source address is not stored in the specified type web page element storage service
When device, web page element content is downloaded from the corresponding web page server of the webpage according to the source address;
The web page element content is returned to browser.
Optionally, further include:
Overtime download module is suitable for more than preset time threshold, and is not stored from the specified type web page element
It is corresponding from the webpage according to the source address when server receives the source address corresponding web page element content
Web page server downloads web page element content.
Optionally, further include:
Simultaneously operating module synchronizes behaviour suitable for the web page element of the specified type is sent to other browsers
Make.
Optionally in further including:
First generation module, suitable for the web page element content to being downloaded from specified type web page element storage server,
Generate fisrt feature mark;
Original download module is suitable for downloading webpage member from the corresponding web page server of the webpage according to the source address
Plain content;
Second generation module is suitable for the web page element content to being downloaded from the web page server, generates second feature mark
Know;
Prompt message generation module, suitable for when fisrt feature mark is differed with second feature mark, giving birth to
At prompt message;
Prompt message sending module, suitable for the prompt message is sent to the specified type web page element storage service
Device.
Optionally, the browser includes at least the first browser kernel;
The dom tree obtains module and is further adapted for:
The webpage that browse request downloads to is parsed in the first browser kernel, obtains the DOM of the webpage
Tree construction data information.
Optionally, the web page element text obtains module and is further adapted for:
The web page element text of specified type in the DOM tree structure data information is obtained in the first browser kernel.
Optionally, the web page element content download module is further adapted for:
According to the source address of specified type web page element to the corresponding specified class of browser in the first browser kernel
Type web page element storage server makes requests on the download for carrying out the specified type web page element content.
Optionally, the browser at least further includes the second browser kernel;
The web page element rendering module is further adapted for:
When rendering load webpage, using the source address of the web page element of specified type in the second browser kernel
With the source for the specified type web page element that first browser kernel is downloaded from specified type web page element storage server
Address is matched;
When successful match, downloaded from specified type web page element storage server using first browser kernel
Specified type web page element content is rendered.
The embodiment of the present invention parses the webpage that browse request downloads to, and obtains in DOM tree structure data information
The web page element text of specified type makes requests on to the corresponding specified type web page element storage server of browser and is referred to
The download for determining types of web pages element content, when rendering load webpage, using under specified type web page element storage server
The specified type web page element of load is rendered, and is loaded in webpage, by being asked to specified type web page element storage server
Ask the download of web page element, on the one hand, reduce path when being downloaded to web server request, reduce the exchange of network
Amount, is effectively saved bandwidth resources, reduces the download time of web page element, and then improve the loading velocity of webpage;It is another
Aspect reduces the number of requests of web page server, alleviates the calculation server and bandwidth occupancy of web page server, improves
Web page server loads the efficiency of webpage.
The embodiment of the present invention is not received from specified type web page element storage server more than preset time threshold
When web page element content corresponding to source address, webpage is downloaded from the corresponding web page server of the webpage according to source address
Element content so that it is likely encountered failure or time-out in web page element load or is some other abnormal situation, it can not
When receiving the corresponding web page element content of source address from specified type web page element storage server, in acceptable
Interior load web page element, ensure that the operation of webpage normal function.
The embodiment of the present invention, when loading identical webpage, specified class is synchronized from current browser in other browsers
Type web page element avoids other browsers and sends download request to specified type web page element storage server, further subtracts
The system resource burden of specified type web page element storage server is lacked.
The embodiment of the present invention judges the webpage member of specified type by the comparison of fisrt feature mark and second feature mark
Whether element is correct, reduces the generation of error rate, improves practicability.
The embodiment of the present invention starts the second browser when judging that current web page is suitable for using the load of the second browser kernel
Kernel carries out the switching of browser kernel, the web page element cached obtained when being made requests on for the first browser kernel
The web page element of acquisition is sent in the second browser kernel by IPC and carries out rendering load, is reused, is avoided
It repeats to obtain web page element, improves the loading velocity of webpage.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention,
And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
Referring to Fig.1, the method for showing a kind of webpage of load in a browser according to an embodiment of the invention is implemented
The step flow chart of example 1, can specifically include following steps:
Step 101, the webpage that browse request downloads to is parsed, obtains the DOM tree structure data of the webpage
Information;
In the concrete realization, user can send out the load request request of loading webpage of webpage.The load request of webpage can
With refer to user send out load some webpage instruction.For example, user can load a net by clicking certain linking request
Page, or carry out one webpage of request of loading etc. in address field input network address.When certain is linked when the user clicks, it is equivalent to receive
The load request that user loads webpage is arrived;Equally, when inputting certain network address in address field and click confirming button or press carriage return
When key, also correspond to have received the load request that user loads webpage.
Wherein, the content of load request may include the mark of the webpage of user's request of loading and/or the feature of webpage.Net
Page mark can represent the information for the webpage that one uniquely determines, such as uniform resource identifier (Uniform
Resource Identifier, URI), uniform resource identifier can specifically include uniform resource locator (Uniform again
Resource Locator, URL) or uniform resource name (Uniform Resource Name, URN) etc..
After the load request for receiving webpage in a browser, browser can pass through DNS (Domain Name
System, domain name analysis system) parse domain name (Domain Name) mapped IP (Internet searched in webpage URL
Protocol, the agreement interconnected between network) address.After obtaining IP address success, browser can be to the IP address institute
Server ask connection.After the server where being successfully connected the IP address, browser end can believe request header
Breath passes through the clothes where HTTP (Hypertext transfer protocol, hypertext transfer protocol) agreement to this IP address
Business device initiates the request of webpage load.The server receives after the request etc. pending, finally returns and rings to browser end
It answers.
At this point, under http protocol, browser can receive HTML (Hypertext Markup from server
Language, hypertext markup language) type document.Browser can parse html document, generate the object of tree,
That is DOM (Document Object Model, document dbject model) tree construction data information.
Step 102, the web page element text of specified type in the DOM tree structure data information is obtained;The webpage member
Plain text includes source address;
In practical applications, the DOM tree structure data information may include one or more nodal informations, each webpage
Element can be a node on DOM tree structure data information, and these objects can represent the webpages such as word, picture member
Element.
Node in DOM tree structure data information possesses hierarchical relationship each other.Father (parent), son may be used
(child) and the terms such as born of the same parents (sibling) are for describing these relationships.Wherein, father node possesses child node.Son section at the same level
Point is referred to as (brothers or sisters) born of the same parents.In node tree, top node is referred to as root (root).Each node has father's section
Point, in addition to root (it does not have father node).One node can possess any number of son, and compatriot is the section for possessing identical father node
Point.
In a kind of alternative embodiment of the present invention, step 102 may include following sub-step:
Sub-step S11 matches the address information of the webpage in preset web page element list of types;
In the concrete realization, the address information of webpage can be URL etc., can be stored in the web page element list of types
There are the correspondence of the address information of webpage and the type information of web page element, instruction browser can be to specified type webpage member
Plain content storage server downloads the web page element of specified type in the webpage.
Sub-step S12, when successful match, the class for the web page element that extraction needs are downloaded from web page element list of types
Type information;
When successful match, it may indicate that the web page element of specified type in the webpage has been stored in advance in specified type
In web page element content storage server, then the type information for knowing web page element is needed.
In a kind of optional example of the embodiment of the present invention, the web page element of the specified type may include it is following at least
It is a kind of:
Text message, image information, audio data, video data.
Wherein, may include the image of the multiple formats such as GIF, JPG, PNG for image information;It, can for audio data
May include MPEG, AVI, RM, RMVB for video data with the audio of the multiple formats such as including MP3, WMA, WAV, MIDI
The video data of equal multiple formats.
For example, the example of the 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/ |
Text information, image information, video data |
http://2014.ccc.com.cn/ |
Image information, video data |
http://book.ddd.com.cn/ |
Text information |
Wherein, network address " http:The corresponding webpages of //photo.aaa.com.cn/ " can be that some specially provides image
Webpage channel, including image information it is more;Network address " http:The corresponding webpages of //news.bbb.com.cn/ " can be certain
It is a it is special provide news webpage channel, including text information, image information, video data all compare it is more;Network address
“http:The corresponding webpages of // 2014.ccc.com.cn/ " can be some special net for providing world cup race information in 2014
Page channel, including image information, video data all compare it is more;Network address " http://book.ddd.com.cn/ " is corresponding
Webpage can be some special webpage channel that provide books and periodicals information, including text information it is relatively more.
The type for the web page element that different web pages are included is different, but user makes such to the request of the webpage
The number of request of the web page element of type is larger, and web page element (such as image information) volume of itself is also larger, in order to mitigate
The download pressure of web page server, therefore the webpage can be prestored in specified type web page element content storage server
The web page element of middle specified type.
Certainly, the web page element of above-mentioned judgement specified type is intended only as example, can be with when implementing the embodiment of the present invention
The web page element of other specified types is set according to actual conditions, and the embodiment of the present invention does not limit this.In addition, in addition to upper
It states outside the web page element of specified type, those skilled in the art can also use the webpage of other specified types according to actual needs
Element, the embodiment of the present invention also do not limit this.
Sub-step S13, when the type information is matched with the nodal information, from the nodal information described in extraction
The web page element text of specified type.
In practical applications, can wish to operate (such as specified type) to search in node tree by several method
Web page element:
For example, can by using getElementById () method and getElementsByTagName () method into
Row is searched.
In another example can be belonged to by using parentNode, firstChild and lastChild of a node element
Property.
Wherein, getElementById () and getElementsByTagName () both methods can search entire
Any web page element in html document.And both methods usually ignores the structure of document, if it searches all in document<
p>Element, getElementsByTagName () method can find all of which, no matter<p>Element is in document
Which level.Meanwhile getElementById () method can also return to correct element, no matter it is hidden in file structure
In where.Both methods can provide any required HTML element, no matter they are the location of in a document.
In addition, getElementById () can return to web page element by specified ID.
It should be noted that the web page element found can be web page element text, such as source address rather than net
Page element content, i.e. web page element data itself.
For example, in network address " http:The type for the web page element specified in the corresponding webpages of //photo.aaa.com.cn/ "
Information is image information, if finding the source place of web page element in the node in the DOM tree structure data information of the webpage
Location is " http://photo.aaa.com.cn/img/bdlogo.gif ", the source address may indicate that corresponding web page element
Format be GIF, belong to image information, then can extract the source address.
Step 103, according to the source address of specified type web page element, to the corresponding specified type web page element of browser
Storage server makes requests on the download for carrying out the specified type web page element content;
In the concrete realization, specified type web page element storage server can be cache server (cache
Server), largely it is deployed in the network computer room in multiple specified regions, such as each urban district, forms cache server cluster, be
The browser in specified region is serviced (such as the download for the web page element content for providing specified type).
In recent years, Internet (internet) applications increase at an unprecedented rate, and large-scale terminal user is to band
Width is put forward higher requirements, if lacking careful management, this bandwidth requirement is meaned for internet service provider
Expensive expense, in addition, will cause largely not from the Internet request of data of terminal (such as browser) each time
Appreciable delay.
Cache server plays the part of an intermediary role, an effective caching between terminal and entire Internet
Server is reduced as much as possible directly in response to the request of terminal through the Internet number of requests transmitted and Web browser
Limited caching function is different, and cache server is come using a large amount of memory spaces while servicing a large amount of user.Thus, caching clothes
Business device can be that popular Web site quickly provides newest data, and cache server can also accelerate by local user
The access speed of other Web sites accessed, for those demand datas, the user beyond browser rs cache limitation especially has
With.
By disposing cache server, the original data for accessing Internet resources can be converted to access cache service
Device has effectively saved massive band width.
Browser can start to show the html document of webpage, and obtain the source address of wherein embedded web page element,
If the source address of specified type web page element, then progress can be made requests on to specified type web page element storage server
The download of specified type web page element content;If not the source address of specified type web page element, then can be to web page server
Make requests on the download for downloading the web page element content.
In a kind of alternative embodiment of the present invention, the web page element list of types can information depending on the user's operation
It generates.
Then apply the embodiment of the present invention, specified type web page element storage server that can acquire in advance by various modes
The operation information of user, wherein may include in the local operation behavioural information of user and the online operation behavior information of user
It is at least one.
The user behavior information can be acquired by the client software for installing on a user device, wherein the use
Family equipment may include all kinds of intelligent terminals such as computer, laptop, mobile phone, PDA, tablet computer.
The local operation behavioural information of several acquisition users presented below, and/or, the online operation behavior information of user
Example:
Example 1 acquires user's online operation behavior information interior for a period of time by browser, includes the network address and phase of access
The webpage etc. collected in the access times answered, browser collection folder;
Such as acquiring the online operation behavior information in user 15 days by browser is:
Access network address |
Access times |
www.aaa.com |
31 |
www.bbb.com |
2 |
www.ccc.com |
7 |
www.ddd.com |
4 |
Example 2 acquires the local operation behavioural information of user by installing security software on a user device, such as by adopting
Local behavioural information in collection user 15 days is:Some TV play and its frequency are opened, some game and its frequency etc. are opened.
By the analysis of the operation information to user, the behavioural habits of user can be obtained, as user's custom access is certain
Website, or have larger demand to the website for search/access which type, then specified type web page element content storage server can
To download the web page element of specified type in the website in advance.For example, downloading the website middle finger (when such as daily 6) in preset time
Determine the web page element of type or receives the web page element for the specified type that the website is actively submitted.Meanwhile specified type webpage
Element storage server can update web page element list of types, and at the appointed time or browser free time (as not into
Row web page access or file download) when, web page element list of types is pushed in browser.
It should be noted that the behavioural habits due to user have the timeliness of part so that user accesses Relatively centralized,
Such as during Football World Championship, user largely accesses the relevant report of world cup race, but in the part timeliness failure
Afterwards, user accesses and can reduce therewith, such as after Football World Championship, and user's report relevant to this world cup race is often
It can largely reduce, therefore, web page element list of types may exist local variation's property with the variation that user behavior is accustomed to.When
So, there is relative stability since user's own interests are formed by behavioural habits, such as user likes football race, it can be frequent
The relevant report of the league football matches races such as England Premier League, Division A League Matches of Spanish Football is accessed, therefore there may also be stablize relatively for web page element list of types
Property.
In a kind of alternative embodiment of the present invention, the specified type web page element content storage server can pass through
Following manner returns to web page element content:
Sub-step S21, when the corresponding web page element content of the source address is stored in the specified type web page element
When storage server, judge whether the web page element content is expired;If so, sub-step S22 is executed, if it is not, then executing son
Step S23;
Sub-step S22 downloads web page element content according to the source address from the corresponding web page server of the webpage;
Sub-step S23 extracts the corresponding web page element content of the source address;
Sub-step S24 returns to the web page element content to browser.
In the concrete realization, it if specified type web page element storage server finds the source address, may indicate that
The corresponding web page element of the source address is downloaded and is stored in advance.
Browser includes web page element in the request header information of the webpage load request sent to web page server
Expired time.
The expired time is encapsulated in specified type web page element storage server and sends download specified type net by browser
In the request of page element, it is sent to specified type web page element storage server.
Specified type web page element storage server can be by the expired time and the download time for downloading the web page element
It is compared, if download time is less than expired time, may indicate that the web page element content is effective, extract the web page element
Server is returned to after content;If download time is more than expired time, it may indicate that the web page element content expiration fails, need
The corresponding web page element content of the source address is downloaded to web page server, returned again to browser.
The present invention another alternative embodiment in, the specified type web page element storage server can by with
Under type returns to web page element content:
Sub-step S31, when the corresponding web page element content of the source address is not stored in the specified type webpage member
When plain storage server, web page element content is downloaded from the corresponding web page server of the webpage according to the source address;
Sub-step S32 returns to the web page element content to browser.
It in the concrete realization, can be with table if specified type web page element storage server does not find the source address
The corresponding web page element of the bright source address does not download storage, then needs to download the source address to web page server corresponding
Web page element content, returns again to browser.
Step 104, when rendering load webpage, the specified class downloaded from specified type web page element storage server is used
Type web page element is rendered, and is loaded in webpage.
When browser gets the web page element in webpage, Rendering operations can be carried out in the html document of browser,
To show the web page element in interface.
To make those skilled in the art more fully understand the embodiment of the present invention, loaded below by way of with browser access URL
For webpage, illustrate the process of load webpage of the embodiment of the present invention:
1. when detect that user inputs network address (assuming that being html page, and being to access for the first time), browser to
Web page server sends out the webpage of request of loading network address instruction, and server returns to corresponding html text;
2. browser starts the source code for being loaded into html text, when detecting in < head > labels there are one < link >
When label, then need to quote external CSS files;
3. browser sends out the request of CSS files to web page server, server returns to corresponding CSS files;
4. browser continues the code for being loaded into the parts < body > in html text, CSS files have been received at this time, can
To start to render webpage;
5. when browser detects a < img > label in html text, need to refer to a pictures, to refer to
Determine the web page element of type, then sends the request to Load Image to specified type web page element storage server.Browser at this time
It does not wait for picture to have downloaded, and is to continue with and renders subsequent code;
6. specified type web page element storage server returns to picture file, since picture occupies certain area, influence
The arrangement of subsequent paragraphs, therefore browser needs to render this partial code again;
7. when browser detects a < script > label comprising a line JavaScript code, then transport immediately
Row;
8. performing above-mentioned sentence using JavaScript scripts, order browser hides some < in code
Div > (style.display=" none "), due to having lacked < div > elements, browser needs to render this part generation again
Code;
9. when detecting </HTML >, renders and complete;
10. " changing skin " button in interface when the user clicks, JavaScript allows browser to change < link > labels
The paths CSS;
11. browser is asked using each elements such as < div >, < span >, < ul >, < li > to web page server
The CSS files looked for novelty, render the page again.
The embodiment of the present invention parses the webpage that browse request downloads to, and obtains in DOM tree structure data information
The web page element text of specified type makes requests on to the corresponding specified type web page element storage server of browser and is referred to
The download for determining types of web pages element content, when rendering load webpage, using under specified type web page element storage server
The specified type web page element of load is rendered, and is loaded in webpage, by being asked to specified type web page element storage server
Ask the download of web page element, on the one hand, reduce path when being downloaded to web server request, reduce the exchange of network
Amount, is effectively saved bandwidth resources, reduces the download time of web page element, and then improve the loading velocity of webpage;It is another
Aspect reduces the number of requests of web page server, alleviates the calculation server and bandwidth occupancy of web page server, improves
Web page server loads the efficiency of webpage.
With reference to Fig. 2, the method for showing a kind of webpage of load in a browser according to an embodiment of the invention is implemented
The step flow chart of example 2, can specifically include following steps:
Step 201, the webpage that browse request downloads to is parsed, obtains the DOM tree structure data of the webpage
Information;
Step 202, the web page element text of specified type in the DOM tree structure data information is obtained;The webpage member
Plain text includes source address;
Step 203, according to the source address of specified type web page element, to the corresponding specified type web page element of browser
Storage server makes requests on the download for carrying out the specified type web page element content;
Step 204, when rendering load webpage, the specified class downloaded from specified type web page element storage server is used
Type web page element is rendered, and is loaded in webpage;
Step 205, it when more than preset time threshold, and is not received from the specified type web page element storage server
When web page element content corresponding to the source address, according to the source address from the corresponding web page server of the webpage
Download web page element content.
In embodiments of the present invention, request specified type webpage of the browser to specified type web page element storage server
The download of element content, (be more than preset time threshold) all whithin a period of time for specified type web page element storage server
Without calculate as a result, not as browser can directly disconnect request, to web page server initiate specified type web page element in
The download of appearance.
This time can also be referred to as time-out time, and specified type web page element storage server can be potentially encountered various
The mistake of various kinds, cannot be because of these mistakes, and request is allowed to be always maintained at, and occupy browse request number.
The embodiment of the present invention is not received from specified type web page element storage server more than preset time threshold
When web page element content corresponding to source address, webpage is downloaded from the corresponding web page server of the webpage according to source address
Element content so that it is likely encountered failure or time-out in web page element load or is some other abnormal situation, it can not
When receiving the corresponding web page element content of source address from specified type web page element storage server, in acceptable
Interior load web page element, ensure that the operation of webpage normal function.
Step 206, the web page element of the specified type is sent to other browsers and synchronizes operation.
In the concrete realization, if other browsers initiate the load request of webpage, current browser can pass through P2P
Modes such as (PeertoPeer, peer-to-peer networks) synchronize operation with other browsers, and the web page element of specified type is sent out
Send the load that the webpage is realized to other browsers in other browsers.
Other browsers can be located at current browser in the same cell, and cell is that the region inside communication management is single
Position.According to the coverage area of communication network signal, the geographic area of reality can be divided into different management regions, Mei Geguan
There are several user's accesses under reason region wherein, and is communicated.In practice, cell can be the management that a school is formed
Region can also be the management region etc. that a few streets are formed.
Communication in cell between browser, interactive node is few, and communication speed ratio is stored with specified type web page element
Server will improve the speed of download of web page element soon, further speeded up the loading velocity of webpage.
The embodiment of the present invention, when loading identical webpage, specified class is synchronized from current browser in other browsers
Type web page element avoids other browsers and sends download request to specified type web page element storage server, further subtracts
The system resource burden of specified type web page element storage server is lacked.
With reference to Fig. 3, the method for showing a kind of webpage of load in a browser according to an embodiment of the invention is implemented
The step flow chart of example 3, can specifically include following steps:
Step 301, the webpage that browse request downloads to is parsed, obtains the DOM tree structure data of the webpage
Information;
Step 302, the web page element text of specified type in the DOM tree structure data information is obtained;The webpage member
Plain text includes source address;
Step 303, according to the source address of specified type web page element, to the corresponding specified type web page element of browser
Storage server makes requests on the download for carrying out the specified type web page element content;
Step 304, when rendering load webpage, the specified class downloaded from specified type web page element storage server is used
Type web page element is rendered, and is loaded in webpage;
Step 305, to the web page element content downloaded from specified type web page element storage server, it is special to generate first
Sign mark;
Step 306, according to the source address web page element content is downloaded from the corresponding web page server of the webpage;
Step 307, to the web page element content downloaded from the web page server, second feature mark is generated;
Step 308, when fisrt feature mark is differed with second feature mark, prompt message is generated;
Step 309, the prompt message is sent to the specified type web page element storage server.
In embodiments of the present invention, to the web page element content downloaded from specified type web page element storage server,
Fisrt feature mark is generated, fisrt feature mark can be the information that can represent the web page element that one uniquely determines, example
Such as MD5 (Message-Digest Algorithm 5, message digest algorithm 5) value, Hash (Hash) value, SHA1 (Secure
Hash Algorithm, Secure Hash Algorithm) value etc..
Similarly, identical rule is identified to generate fisrt feature, to the web page element content downloaded from web page server,
Second feature mark is generated, second feature mark can be the information that can represent the web page element that one uniquely determines.Example
Such as, if fisrt feature is identified as MD5 values, second feature mark is also required to as MD5 values;If fisrt feature is identified as hash value,
Then second feature mark is also required to as hash value;Fisrt feature is identified as SHA1 values, then second feature mark is also required to as SHA1
Value, etc..
When fisrt feature mark is identical as second feature mark, then it may indicate that and store clothes in specified type web page element
The web page element content downloaded in business device is correct;It, then can be with when fisrt feature mark is differed with second feature mark
Show that the web page element content downloaded in specified type web page element storage server is incorrect, needs to prompt specified class
Type web page element storage server web page element error, to be corrected.
The embodiment of the present invention judges the webpage member of specified type by the comparison of fisrt feature mark and second feature mark
Whether element is correct, reduces the generation of error rate, improves practicability.
With reference to Fig. 4, the method for showing a kind of webpage of load in a browser according to an embodiment of the invention is implemented
The step flow chart of example 4, can specifically include following steps:
Step 401, the webpage that browse request downloads to is parsed in the first browser kernel, obtains the net
The DOM tree structure data information of page;
Step 402, the webpage member of specified type in the DOM tree structure data information is obtained in the first browser kernel
Plain text;
Step 403, it is corresponded to browser according to the source address of specified type web page element in the first browser kernel
Specified type web page element storage server make requests on the download for carrying out the specified type web page element content;
Step 404, render load webpage when, in the second browser kernel using the web page element of specified type come
Source address and the specified type web page element that first browser kernel is downloaded from specified type web page element storage server
Source address matched;
Step 405, when successful match, using first browser kernel from specified type web page element storage service
The specified type web page element content that device is downloaded is rendered.
In embodiments of the present invention, browser may include two or more browser kernels, wherein at least wrap
Include at least one of the first browser kernel and the second browser kernel.
First browser kernel can be the browser kernel that browser current default uses, the browser kernel of the acquiescence
It can be that system is arranged, user setting can also be made, can be specifically the browser kernel of the high performance such as Webkit kernels.
It is, of course, also possible to be Gecko kernels, Presto kernels etc., the embodiment of the present invention does not limit this.
Second browser kernel can be other browser kernels in addition to the first browser kernel built in browser, can
Can be Trident kernels (i.e. IE kernels), including IE-com kernels are (simultaneous to be adapted to the load of current web page in certain situations
The IE kernels of appearance) and/or IE-stand kernels.It is, of course, also possible to be Gecko kernels, Presto kernels etc., the present invention is implemented
Example does not limit this.
In the concrete realization, the load request of current web page can be received in the first browser kernel, carry out webpage member
The download of element.
When judging that current web page is suitable for using the load of the second browser kernel, the second browser kernel can be started.
When being switched to the second browser kernel and being rendered, IPC (Inter-Process can be passed through
Communication, interprocess communication is a kind of mechanism of Inter-Process Communication, and the process and thread of operating system can pass through it
Exchanging data and message) communication rendered using the web page element that the first browser kernel is downloaded.
Specifically, the and browser kernel by I/O threads by need the web page element rendered source address (such as
URL it) is sent to the first browser kernel, the first browser kernel has downloaded webpage member to the first browser kernel in the buffer
Element is compared according to source address (such as URL), if source address is consistent, the webpage that can be extracted from caching is first
The web page element is sent to the second browser kernel by element by I/O threads.
And the mode that different browser kernels is rendered can be different, and by taking Trident kernels as an example, load
It can be as follows with html page is rendered:
1, the sequence that Trident kernels download web page resources is that render the sequence of web page resources from top to bottom be also from upper
It arrives down, downloads and rendering is carried out at the same time;
2, in certain part for being rendered into the page, all of the above part has all downloaded completion and (has been not to say that institute
There is associated element all to download);
If the label insertion file (JS scripts, CSS style) of semantic interpretation 3, is encountered, then at this time in Trident
The downloading process of core can enable individually connection and be downloaded;
It 4 and is parsed after downloading, in resolving, stops the download of all elements down of the page;
5, style sheet after the download is complete, will together be parsed with all style sheet downloaded in the past, after being parsed,
Rendering will be re-started (containing rendered in the past) to all elements before this;
6, if any redefining in JS, CSS, rear defined function will cover preceding defined function.
The embodiment of the present invention starts the second browser when judging that current web page is suitable for using the load of the second browser kernel
Kernel carries out the switching of browser kernel, the web page element cached obtained when being made requests on for the first browser kernel
The web page element of acquisition is sent in the second browser kernel by IPC and carries out rendering load, is reused, is avoided
It repeats to obtain web page element, improves the loading velocity of webpage.
For embodiment of the method, for simple description, therefore it is all expressed as a series of combination of actions, but this field
Technical staff should know that the embodiment of the present invention is not limited by the described action sequence, because implementing according to the present invention
Example, certain steps can be performed in other orders or simultaneously.Next, those skilled in the art should also know that, specification
Described in embodiment belong to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
With reference to Fig. 5, show that a kind of device of webpage of load in a browser according to an embodiment of the invention is implemented
The structure diagram of example 1, can specifically include following module:
Dom tree obtains module 501 and obtains the webpage suitable for being parsed to the webpage that browse request downloads to
DOM tree structure data information;
Web page element text obtains module 502, is suitable for obtaining the webpage of specified type in the DOM tree structure data information
Element text;The text includes source address;
Web page element content download module 503 is suitable for the source address according to specified type web page element, to browser pair
The specified type web page element storage server answered makes requests on the download for carrying out the specified type web page element content;
Web page element rendering module 504 is suitable for, when rendering load webpage, taking using storing from specified type web page element
The specified type web page element that business device is downloaded is rendered, and is loaded in webpage.
In a kind of alternative embodiment of the present invention, the DOM tree structure data information may include one or more sections
Point information;
The dom tree obtains module 501 and can be adapted to:
The address information of the webpage is matched in preset web page element list of types;
When successful match, the type information for the web page element that extraction needs are downloaded from web page element list of types;
When the type information is matched with the nodal information, the specified type is extracted from the nodal information
Web page element text.
In a kind of alternative embodiment of the present invention, the address of webpage can be stored in the web page element list of types
The correspondence of the type information of information and web page element;
The web page element list of types information can generate depending on the user's operation.
In a kind of optional example of the embodiment of the present invention, the web page element of the specified type includes following at least one
Kind:
Text message, image information, audio data, video data.
In a kind of alternative embodiment of the present invention, the specified type web page element content storage server can pass through
Following manner returns to web page element content:
When the corresponding web page element content of the source address is stored in the specified type web page element storage server
When, judge whether the web page element content is expired;If so, being taken from the corresponding webpage of the webpage according to the source address
Business device downloads web page element content;If it is not, then extracting the corresponding web page element content of the source address;
The web page element content is returned to browser.
In a kind of alternative embodiment of the present invention, the specified type web page element storage server can be by following
Mode returns to web page element content:
When the corresponding web page element content of the source address is not stored in the specified type web page element storage service
When device, web page element content is downloaded from the corresponding web page server of the webpage according to the source address;
The web page element content is returned to browser.
With reference to Fig. 6, show that a kind of device of webpage of load in a browser according to an embodiment of the invention is implemented
The structure diagram of example 2, can specifically include following module:
Dom tree obtains module 601 and obtains the webpage suitable for being parsed to the webpage that browse request downloads to
DOM tree structure data information;
Web page element text obtains module 602, is suitable for obtaining the webpage of specified type in the DOM tree structure data information
Element text;The text includes source address;
Web page element content download module 603 is suitable for the source address according to specified type web page element, to browser pair
The specified type web page element storage server answered makes requests on the download for carrying out the specified type web page element content;
Web page element rendering module 604 is suitable for, when rendering load webpage, taking using storing from specified type web page element
The specified type web page element that business device is downloaded is rendered, and is loaded in webpage.
Overtime download module 605 is suitable for more than preset time threshold, and is not deposited from the specified type web page element
When storage server receives the source address corresponding web page element content, corresponded to from the webpage according to the source address
Web page server download web page element content.
Simultaneously operating module 606 is synchronized suitable for the web page element of the specified type is sent to other browsers
Operation.
With reference to Fig. 7, show that a kind of device of webpage of load in a browser according to an embodiment of the invention is implemented
The structure diagram of example 3, can specifically include following module:
Dom tree obtains module 701 and obtains the webpage suitable for being parsed to the webpage that browse request downloads to
DOM tree structure data information;
Web page element text obtains module 702, is suitable for obtaining the webpage of specified type in the DOM tree structure data information
Element text;The text includes source address;
Web page element content download module 703 is suitable for the source address according to specified type web page element, to browser pair
The specified type web page element storage server answered makes requests on the download for carrying out the specified type web page element content;
Web page element rendering module 704 is suitable for, when rendering load webpage, taking using storing from specified type web page element
The specified type web page element that business device is downloaded is rendered, and is loaded in webpage.
First generation module 705, suitable for out of, web page element that downloaded in specified type web page element storage server
Hold, generates fisrt feature mark;
Original download module 706 is suitable for according to the source address from contained network under the corresponding web page server of the webpage
Page element content;
Second generation module 707 is suitable for the web page element content to being downloaded from the web page server, generates second feature
Mark;
Prompt message generation module 708, suitable for the fisrt feature mark with the second feature mark differ when,
Generate prompt message;
Prompt message sending module 709 is stored suitable for the prompt message is sent to the specified type web page element
Server.
With reference to Fig. 8, show that a kind of device of webpage of load in a browser according to an embodiment of the invention is implemented
The structure diagram of example 4, the browser include at least at least one of the first browser kernel and the second browser kernel, tool
Body may include following module:
Dom tree obtains module 801, suitable for being solved to the webpage that browse request downloads in the first browser kernel
Analysis, obtains the DOM tree structure data information of the webpage.
Web page element text obtains module 802, suitable for obtaining the DOM tree structure data letter in the first browser kernel
The web page element text of specified type in breath.
Web page element content download module 803 is suitable in the first browser kernel according to specified type web page element
Source address makes requests on to the corresponding specified type web page element storage server of browser and carries out the specified type webpage
The download of element content.
Web page element rendering module 804 is suitable for when rendering load webpage, using specified class in the second browser kernel
The source address of the web page element of type with, first browser kernel is downloaded from specified type web page element storage server
The source address of specified type web page element is matched;
When successful match, downloaded from specified type web page element storage server using first browser kernel
Specified type web page element content is rendered.
For device embodiments, since it is basically similar to the method embodiment, so fairly simple, the correlation of description
Place illustrates referring to the part of embodiment of the method.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with teaching based on this.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that can utilize various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect
Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific implementation mode are expressly incorporated in the specific implementation mode, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment
Change and they are arranged in the one or more equipment different from the embodiment.It can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit requires, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to run on one or more processors
Software module realize, or realized with combination thereof.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor (DSP) realize setting for load webpage in a browser according to the ... of the embodiment of the present invention
The some or all functions of some or all components in standby.The present invention is also implemented as described here for executing
Method some or all equipment or program of device (for example, computer program and computer program product).This
The program of the realization present invention of sample can may be stored on the computer-readable medium, or can be with one or more signal
Form.Such signal can be downloaded from internet website and be obtained, and either be provided on carrier signal or with any other
Form provides.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be by the same hardware branch
To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and be run after fame
Claim.
The embodiment of the invention discloses A1, a kind of methods loading webpage in a browser, including:
The webpage that browse request downloads to is parsed, the DOM tree structure data information of the webpage is obtained;
Obtain the web page element text of specified type in the DOM tree structure data information;The web page element text packet
Include source address;
According to the source address of specified type web page element, to the corresponding specified type web page element storage service of browser
Device makes requests on the download for carrying out the specified type web page element content;
When rendering load webpage, the specified type webpage member downloaded from specified type web page element storage server is used
Element is rendered, and is loaded in webpage.
A2, the method as described in A1, the DOM tree structure data information include one or more nodal informations;
The step of web page element text of specified type, includes in the acquisition DOM tree structure data information:
The address information of the webpage is matched in preset web page element list of types;
When successful match, the type information for the web page element that extraction needs are downloaded from web page element list of types;
When the type information is matched with the nodal information, the specified type is extracted from the nodal information
Web page element text.
A3, the method as described in A2 are stored with the address information and webpage member of webpage in the web page element list of types
The correspondence of the type information of element;
Information generates the web page element list of types depending on the user's operation.
The web page element of A4, the method as described in A1 or A2 or A3, the specified type includes following at least one:
Text message, image information, audio data, video data.
A5, the method as described in A1, the specified type web page element content storage server return in the following manner
Web page element content:
When the corresponding web page element content of the source address is stored in the specified type web page element storage server
When, judge whether the web page element content is expired;If so, being taken from the corresponding webpage of the webpage according to the source address
Business device downloads web page element content;If it is not, then extracting the corresponding web page element content of the source address;
The web page element content is returned to browser.
A6, the method as described in A1, the specified type web page element storage server return to webpage in the following manner
Element content:
When the corresponding web page element content of the source address is not stored in the specified type web page element storage service
When device, web page element content is downloaded from the corresponding web page server of the webpage according to the source address;
The web page element content is returned to browser.
A7, the method as described in A1 or A2 or A3 or A5 or A6 further include:
When more than preset time threshold, and not from the specified type web page element storage server receive it is described come
When the corresponding web page element content of source address, webpage is downloaded from the corresponding web page server of the webpage according to the source address
Element content.
A8, the method as described in A1 or A2 or A3 or A5 or A6 further include:
The web page element of the specified type is sent to other browsers and synchronizes operation.
A9, the method as described in A1 or A2 or A3 or A5 or A6 further include:
To the web page element content downloaded from specified type web page element storage server, fisrt feature mark is generated;
According to the source address web page element content is downloaded from the corresponding web page server of the webpage;
To the web page element content downloaded from the web page server, second feature mark is generated;
When fisrt feature mark is differed with second feature mark, prompt message is generated;
The prompt message is sent to the specified type web page element storage server.
A10, the method as described in A1 or A2 or A3 or A5 or A6, the browser include at least the first browser kernel;
It is described that the webpage that browse request downloads to is parsed, obtain the DOM tree structure data information of the webpage
The step of include:
The webpage that browse request downloads to is parsed in the first browser kernel, obtains the DOM of the webpage
Tree construction data information.
A11, the method as described in A10, the web page element for obtaining specified type in the DOM tree structure data information
The step of include:
The web page element text of specified type in the DOM tree structure data information is obtained in the first browser kernel.
A12, the method as described in A11, the source address according to specified type web page element are corresponding to browser
Specified type web page element storage server makes requests on the step of download for carrying out the specified type web page element content and wraps
It includes:
According to the source address of specified type web page element to the corresponding specified class of browser in the first browser kernel
Type web page element storage server makes requests on the download for carrying out the specified type web page element content.
A13, the method as described in A12, the browser at least further include the second browser kernel;
It is described render load webpage when, use the specified type net downloaded from specified type web page element storage server
Page element is rendered, and the step loaded in webpage includes:
When rendering load webpage, using the source address of the web page element of specified type in the second browser kernel
With the source for the specified type web page element that first browser kernel is downloaded from specified type web page element storage server
Address is matched;
When successful match, downloaded from specified type web page element storage server using first browser kernel
Specified type web page element content is rendered.
The embodiment of the invention also discloses B14, a kind of devices loading webpage in a browser, including:
Dom tree obtains module and obtains the DOM of the webpage suitable for being parsed to the webpage that browse request downloads to
Tree construction data information;
Web page element text obtains module, is suitable for obtaining the webpage member of specified type in the DOM tree structure data information
Plain text;The text includes source address;
Web page element content download module is suitable for the source address according to specified type web page element, is corresponded to browser
Specified type web page element storage server make requests on the download for carrying out the specified type web page element content;
Web page element rendering module, be suitable for render load webpage when, using from specified type web page element storage service
The specified type web page element that device is downloaded is rendered, and is loaded in webpage.
B15, the device as described in B14, the DOM tree structure data information include one or more nodal informations;
The dom tree obtains module and is further adapted for:
The address information of the webpage is matched in preset web page element list of types;
When successful match, the type information for the web page element that extraction needs are downloaded from web page element list of types;
When the type information is matched with the nodal information, the specified type is extracted from the nodal information
Web page element text.
B16, the device as described in B15 are stored with the address information and webpage of webpage in the web page element list of types
The correspondence of the type information of element;
Information generates the web page element list of types depending on the user's operation.
The web page element of B17, the device as described in B14 or B15 or B16, the specified type includes following at least one:
Text message, image information, audio data, video data.
B18, the device as described in B14, the specified type web page element content storage server are returned in the following manner
Return web page element content:
When the corresponding web page element content of the source address is stored in the specified type web page element storage server
When, judge whether the web page element content is expired;If so, being taken from the corresponding webpage of the webpage according to the source address
Business device downloads web page element content;If it is not, then extracting the corresponding web page element content of the source address;
The web page element content is returned to browser.
B19, the device as described in B14 state specified type web page element storage server and return to webpage in the following manner
Element content:
When the corresponding web page element content of the source address is not stored in the specified type web page element storage service
When device, web page element content is downloaded from the corresponding web page server of the webpage according to the source address;
The web page element content is returned to browser.
B20, the device as described in B14 or B15 or B16 or B18 or B19 further include:
Overtime download module is suitable for more than preset time threshold, and is not stored from the specified type web page element
It is corresponding from the webpage according to the source address when server receives the source address corresponding web page element content
Web page server downloads web page element content.
B21, the device as described in B14 or B15 or B16 or B18 or B19 further include:
Simultaneously operating module synchronizes behaviour suitable for the web page element of the specified type is sent to other browsers
Make.
B22, the device as described in B14 or B15 or B16 or B18 or B19 further include:
First generation module, suitable for the web page element content to being downloaded from specified type web page element storage server,
Generate fisrt feature mark;
Original download module is suitable for downloading webpage member from the corresponding web page server of the webpage according to the source address
Plain content;
Second generation module is suitable for the web page element content to being downloaded from the web page server, generates second feature mark
Know;
Prompt message generation module, suitable for when fisrt feature mark is differed with second feature mark, giving birth to
At prompt message;
Prompt message sending module, suitable for the prompt message is sent to the specified type web page element storage service
Device.
B23, the device as described in B14 or B15 or B16 or B18 or B19, the browser include at least the first browser
Kernel;
The dom tree obtains module and is further adapted for:
The webpage that browse request downloads to is parsed in the first browser kernel, obtains the DOM of the webpage
Tree construction data information.
B24, the device as described in B23, the web page element text obtain module and are further adapted for:
The web page element text of specified type in the DOM tree structure data information is obtained in the first browser kernel.
B25, the device as described in B24, the web page element content download module are further adapted for:
According to the source address of specified type web page element to the corresponding specified class of browser in the first browser kernel
Type web page element storage server makes requests on the download for carrying out the specified type web page element content.
B26, the device as described in B25, the browser at least further include the second browser kernel;
The web page element rendering module is further adapted for:
When rendering load webpage, using the source address of the web page element of specified type in the second browser kernel
With the source for the specified type web page element that first browser kernel is downloaded from specified type web page element storage server
Address is matched;
When successful match, downloaded from specified type web page element storage server using first browser kernel
Specified type web page element content is rendered.