CN103546498B - It is a kind of that the method and apparatus accessing webpage is provided for mobile terminal - Google Patents

It is a kind of that the method and apparatus accessing webpage is provided for mobile terminal Download PDF

Info

Publication number
CN103546498B
CN103546498B CN201210237158.1A CN201210237158A CN103546498B CN 103546498 B CN103546498 B CN 103546498B CN 201210237158 A CN201210237158 A CN 201210237158A CN 103546498 B CN103546498 B CN 103546498B
Authority
CN
China
Prior art keywords
page
user
webpage
accession
resources
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210237158.1A
Other languages
Chinese (zh)
Other versions
CN103546498A (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201210237158.1A priority Critical patent/CN103546498B/en
Publication of CN103546498A publication Critical patent/CN103546498A/en
Application granted granted Critical
Publication of CN103546498B publication Critical patent/CN103546498B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The object of the present invention is to provide a kind of method and apparatus providing access webpage for mobile terminal.Specifically, the accessing page request of user is obtained;According to the accessing page request, the page basic resources of accession page corresponding with the accessing page request are obtained;According to the page basic resources, render tree corresponding with the page basic resources is generated;The render tree is supplied to the user.Compared with prior art, the accessing page request that the present invention passes through combination user, obtain the page basic resources of accession page corresponding with the accessing page request, according to the page basic resources, it is generated and provided to user's render tree corresponding with the page basic resources, the time of user's web page access is shortened, reduces user's flowing of access, it improves user and accesses the efficiency of webpage, and the browsing for improving user accesses experience.

Description

It is a kind of that the method and apparatus accessing webpage is provided for mobile terminal
Technical field
The present invention relates to Internet technical field more particularly to a kind of technologies providing access webpage for mobile terminal.
Background technology
During the existing internet using the access of mobile terminal user's equipment, generally by means of third party's browser such as UC Browser realizes that internet is accessed.But the content of each web displaying is limited, and is gone back other than body matter in webpage It is doped with the unwanted information of many users, such as web page navigation link, advertisement link, meanwhile, also by mobile terminal screen Smaller limitation;Also, the expense to surf the web is more expensive, related with the flow of transmission data.And when user's browsing webpage Wish to be preferably that it shows its required information content, for example, for news fan, when browsing news website, pays close attention to Be written report, the picture, advertisement in website are useless information for it;And for sports enthusiast, it pays close attention to It is newest race video, the picture, advertisement in website are useless information for it.
Invention content
The object of the present invention is to provide a kind of method and apparatus providing access webpage for mobile terminal.
According to an aspect of the invention, there is provided a kind of method for accessing webpage, this approach includes the following steps:
A obtains the accessing page request of user;
B obtains the page base of accession page corresponding with the accessing page request according to the accessing page request This resource;
C generates render tree corresponding with the page basic resources according to the page basic resources;
The render tree is supplied to the user by d
According to another aspect of the present invention, a kind of webpage equipment for accessing webpage, the webpage equipment packet are additionally provided It includes:
Acquisition request device, the accessing page request for obtaining user;
Resource acquisition device, for according to the accessing page request, obtaining corresponding with the accessing page request The page basic resources of accession page;
Render tree generating means, for according to the page basic resources, generating corresponding with the page basic resources Render tree;
Device is provided, for the render tree to be supplied to the user.
Compared with prior art, the present invention is obtained and is asked with the page access by the accessing page request of combination user The page basic resources for seeking corresponding accession page, according to the page basic resources, be generated and provided to user with it is described The corresponding render tree of page basic resources, shortens the time of user's web page access, reduces user's flowing of access, improves User accesses the efficiency of webpage, and the browsing for improving user accesses experience.Further, the present invention can be combined with accessing page Render tree corresponding with the Segment of the accession page is supplied to user by the Segment information in face, to further Ground shortens the time of user's web page access, reduces user's flowing of access, improves user and accesses the efficiency of webpage, and is promoted The browsing of user accesses experience.It is also possible in conjunction with the page of user related information and/or accession page correlation Information provides a user corresponding render tree, further shortens the time of user's web page access, reduces user's access Flow improves user and accesses the efficiency of webpage, and the browsing for improving user accesses experience.
Description of the drawings
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other Feature, objects and advantages will become more apparent upon:
Fig. 1 is shown according to one aspect of the invention for providing the equipment schematic diagram for accessing webpage for mobile terminal;
Fig. 2 shows in accordance with a preferred embodiment of the present invention for providing the equipment signal for accessing webpage for mobile terminal Figure;
Fig. 3 shows to be shown for providing the equipment for accessing webpage for mobile terminal according to another preferred embodiment of the present invention It is intended to;
Fig. 4 shows the method flow diagram for providing access webpage for mobile terminal according to a further aspect of the present invention;
Fig. 5 shows the method flow for providing access webpage for mobile terminal in accordance with a preferred embodiment of the present invention Figure;
Fig. 6 is shown according to another preferred embodiment of the present invention for providing the method stream for accessing webpage for mobile terminal Cheng Tu.
Same or analogous reference numeral represents same or analogous component in attached drawing.
Specific implementation mode
Present invention is further described in detail below in conjunction with the accompanying drawings.
Fig. 1 is shown according to one aspect of the invention for providing the webpage equipment 1 for accessing webpage for mobile terminal.Its In, webpage equipment 1 includes acquisition request device 111, resource acquisition device 112, render tree generating means 113 and provides device 114.Specifically, acquisition request device 111 obtains the accessing page request that user is submitted by user equipment;Resource acquisition device 112, according to the accessing page request, obtain the page basic resources of accession page corresponding with the accessing page request; Render tree generating means 113 generate render tree corresponding with the page basic resources according to the page basic resources;It carries The render tree is supplied to the user for device 114.Here, webpage equipment 1 includes but not limited to network host, single net The cloud that network server, multiple network server collection or multiple servers are constituted, wherein cloud computing is one kind of Distributed Calculation, A super virtual computer being made of the computer collection of a group loose couplings.Here, cloud is by being based on cloud computing (Cloud Computing a large amount of computers or network server) are constituted.User equipment be any type can with user by keyboard, touch Screen, mouse etc. is touched to carry out human-computer interaction and be able to access that the mobile terminal of webpage equipment 1, such as mobile phone, smart mobile phone, PDA, vehicle Carry computer etc..Those skilled in the art will be understood that above-mentioned webpage equipment 1 and user equipment are only for example, other are existing or modern The network equipment or user equipment being likely to occur afterwards are such as applicable to the present invention, should also be included within the scope of the present invention, And it is incorporated herein by reference herein.
Specifically, the application program that acquisition request device 111 is provided by third party devices such as web browsers connects Mouth (API) or the communication mode by agreements such as HTTP, HTTPS obtain the web page access that user is sent by user equipment Request, for example, user in browser address bar by inputting http://news.sina.com.cn/, by "enter" key", browsing Webpage URL is sent to server by device.
Skilled artisans will appreciate that the method for the accessing page request of above-mentioned acquisition user is only for example, other are existing Or the method for the accessing page request of acquisition user that is likely to occur from now on be such as applicable to the present invention, should also be included in this hair Within bright protection domain, and it is incorporated herein by reference.
The User Page access request that resource acquisition device 112 is obtained according to acquisition request device 111, from page server It is middle to obtain page basic resources corresponding with the accessing page request, here, page basic resources include but not limited to:1) Text (text) resource of the accession page;2) css (cascading style sheets) resource of the accession page;3) the access page The js resources in face.Wherein, the mode for obtaining the page basic resources includes but not limited to:
1) accession page corresponding with the accessing page request is obtained, rule is determined based on scheduled resource, The page basic resources are obtained from the accession page.Specifically, resource acquisition device 112 is according to acquisition request device 111 accessing page requests obtained, such as webpage URL, according to the addresses page URL, by such as in page server The mode for mapping the file hierarchy storage of the page address structure, obtains the access corresponding with the accessing page request The page is then based on scheduled resource and determines rule, page basic resources are obtained from the accession page obtained.For example, When different user accesses same website, the content of pages of concern is different, such as news fan, resource acquisition device 112 The page basic resources of acquisition are written report, the page basic resources obtained for sports enthusiast, resource acquisition device 112 For newest race video.For another example, when same user browses different types of webpage, the content of concern also differs, for new Website is heard, the information of user's concern is based on written report, newsphoto, and to resource sharing website, user is concerned with point Enjoy title content.
2) the webpage t ext resources for obtaining the accession page corresponding with the accessing page request, according to the page Access address in the text resources of face corresponding to page main resource, obtains the basic resources of the page.For example, user passes through Http is inputted in browser address bar://news.sina.com.cn/, by "enter" key", browser sends webpage URL To server, resource acquisition device 112 sends corresponding access request according to the page address, to page server, passes through the page The corresponding HTML responses that server returns, obtain text resources corresponding with the page request, then from the text resources The URL corresponding to other basic resources such as css, js is obtained respectively, then sends such corresponding visits of URL to page server It asks request, and then obtains corresponding basic resources.
Skilled artisans will appreciate that the method for above-mentioned acquisition page basic resources is only for example, other are existing or modern The method for the acquisition page basic resources being likely to occur afterwards is such as applicable to the present invention, should also be included in the scope of the present invention with It is interior, and be incorporated herein by reference.
The page basic resources that render tree generating means 113 are obtained according to resource acquisition device 112 generate and the page The corresponding render tree of basic resources.Specifically, render tree generating means 113 by rendering engine by resource acquisition device 112 The parsings such as the page basic resources of acquisition such as text resources, css resources, i.e. rendering engine are by the corresponding html of page basic resources The label converting dom nodes in content tree of html are then parsed the pattern in external css files and style labels by parsing Information is instructed with the visibility in these style informations and html to build render tree.On skilled artisans will appreciate that The method for stating render tree generation is only for example, and the method that other render trees that are existing or being likely to occur from now on generate is for example applicable It in the present invention, should also be included within the scope of the present invention, and be incorporated herein by reference.
Preferably, render tree generating means 113 are generated according to the page basic resources that resource acquisition device 112 obtains and are rendered When tree, the screen attribute of the user equipment corresponding to the user is may also be combined with to obtain the rendering corresponding to first screen basic resources Tree.Specifically, the page basic resources that render tree generating means 113 are obtained according to resource acquisition device 112, and in conjunction with the use The screen attribute of user equipment corresponding to family, screening, which is informed against, from the page basic resources shields basic resources;According to described Head screen basic resources generate the render tree corresponding with the head screen basic resources.Wherein, the screen attribute include but It is not limited to following at least any one:
The webpage visual field field width and height of the user equipment;
The screen available work area of the user equipment is wide and high;
The screen resolution of the user equipment.
For example, when the screen attribute includes the webpage visual field field width and height of the user equipment, from the page base In this resource screening inform against screen basic resources when, it is assumed that resource acquisition device 112 obtains that " NGB networks hundred are accessed at million family of Shanghai Webpage text resources, css resources and the js resources of million broadbands " journalism report, can obtain according to the webpage js resources of acquisition The webpage visual field field width and height of the user equipment, e.g., according to availWidth=parseInt (document.body.clientWidth) webpage visual field field width is obtained, according to availHeight=parseInt (document.body.clientHeight) it is high to obtain webpage visibility region, render tree generating means 113 combine should The webpage that availWidth and availHeight is reported from " NGB networks hundred mega broadband is accessed at million family of Shanghai " journalism Screening, which is informed against, in text resources, css resources and js resources shields basic resources, and the head is then shielded basic resources by rendering engine Corresponding html parsings are to build corresponding render tree.
Skilled artisans will appreciate that the screen attribute of above-mentioned combination user equipment generates and the first screen basic resources The method of corresponding render tree is only for example, other screen attributes of combination user equipment that are existing or being likely to occur from now on The method for generating render tree corresponding with the head screen basic resources is such as applicable to the present invention, should also be included in guarantor of the present invention It protects within range, and is incorporated herein by reference.
Device 114 is provided, the render tree that render tree generating means 113 generate then is passed through into such as http or https It is provided to the user Deng agreement communication mode, such as the user equipment of the user, is browsed for user.
Preferably, it constantly works between each device of webpage equipment 1.Specifically, acquisition request device 111 Constantly obtain accessing page request from the user;Resource acquisition device 112 continues, according to the accessing page request, to obtain The page basic resources of accession page corresponding with the accessing page request;The constantly basis of render tree generating means 113 The page basic resources generate render tree corresponding with the page basic resources;There is provided device 114 constantly will be described Render tree is supplied to the user.Here, it will be understood by those skilled in the art that " lasting " refers to each device difference of webpage equipment 1 The acquisition of accessing page request, the acquisition of page basic resources, the generation of render tree and offer are constantly carried out, until the webpage is set Standby 1 stops obtaining in a long time the accessing page request of user.
Preferably, resource acquisition device 112 is obtained in the User Page access request obtained according to acquisition request device 111 It, can also be according to user to the access page after the page basic resources of accession page corresponding with the accessing page request The resource in face accesses setting setting, obtains the secondary resource corresponding to the accession page, and the secondary resource is provided To the user equipment.Wherein, the secondary resource includes but not limited to following at least any one:
The img resources of the accession page;
The flash resources of the accession page.
For example, when user sends accessing page request by user equipment to transfer server, by url parameters or Post message bodies are sent to server, and message body format specifies specific bit correspondence specific time using the mode of bitmap Resource is wanted to be arranged.Int types have 4 bytes, totally 32 bits.Whether a minimum setting shows that picture, penultimate are set Set and whether load flash, i.e. isLoadImage=0x01, isLoadFlash=0x02, if the user desired that Load Image and Flash, then the setting uploaded could be provided as url?Setting=0x07.
Skilled artisans will appreciate that the method for the above-mentioned secondary resource of the acquisition page is only for example, other are existing or modern The method for the secondary resource of the acquisition page being likely to occur afterwards is such as applicable to the present invention, should also be included in the scope of the present invention with It is interior, and be incorporated herein by reference.
In a preferred embodiment (with reference to figure 1), webpage equipment 1 includes acquisition request device 111, resource acquisition device 112, render tree generating means 113 and offer device 114.Wherein, resource acquisition device 112 includes text resource acquisition units (not shown) and Secondary resource acquiring unit (not shown).The preferred embodiment is described referring to Fig. 1:Specifically, Acquisition request device 111 obtains the accessing page request that user is submitted by user equipment;Text resource acquisitions unit is according to asking The accessing page request for asking acquisition device 111 to obtain, obtains the webpage t ext resources of the accession page;Secondary resource is given birth to The access address corresponding to page basic resources at unit according to the webpage t ext resources, obtains the page and provides substantially Source;Render tree generating means 113 generate rendering corresponding with the page basic resources according to the page basic resources Tree, provides device 114 and the render tree is supplied to the user.Wherein, acquisition request device 111, render tree generating means It 113 and provides that device 114 is same or similar with corresponding intrument shown in Fig. 1, therefore details are not described herein again, and wraps by reference Contained in this.
Specifically, the accessing page request that text resource acquisitions unit is obtained according to acquisition request device 111 obtains The webpage t ext resources of the accession page.For example, it is assumed that the accessing page request that acquisition request device 111 obtains is net The addresses page URL, text resource acquisitions unit send the addresses webpage URL to page server, are returned by page server Text resources corresponding with the page request are obtained in corresponding HTML responses;Secondary resource acquiring unit is obtained according to text resources The access address corresponding to page basic resources in the webpage t ext resources of unit acquisition is taken, the page basic resources are obtained. For example, it is assumed that the webpage t ext resources that text resource acquisition units obtain are as follows:
Then, the access corresponding to page basic resources of the Secondary resource generation unit according to the webpage t ext resources Location obtains the page basic resources.Connect example, Secondary resource acquiring unit is by the js resource address in above-mentioned text resources url:′http://news.sina.com.cn/pfpnews/js/libweb.js ' sends the visit of corresponding url to page server Request is asked, to obtain the js resources in the text resources.
Skilled artisans will appreciate that above-mentioned obtain the method for page basic resources only from the webpage t ext resources For citing, other are existing or what is be likely to occur from now on obtains the method for page basic resources such as from the webpage t ext resources It is applicable to the present invention, should also be included within the scope of the present invention, and is incorporated herein by reference.
Fig. 2 shows show according to a preferred embodiment of the present invention for providing the equipment for accessing webpage for mobile terminal It is intended to.Wherein resource acquisition device 212 includes page acquiring unit 2121 and first resource acquiring unit 2122.Referring to figure 2 pairs of the preferred embodiment are described:Specifically, acquisition request device 211 obtains the accessing page request of user;The page obtains Unit 2121 obtains the accession page corresponding with the accessing page request according to the accessing page request;First Resource acquisition unit 2122 determines rule according to scheduled resource, and the page basic resources are obtained from the accession page; Render tree generating means 213 generate render tree corresponding with the page basic resources according to the page basic resources;It carries The render tree is supplied to the user for device 214.Wherein, acquisition request device 211 is identical as corresponding intrument shown in Fig. 1 Or it is similar, therefore details are not described herein again, and be incorporated herein by reference.
Specifically, the User Page access request that page acquiring unit 2121 is obtained according to acquisition request device 211 obtains The accession page corresponding with the accessing page request.For example, page acquiring unit 2121 is according to acquisition request device The 211 User Page access request http obtained://news.sina.com.cn/, by mapping the page in page server The file hierarchy of face address structure stores, and obtains corresponding accession page.
Then, first resource acquiring unit 2122 determines rule according to scheduled resource, is obtained from the accession page The page basic resources.For example, it is assumed that the user to access pages that page acquiring unit 2121 obtains is Sina News webpage http://news.sina.com.cn/, first resource acquiring unit 2122 judge that the type of webpage is the theme type webpage, such Type is by the verbal description one or more theme at section, using written report as corresponding page basic resources;For another example, it is assumed that The user to access pages that page acquiring unit 2121 obtains is Sina sharing web page http:// Ishare.iask.sina.com.cn/, first resource acquiring unit 2122 judge that the type of webpage for directory type web, does not have to At the verbal description of section, and it is to provide the hyperlink for being directed toward related web page, shares title content as corresponding using in the page Page basic resources;For another example, it is assumed that the user to access pages that page acquiring unit 2121 obtains is travel network http:// Www.ctsoo.com/, first resource acquiring unit 2122 judge the type of webpage for picture type webpage, and content is logical in webpage Picture embodiment is crossed, only picture is illustrated with a small amount of word, using picture as corresponding page basic resources.For another no When accessing same website with user, the content of pages of concern is different, and such as news fan is obtained to same news web page The page basic resources taken are written report, and for sports enthusiast, the page basic resources of acquisition are newest race video.? This, the resource between accession page and page basic resources determines rule, can be determined according to the type of webpage, can also basis The web page access record statistics of user is formed;The resource determines that rule can be present in webpage equipment in the form of table or database 1 end, or the third party device that is connected by network with webpage equipment 1.
Preferably, webpage equipment 1 further includes blocking information acquisition device 215.Wherein, blocking information acquisition device 215 is used In the Segment information for obtaining the accession page.Specifically, blocking information acquisition device 215 is according to page acquiring unit 2121 accession pages obtained obtain the blocking information of the accession page.For example, 215 basis of blocking information acquisition device VIPS (Vision-based Page Segmentation, view-based access control model the page segmentation) algorithm, using webpage foreground color, The visual signatures such as spacing, element position between background color, font color and size, frame, logical block and logical block, pass through Establish relevant regulations the accession page http that page acquiring unit 2121 is obtained://news.sina.com.cn/ points At each visual information block.Skilled artisans will appreciate that the method for above-mentioned acquisition Segment information is only for example, other The method of acquisition Segment information that is existing or being likely to occur from now on is such as applicable to the present invention, should also be included in the present invention Within protection domain, and it is incorporated herein by reference.
Preferably, the accession page that blocking information acquisition device 215 is obtained according to page acquiring unit 2121 is to obtain When stating the blocking information of accession page, the page relevant information of the accession page is may also be combined with, the accession page is obtained Segment information.Any one of wherein, the page relevant information includes but not limited to, below at least:
The type information of the accession page;
The website sources of the accession page;
The visitation frequency of the accession page.
For example, when page relevant information includes the type information of the accession page, the page of the accession page is determined When blocking information, the accession page that page acquiring unit 2121 obtains is Sina News webpage http:// News.sina.com.cn/, page type are news website, and blocking information acquisition device 215 determines Sina News webpage http:The Segment information of //news.sina.com.cn/ is text subject block.For another example page acquiring unit 2121 obtains Accession page is travel network http://www.ctsoo.com/, page type are picture website, blocking information acquisition device 215 determine travel network http:The Segment information of //www.ctsoo.com/ is picture block.
Skilled artisans will appreciate that the method that above-mentioned combination page relevant information obtains Segment information is only to lift Example, the method that other combination page relevant informations that are existing or being likely to occur from now on obtain Segment information are such as applicable to The present invention should also be included within the scope of the present invention, and be incorporated herein by reference.
The page basic resources that render tree generating means 213 are obtained according to first resource acquiring unit 2122, in conjunction with piecemeal The Segment information that information acquisition device 215 obtains obtains institute corresponding with the Segment of the accession page State render tree.For example, it is assumed that blocking information acquisition device 215 is obtained according to VIPS algorithms according to corresponding web page DOM tree structure The accession page Segment information be text subject block VB21;Render tree generating means 213 are obtained according to first resource The page basic resources such as text resources, css resources etc. that unit 2122 obtains are taken, in conjunction with Segment VB21, obtain the page Piecemeal corresponding page basic resources such as text1, css1 etc., by rendering engine by the corresponding page bases of Segment VB21 This resource such as text1, css1 parsing, to build corresponding render tree.
Preferably, render tree generating means 213 can also substantially be provided according to the page that first resource acquiring unit 2122 obtains Source first generates corresponding render tree;Then the Segment information obtained in conjunction with blocking information acquisition device 215 obtains The render tree corresponding with the Segment of the accession page.For example, it is assumed that first resource acquiring unit 2122 obtains Page basic resources be page text text resources, css resources and js resources, render tree generating means 213 are according to the page The corresponding html of the page basic resources is parsed by rendering engine, is obtained render tree render, then tie again by basic resources The Segment information such as page main body piecemeal VB22 that blocking information acquisition device 215 obtains is closed, is obtained in render tree render Render tree corresponding with Segment VB22 is render2.
Offer device 214 generates render tree generating means 213 corresponding with the Segment of the accession page The render tree arranges communication mode by http or https etc. and is provided to the user, such as the user equipment of the user, It is browsed for user.
Fig. 3 shows the equipment for providing access webpage for mobile terminal according to a further advantageous embodiment of the invention Schematic diagram.Wherein, webpage equipment 1 includes acquisition request device 311, resource acquisition device 312, render tree generating means 313, carries For device 314, blocking information acquisition device 315 and piecemeal priority determining device 316.Referring to Fig. 3 to the preferred implementation Example is described:Specifically, acquisition request device 311 obtains the accessing page request of user;Resource acquisition device 312 is according to institute Accessing page request is stated, the accession page corresponding with the accessing page request is obtained, then according to scheduled resource It determines rule, the page basic resources is obtained from the accession page;Blocking information acquisition device 315 is described for obtaining The Segment information of accession page;Render tree generating means 313 provide substantially according to the page that resource acquisition device 312 obtains Source obtains the Segment with the accession page in conjunction with the Segment information that blocking information acquisition device 315 obtains The corresponding render tree;Piecemeal priority determining device 316 determines the visit in conjunction with the user related information of the user Ask the Segment priority in the page;The Segment that offer device 314 is determined according to piecemeal priority determining device 316 The render tree corresponding with the Segment of accession page is supplied to the user by precedence information.Wherein, request obtains Take device 311 same or similar with corresponding intrument shown in Fig. 1, resource acquisition device 322, render tree generating means 313 and piecemeal Information determining means 315 are same or similar with corresponding intrument shown in Fig. 2, therefore details are not described herein again, and wrap by reference Contained in this.
Specifically, piecemeal priority determining device 316 determines the access page in conjunction with the user related information of the user Segment priority in face;The preferential of the Segment that device 314 is determined according to piecemeal priority determining device 316 is provided Grade information, the user is supplied to by the render tree corresponding with the Segment of accession page.Wherein, user's phase It includes but not limited to following at least any one to close information:
The essential attribute of the user;
The history access record of the user;
The group attribute of the user.
For example, when the user related information includes the essential attribute of user, such as news, fan is concerned with word Report, sports enthusiast is concerned with video race, travel enthusiasts are concerned with scenery picture, piecemeal priority determining device Web page text block priority is higher than the priority of the Segments such as the fast, commercial block of picture block, video in 316 determination news web pages, And for sports enthusiast, it is preferably concerned with video race, the priority of video web page block is higher than text block, commercial block at this time The priority of equal Segments, for travel enthusiasts, what is given priority to is scenery picture, at this time the priority of Web page picture block Higher than the priority of the Segments such as video block, commercial block.For another example, when the history that the user related information includes user accesses When record, a such as user accesses certain website such as http://sina.com.cn/, the column paid close attention to daily be same day finance and economics information, Techwatch, reading Hall of Fame, piecemeal priority determining device 316 determine the text block priority in the accession page higher than figure The priority of the Segments such as tile, video block, commercial block.
Skilled artisans will appreciate that the method that above-mentioned combination user related information determines Segment priority is only Citing, the method that other combination user related informations that are existing or being likely to occur from now on determine Segment priority can such as fit It for the present invention, should also be included within the scope of the present invention, and be incorporated herein by reference.
The precedence information that the Segment that device 314 is determined according to piecemeal priority determining device 316 is provided, by all Such as http or https arranges communication mode, and the render tree corresponding with the Segment of accession page is supplied to institute User is stated, such as the user equipment of the user, is browsed for user.
In a preferred embodiment (with reference to figure 3), webpage equipment 1 includes acquisition request device 311, resource acquisition device 312, render tree generating means 313 and offer device 314.The preferred embodiment is described referring to Fig. 3:Specifically, Acquisition request device 311 obtains the accessing page request, wherein the accessing page request includes page in the accession page The precedence information of face dividing;Resource acquisition device 312 obtains and the accessing page request according to the accessing page request Then the corresponding accession page determines rule according to scheduled resource, the page is obtained from the accession page Basic resources;Render tree generating means 313 generate corresponding with the page basic resources according to the page basic resources Render tree;The access page that device 314 includes according to the accessing page request that acquisition request device 311 obtains is provided The render tree corresponding with the Segment of accession page is supplied to the use by the precedence information of Segment in face Family.Wherein, resource acquisition device 312, render tree generating means 313 are same or similar with corresponding intrument shown in Fig. 2, therefore herein It repeats no more, and is incorporated herein by reference.
Specifically, acquisition request device 311 obtains the accessing page request, wherein the accessing page request includes institute State the precedence information of Segment in accession page.For example, server is sent to by url parameters or post message bodies, Message body format specifies specific bit correspondence to be specifically arranged using the mode of bitmap.Int types have 4 bytes, totally 32 Bit.Whether a minimum setting shows whether picture, penultimate setting load flash, and antepenulatimate setting is It is no to use through priority loading blocks, i.e. isLoadImage=0x01, isLoadFlash=0x02, isUsePriority= 0x04, if the user desired that Load Image and flash, and use priority, then the setting uploaded could be provided as url?Setting=0x07&priority=5 shows only to show the block that priority is more than 5.Here, the Segment Precedence information can be also arranged in webpage equipment 1, or be set in the third party device being connected by network with webpage equipment 1 It sets.
Skilled artisans will appreciate that the method for above-mentioned Segment priority setting is only for example, other it is existing or The method for the Segment priority setting being likely to occur from now on is such as applicable to the present invention, should also be included in present invention protection model Within enclosing, and it is incorporated herein by reference.
The access that device 314 includes according to the accessing page request that acquisition request device 311 obtains is provided The precedence information of Segment in the page arranges communication mode by http or https etc., will described and accession page The corresponding render tree of Segment be supplied to the user, such as the user equipment of the user, browsed for user.
Fig. 4 shows the method flow diagram for providing access webpage for mobile terminal according to a further aspect of the present invention.
Specifically, in step S401, webpage equipment 1 obtains the accessing page request that user is submitted by user equipment; In step S402, webpage equipment 1 obtains access corresponding with the accessing page request according to the accessing page request The page basic resources of the page;In step S403, webpage equipment 1 generates and the page according to the page basic resources The corresponding render tree of basic resources;In step s 404, the render tree is supplied to the user by webpage equipment 1.Here, Webpage equipment 1 includes but not limited to that network host, single network server, multiple network server collection or multiple servers are constituted Cloud, wherein cloud computing is one kind of Distributed Calculation, and one be made of the computer collection of a group loose couplings is super virtual Computer.Here, cloud is made of a large amount of computers or network server for being based on cloud computing (Cloud Computing).User Equipment, which is any type, can carry out human-computer interaction by keyboard, touch screen, mouse etc. with user and be able to access that webpage equipment 1 Mobile terminal, such as mobile phone, smart mobile phone, PDA, vehicle-mounted computer etc..Those skilled in the art will be understood that above-mentioned webpage equipment 1 It is only for example with user equipment, other network equipments or user equipment existing or be likely to occur from now on are such as applicable to this hair It is bright, it should also be included within the scope of the present invention, and be incorporated herein by reference herein.
Specifically, in step S401, webpage equipment 1 is answered by what the third party devices such as web browser were provided With routine interface (API) or by the communication mode of the agreements such as HTTP, HTTPS, obtain what user was sent by user equipment Web access requests, for example, user in browser address bar by inputting http://news.sina.com.cn/, is pressed Webpage URL is sent to server by "enter" key", browser.
Skilled artisans will appreciate that the method for the accessing page request of above-mentioned acquisition user is only for example, other are existing Or the method for the accessing page request of acquisition user that is likely to occur from now on be such as applicable to the present invention, should also be included in this hair Within bright protection domain, and it is incorporated herein by reference.
In step S402, the User Page access request that webpage equipment 1 is obtained according to it in step S401, from the page Corresponding with accessing page request page basic resources are obtained in server, here, page basic resources include but not It is limited to:1) text (text) resource of the accession page;2) css (cascading style sheets) resource of the accession page;3) institute State the js resources of accession page.Wherein, the mode for obtaining the page basic resources includes but not limited to:
1) accession page corresponding with the accessing page request is obtained, rule is determined based on scheduled resource, The page basic resources are obtained from the accession page.Specifically, in step S402, webpage equipment 1 is according to it in step The accessing page request obtained in rapid S401, such as webpage URL, according to the addresses page URL, by such as in Page Service The mode that the file hierarchy storage of the page address structure is mapped in device obtains corresponding with the accessing page request described Accession page is then based on scheduled resource and determines rule, page basic resources are obtained from the accession page obtained.Example Such as, when different user accesses same website, the content of pages of concern is different, such as news fan, in step S402, The page basic resources that webpage equipment 1 obtains are written report, and for sports enthusiast, in step S402, webpage equipment 1 obtains The page basic resources taken are newest race video.For another example, when same user browses different types of webpage, the content of concern Also it differs, for news website, the information of user's concern is based on written report, newsphoto, and to resource sharing website, User, which is concerned with, shares title content.
2) the webpage t ext resources for obtaining the accession page corresponding with the accessing page request, according to the page Access address in the text resources of face corresponding to page main resource, obtains the basic resources of the page.For example, user passes through Http is inputted in browser address bar://news.sina.com.cn/, by "enter" key", browser sends webpage URL To server, in step S402, webpage equipment 1 sends corresponding access request according to the page address, to page server, leads to The corresponding HTML responses for crossing page server return, obtain text resources corresponding with the page request, then from the text The URL corresponding to other basic resources such as css, js is obtained in resource respectively, it is opposite then to send such URL to page server The access request answered, and then obtain corresponding basic resources.
Skilled artisans will appreciate that the method for above-mentioned acquisition page basic resources is only for example, other are existing or modern The method for the acquisition page basic resources being likely to occur afterwards is such as applicable to the present invention, should also be included in the scope of the present invention with It is interior, and be incorporated herein by reference.
In step S403, the page basic resources that webpage equipment 1 is obtained according to it in step S402, generate with it is described The corresponding render tree of page basic resources.Specifically, in step S403, webpage equipment 1 is by rendering engine by it in step The parsings such as the page basic resources such as text resources, css resources obtained in rapid S402, i.e. rendering engine are by page basic resources pair The label converting dom nodes in content tree of html are then parsed external css files and style labels by the html parsings answered In style information, instructed with the visibility in these style informations and html and build render tree.Those skilled in the art It can understand that the method that above-mentioned render tree generates is only for example, the method that other render trees that are existing or being likely to occur from now on generate It is such as applicable to the present invention, should also be included within the scope of the present invention, and is incorporated herein by reference.
Preferably, in step S403, webpage equipment 1 is generated according to the page basic resources that it is obtained in step S401 When render tree, the screen attribute of the user equipment corresponding to the user is may also be combined with to obtain corresponding to first screen basic resources Render tree.Specifically, in step S403, the page basic resources that webpage equipment 1 is obtained according to it in step S402, and tie The screen attribute for closing the user equipment corresponding to the user, screening, which is informed against, from the page basic resources shields basic resources; According to the first screen basic resources, the render tree corresponding with the head screen basic resources is generated.Wherein, the screen category Property include but not limited to it is following any one of at least:
The webpage visual field field width and height of the user equipment;
The screen available work area of the user equipment is wide and high;
The screen resolution of the user equipment.
For example, when the screen attribute includes the webpage visual field field width and height of the user equipment, from the page base In this resource screening inform against screen basic resources when, it is assumed that in step S402, webpage equipment 1 obtain " million family of Shanghai access NGB Webpage text resources, css resources and the js resources of network hundred mega broadband " journalism report, can be according to the webpage js moneys of acquisition Source obtains the webpage visual field field width and height of the user equipment, e.g., according to availWidth=parseInt (document.body.clientWidth) webpage visual field field width is obtained, according to availHeight=parseInt (document.body.clientHeight) it is high to obtain webpage visibility region, render tree generating means 113 combine should The webpage that availWidth and availHeight is reported from " NGB networks hundred mega broadband is accessed at million family of Shanghai " journalism Screening, which is informed against, in text resources, css resources and js resources shields basic resources, and the head is then shielded basic resources by rendering engine Corresponding html parsings are to build corresponding render tree.
Skilled artisans will appreciate that the screen attribute of above-mentioned combination user equipment generates and the first screen basic resources The method of corresponding render tree is only for example, other screen attributes of combination user equipment that are existing or being likely to occur from now on The method for generating render tree corresponding with the head screen basic resources is such as applicable to the present invention, should also be included in guarantor of the present invention It protects within range, and is incorporated herein by reference.
In step s 404, the render tree that webpage equipment 1 then generates it in step S403 passes through such as The agreement communication mode such as http or https is provided to the user, such as the user equipment of the user, is browsed for user.
Preferably, it constantly works between each step of webpage equipment 1.Specifically, in step S401, net Page equipment 1 constantly obtains accessing page request from the user;In step S402, webpage equipment 1 continues according to the page Face access request obtains the page basic resources of accession page corresponding with the accessing page request;In step S403, Webpage equipment 1 constantly according to the page basic resources, generates render tree corresponding with the page basic resources;In step In rapid S404, the render tree is constantly supplied to the user by webpage equipment 1.Here, it will be understood by those skilled in the art that " lasting " refer to webpage equipment 1 each device constantly carry out respectively the acquisition of accessing page request, the acquisition of page basic resources, The generation and offer of render tree, until the webpage equipment 1 stops obtaining in a long time the accessing page request of user.
Preferably, in step S402, webpage equipment 1 is asked in the User Page access obtained in step S401 according to it It, can also be according to user to described after seeking the page basic resources for obtaining accession page corresponding with the accessing page request The resource of accession page accesses setting setting, obtains the secondary resource corresponding to the accession page, and by the secondary money Source is supplied to the user equipment.Wherein, the secondary resource includes but not limited to following at least any one:
The img resources of the accession page;
The flash resources of the accession page.
For example, when user sends accessing page request by user equipment to transfer server, by url parameters or Post message bodies are sent to server, and message body format specifies specific bit correspondence specific time using the mode of bitmap Resource is wanted to be arranged.Int types have 4 bytes, totally 32 bits.Whether a minimum setting shows that picture, penultimate are set Set and whether load flash, i.e. isLoadImage=0x01, isLoadFlash=0x02, if the user desired that Load Image and Flash, then the setting uploaded could be provided as url?Setting=0x07.
Skilled artisans will appreciate that the method for the above-mentioned secondary resource of the acquisition page is only for example, other are existing or modern The method for the secondary resource of the acquisition page being likely to occur afterwards is such as applicable to the present invention, should also be included in the scope of the present invention with It is interior, and be incorporated herein by reference.
In a preferred embodiment (with reference to figure 3), wherein step S402 includes step S4021 (not shown) and step S4022 (not shown).The preferred embodiment is described referring to Fig. 3:Specifically, in step S401, webpage equipment 1 Acquisition request device 111 obtains the accessing page request that user is submitted by user equipment;In step S4021, webpage equipment 1 The accessing page request obtained in step S401 according to it obtains the webpage t ext resources of the accession page;In step In rapid S4022, the access address corresponding to page basic resources of the webpage equipment 1 according to the webpage t ext resources obtains institute State page basic resources;In step S403, webpage equipment 1 generates basic with the page according to the page basic resources The corresponding render tree of resource;In step s 404, the render tree is supplied to the user by webpage equipment 1.Wherein, step It is same or similar that S401, step S403 and step S404 correspond to step as shown in figure 3, therefore details are not described herein again, and passes through reference Mode be incorporated herein.
Specifically, in step S4021, the page access that webpage equipment 1 is obtained according to it in step S401 is asked It asks, obtains the webpage t ext resources of the accession page.For example, it is assumed that in step S401, the page of the acquisition of webpage equipment 1 Face access request is the addresses webpage URL, and in step S4021, webpage equipment 1 sends the addresses webpage URL to page server, Text resources corresponding with the page request are obtained in the corresponding HTML responses returned by page server;In step In S4022, in the webpage t ext resources that webpage equipment 1 is obtained in step S4022 according to it corresponding to page basic resources Access address obtains the page basic resources.For example, it is assumed that in step S4021, the webpage t ext of the acquisition of webpage equipment 1 Resource is as follows:
Then, in step S4022, corresponding to page basic resources of the webpage equipment 1 according to the webpage t ext resources Access address, obtain the page basic resources.Example is connected, in step S4022, webpage equipment 1 is by above-mentioned text resources In js resource address url:′http://news.sina.com.cn/pfpnews/js/libweb.js ' is to page server The access request for sending corresponding url, to obtain the js resources in the text resources.
Skilled artisans will appreciate that above-mentioned obtain the method for page basic resources only from the webpage t ext resources For citing, other are existing or what is be likely to occur from now on obtains the method for page basic resources such as from the webpage t ext resources It is applicable to the present invention, should also be included within the scope of the present invention, and is incorporated herein by reference.
Fig. 5 shows the method flow for providing access webpage for mobile terminal in accordance with a preferred embodiment of the present invention Figure.
Wherein, step S502 includes step S5021 and step S5022.The preferred embodiment is retouched referring to Fig. 5 It states:Specifically, in step S501, webpage equipment 1 obtains the accessing page request of user;In step S5021, webpage equipment 1, according to the accessing page request, obtains the accession page corresponding with the accessing page request;In step S5022 In, webpage equipment 1 determines rule according to scheduled resource, and the page basic resources are obtained from the accession page;In step In rapid S506, webpage equipment 1 generates render tree corresponding with the page basic resources according to the page basic resources; In step s 507, the render tree is supplied to the user by webpage equipment 1.Wherein, step S501 steps corresponding with shown in Fig. 4 Rapid S401 is same or similar, therefore details are not described herein again, and is incorporated herein by reference.
Specifically, in step S5021, the User Page access that webpage equipment 1 is obtained according to it in step S501 is asked It asks, obtains the accession page corresponding with the accessing page request.For example, in step S5021, webpage equipment 1 The User Page access request http obtained in step S501 according to it://news.sina.com.cn/, by Page Service The file hierarchy storage that the page address structure is mapped in device, obtains corresponding accession page.
Then, in step S5022, webpage equipment 1 determines rule according to scheduled resource, is obtained from the accession page Take the page basic resources.For example, it is assumed that in step S5021, the user to access pages that webpage equipment 1 obtains is that Sina is new Hear webpage http://news.sina.com.cn/, in step S5022, webpage equipment 1 judges that the type of webpage is the theme type Webpage, the type is by the verbal description one or more theme at section, using written report as corresponding page basic resources; For another example, it is assumed that in step S5021, the user to access pages that webpage equipment 1 obtains is Sina sharing web page http:// Ishare.iask.sina.com.cn/, in step S5022, webpage equipment 1 judges the type of webpage for directory type web, no With the verbal description at section, and it is to provide the hyperlink for being directed toward related web page, shares title content as accordingly using in the page Page basic resources;For another example, it is assumed that in step S5021, the user to access pages that webpage equipment 1 obtains is travel network http://www.ctsoo.com/, in step S5022, webpage equipment 1 judges the type of webpage for picture type webpage, webpage Middle content is embodied by picture, is only illustrated to picture with a small amount of word, is provided picture as the corresponding page substantially Source.For another when different user accesses same website, the content of pages of concern is different, such as to same news web page, for news The page basic resources of fan, acquisition are written report, and for sports enthusiast, the page basic resources of acquisition are newest match Thing video.Here, the resource between accession page and page basic resources determines rule, can be determined according to the type of webpage, Statistics can also be recorded according to the web page access of user to be formed;The resource determines that rule can exist in the form of table or database In 1 end of webpage equipment, or the third party device that is connected by network with webpage equipment 1.
Preferably, webpage equipment 1 further includes step S505.Wherein, in step S505, webpage equipment 1 is for obtaining institute State the Segment information of accession page.Specifically, in step S505, webpage equipment 1 is obtained according to it in step S5021 Accession page obtain the blocking information of the accession page.For example, in step S505, webpage equipment 1 is according to VIPS (Vision-based Page Segmentation, the page segmentation of view-based access control model) algorithm, utilizes webpage foreground color, background The visual signatures such as spacing, element position between color, font color and size, frame, logical block and logical block pass through formulation The accession page http that corresponding rule obtains it in step S5021://news.sina.com.cn/ is divided into each Visual information block.Skilled artisans will appreciate that the method for above-mentioned acquisition Segment information is only for example, other are existing Or the method for the acquisition Segment information being likely to occur from now on is such as applicable to the present invention, should also be included in present invention protection model Within enclosing, and it is incorporated herein by reference.
Preferably, in step S505, accession page that webpage equipment 1 is obtained according to it in step S5021 obtains When the blocking information of the accession page, the page relevant information of the accession page is may also be combined with, the accession page is obtained Segment information.Any one of wherein, the page relevant information includes but not limited to, below at least:
The type information of the accession page;
The website sources of the accession page;
The visitation frequency of the accession page.
For example, when page relevant information includes the type information of the accession page, the page of the accession page is determined When blocking information, in step S5021, the accession page that webpage equipment 1 obtains is Sina News webpage http:// News.sina.com.cn/, page type is news website, and in step S505, webpage equipment 1 determines Sina News webpage http:The Segment information of //news.sina.com.cn/ is text subject block.For another example in step S5021, webpage equipment 1 accession page obtained is travel network http://www.ctsoo.com/, page type is picture website, in step S505 In, webpage equipment 1 determines travel network http:The Segment information of //www.ctsoo.com/ is picture block.
Skilled artisans will appreciate that the method that above-mentioned combination page relevant information obtains Segment information is only to lift Example, the method that other combination page relevant informations that are existing or being likely to occur from now on obtain Segment information are such as applicable to The present invention should also be included within the scope of the present invention, and be incorporated herein by reference.
In step S506, the page basic resources that webpage equipment 1 is obtained according to it in step S5022, in conjunction with its The Segment information obtained in step S505 obtains the rendering corresponding with the Segment of the accession page Tree.For example, it is assumed that in step S505, webpage equipment 1 is according to VIPS algorithms, according to corresponding web page DOM tree structure, the institute of acquisition The Segment information for stating accession page is text subject block VB21;In step S506, webpage equipment 1 is according to it in step Page basic resources obtained in S5022 such as text resources, css resources etc. obtain the Segment in conjunction with Segment VB21 Corresponding page basic resources such as text1, css1 etc. are provided the corresponding pages of Segment VB21 by rendering engine substantially The parsings such as source such as text1, css1, to build corresponding render tree.
Preferably, in step S506, the page that webpage equipment 1 can also be obtained according to it in step S5022 provides substantially Source first generates corresponding render tree;Then the Segment information obtained in step S505 in conjunction with it, obtain with it is described The corresponding render tree of Segment of accession page.For example, it is assumed that in step S5022, the page of the acquisition of webpage equipment 1 Face basic resources are page text text resources, css resources and js resources, and in step S506, webpage equipment 1 is according to the page The corresponding html of the page basic resources is parsed by rendering engine, is obtained render tree render, then tie again by basic resources Close the Segment information such as page main body piecemeal VB22 that it is obtained in step S505, obtain in render tree render with the page The corresponding render trees of piecemeal VB22 are render2.
In step s 507, the Segment with the accession page that webpage equipment 1 generates it in step S506 The corresponding render tree arranges communication mode by http or https etc. and is provided to the user, such as the user User equipment is browsed for user.
Fig. 6 is shown according to another preferred embodiment of the present invention for providing the method stream for accessing webpage for mobile terminal Cheng Tu.
The preferred embodiment is described referring to Fig. 6:Specifically, in step s 601, webpage equipment 1, which obtains, uses The accessing page request at family;In step S602, webpage equipment 1 is obtained and is visited with the page according to the accessing page request It asks request the corresponding accession page, rule is then determined according to scheduled resource, institute is obtained from the accession page State page basic resources;In step s 605, webpage equipment 1 is used to obtain the Segment information of the accession page;In step In rapid S606, the page basic resources that webpage equipment 1 is obtained according to it in step S602 obtain in step s 605 in conjunction with it The Segment information, obtain corresponding with the Segment of the accession page render tree;In step S608 In, webpage equipment 1 determines the Segment priority in the accession page in conjunction with the user related information of the user;? In step S609, webpage equipment 1, will described and access according to the precedence information of its Segment determined in step S608 The corresponding render tree of Segment of the page is supplied to the user.Wherein, step S601 corresponds to step S401 with shown in Fig. 4 It is same or similar, step S602, step S606 and step S605 respectively with step S502, step S506, step S505 phases in Fig. 5 It is same or similar, therefore details are not described herein again, and be incorporated herein by reference.
Specifically, in step S608, webpage equipment 1 determines the access in conjunction with the user related information of the user Segment priority in the page;In step S609, webpage equipment 1 is according to its determining Segment in step S608 Precedence information, the render tree corresponding with the Segment of accession page is supplied to the user.Wherein, described User related information includes but not limited to following at least any one:
The essential attribute of the user;
The history access record of the user;
The group attribute of the user.
For example, when the user related information includes the essential attribute of user, such as news, fan is concerned with word Report, sports enthusiast is concerned with video race, travel enthusiasts are concerned with scenery picture, in step S608, webpage Equipment 1 determines that web page text block priority is preferential higher than Segments such as picture block, the fast, commercial blocks of video in news web page Grade is preferably concerned with video race and for sports enthusiast, and the priority of video web page block is higher than text block, wide at this time The priority of the Segments such as block is accused, for travel enthusiasts, what is given priority to is scenery picture, and Web page picture block is excellent at this time Priority of the first grade higher than Segments such as video block, commercial blocks.For another example, when the user related information includes the history of user When accessing record, a such as user accesses certain website such as http://sina.com.cn/, the column paid close attention to daily provide for same day finance and economics News, techwatch, reading Hall of Fame, in step S608, webpage equipment 1 determines that the text block priority in the accession page is high In the priority of the Segments such as picture block, video block, commercial block.
Skilled artisans will appreciate that the method that above-mentioned combination user related information determines Segment priority is only Citing, the method that other combination user related informations that are existing or being likely to occur from now on determine Segment priority can such as fit It for the present invention, should also be included within the scope of the present invention, and be incorporated herein by reference.
In step S609, webpage equipment 1 is led to according to the precedence information of its Segment determined in step S608 The agreement communication mode such as http or https is crossed, the render tree corresponding with the Segment of accession page is provided It is browsed for user such as the user equipment of the user to the user.
In a preferred embodiment (with reference to figure 6), webpage equipment 1 include step S601, step S602, step S606 and Step S609.The preferred embodiment is described referring to Fig. 6:Specifically, in step s 601, webpage equipment 1 obtains The accessing page request, wherein the accessing page request includes the precedence information of Segment in the accession page; In step S602, webpage equipment 1 obtains corresponding with the accessing page request described according to the accessing page request Then accession page determines rule according to scheduled resource, the page basic resources is obtained from the accession page;In step In rapid S606, webpage equipment 1 generates render tree corresponding with the page basic resources according to the page basic resources; In step S609, the visit that webpage equipment 1 includes according to the accessing page request that it is obtained in step s 601 The render tree corresponding with the Segment of accession page is supplied to institute by the precedence information for asking Segment in the page State user.Wherein, step S602, step S606 is same or similar with step S502, step S506 in Fig. 5 respectively, therefore herein not It repeats, and is incorporated herein by reference again.
Specifically, in step s 601, webpage equipment 1 obtains the accessing page request, wherein the page access is asked Seek the precedence information for including Segment in the accession page.For example, being sent to by url parameters or post message bodies Server, message body format specify specific bit correspondence to be specifically arranged using the mode of bitmap.Int types have 4 words It saves, totally 32 bits.Whether a minimum setting shows picture, and whether penultimate setting loads flash, third from the bottom Whether position setting uses through priority loading blocks, i.e. isLoadImage=0x01, isLoadFlash=0x02, IsUsePriority=0x04, if the user desired that Load Image and flash, and use priority, then upload Setting could be provided as url?Setting=0x07 & priority=5 show only to show the block that priority is more than 5. Here, the precedence information of the Segment can be also arranged in webpage equipment 1, or passing through network phase with webpage equipment 1 It is arranged in the third party device of connection.
Skilled artisans will appreciate that the method for above-mentioned Segment priority setting is only for example, other it is existing or The method for the Segment priority setting being likely to occur from now on is such as applicable to the present invention, should also be included in present invention protection model Within enclosing, and it is incorporated herein by reference.
In step S609, webpage equipment 1 includes according to the accessing page request that it is obtained in step s 601 The accession page in Segment precedence information, communication mode is arranged by http or https etc., will be described Render tree corresponding with the Segment of accession page is supplied to the user, clear for user such as the user equipment of the user It lookes at.
It should be noted that the present invention can be carried out in the assembly of software and/or software and hardware, for example, can adopt With application-specific integrated circuit (ASIC), general purpose computer or any other realized similar to hardware device.In one embodiment In, software program of the invention can be executed by processor to realize steps described above or function.Similarly, of the invention Software program (including relevant data structure) can be stored in computer readable recording medium storing program for performing, for example, RAM memory, Magnetic or optical driver or floppy disc and similar devices.In addition, hardware can be used to realize in some steps or function of the present invention, example Such as, coordinate to execute the circuit of each step or function as with processor.
In addition, the part of the present invention can be applied to computer program product, such as computer program instructions, when its quilt When computer executes, by the operation of the computer, it can call or provide according to the method for the present invention and/or technical solution. And the program instruction of the method for the present invention is called, it is possibly stored in fixed or moveable recording medium, and/or pass through Broadcast or the data flow in other signal loaded mediums and be transmitted, and/or be stored according to described program instruction operation In the working storage of computer equipment.Here, including a device according to one embodiment of present invention, which includes using Memory in storage computer program instructions and processor for executing program instructions, wherein when the computer program refers to When order is executed by the processor, method and/or skill of the device operation based on aforementioned multiple embodiments according to the present invention are triggered Art scheme.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Profit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent requirements of the claims Variation includes within the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " is not excluded for other units or step, and odd number is not excluded for plural number.That is stated in device claim is multiple Unit or device can also be realized by a unit or device by software or hardware.The first, the second equal words are used for table Show title, and does not represent any particular order.

Claims (16)

1. a kind of by the computer implemented method for providing accession page, wherein this approach includes the following steps:
A obtains the accessing page request of user;
According to the accessing page request, the page for obtaining accession page corresponding with the accessing page request provides b substantially Source;
X obtains the Segment information of the accession page;
C is generated and the page basic resources and the visit according to the page basic resources in conjunction with the Segment information Ask the Segment of the page corresponding render tree;
The render tree corresponding with the Segment of accession page is supplied to the user by d;
Wherein, the step b includes:
According to the accessing page request, the accession page corresponding with the accessing page request is obtained;
Rule is determined according to scheduled resource, the page basic resources is obtained from the accession page, wherein described pre- Fixed resource determines rule based on type of webpage or the web page access of user record to generate.
2. according to the method described in claim 1, wherein, the step b includes:
According to the accessing page request, the webpage t ext resources of the accession page are obtained;
According to the access address corresponding to page main resource in the webpage t ext resources, the page basic resources are obtained.
3. method according to claim 1 or 2, wherein the step c includes:
According to the page basic resources, the render tree is generated;
It is obtained corresponding with the Segment of the accession page in conjunction with the Segment information according to the render tree The render tree.
4. method according to claim 1 or 2, wherein the step a includes:
The accessing page request is obtained, wherein the accessing page request includes the excellent of Segment in the accession page First grade information;
Wherein, the step d includes:
According to the precedence information of the Segment, the render tree corresponding with the Segment of accession page is carried Supply the user.
5. method according to claim 1 or 2, wherein this method further includes:
In conjunction with the user related information of the user, the priority of Segment in the accession page is determined;Wherein, described Step d includes:
According to the precedence information of the Segment, the render tree corresponding with the Segment of accession page is carried Supply the user;
Wherein, the user related information includes following at least any one:
The essential attribute of the user;
The history access record of the user;
The group attribute of the user.
6. method according to claim 1 or 2, wherein the step x includes:
In conjunction with the page relevant information of the accession page, the Segment information of the accession page is obtained;
Wherein, the page relevant information includes following at least any one:
The type information of the accession page;
The website sources of the accession page;
The visitation frequency of the accession page.
7. method according to claim 1 or 2, wherein the step c includes:
According to the page basic resources, and the screen attribute of the user equipment in conjunction with corresponding to the user, from the page Screening, which is informed against, in basic resources shields basic resources;
According to the first screen basic resources, the render tree corresponding with the head screen basic resources is generated;
Wherein, the step d includes:
The render tree corresponding with first screen basic resources is supplied to the user;
Wherein, the screen attribute includes following at least any one:
The webpage visual field field width and height of the user equipment;
The screen available work area of the user equipment is wide and high;
The screen resolution of the user equipment.
8. method according to claim 1 or 2, wherein the page basic resources include following at least any one:
The text resources of the accession page;
The css resources of the accession page;
The js resources of the accession page.
9. a kind of webpage equipment providing accession page, wherein the webpage equipment includes:
Acquisition request device, the accessing page request for obtaining user;
Resource acquisition device, for according to the accessing page request, obtaining access corresponding with the accessing page request The page basic resources of the page;
Blocking information acquisition device, the Segment information for obtaining the accession page;
Render tree generating means, for being generated and the page in conjunction with the Segment information according to the page basic resources The corresponding render tree of the Segment of face basic resources and the accession page;
Device is provided, for the render tree corresponding with the Segment of accession page to be supplied to the user;
Wherein, the resource acquisition device includes:
Page acquiring unit, for according to the accessing page request, obtaining corresponding with the accessing page request described Accession page;
First resource acquiring unit obtains the page for determining rule according to scheduled resource from the accession page Basic resources, wherein the scheduled resource determines rule based on type of webpage or the web page access of user record to generate.
10. webpage equipment according to claim 9, wherein the resource acquisition device includes:
Text resource acquisition units, for according to the accessing page request, obtaining the webpage t ext resources of the accession page;
Secondary resource acquiring unit is used for the access address corresponding to page main resource in the webpage t ext resources, Obtain the page basic resources.
11. webpage equipment according to claim 9 or 10, wherein the render tree generating means are used for:
According to the page basic resources, the render tree is generated;
It is obtained corresponding with the Segment of the accession page in conjunction with the Segment information according to the render tree The render tree.
12. webpage equipment according to claim 9 or 10, wherein the acquisition request device is for obtaining the page Access request, wherein the accessing page request includes the precedence information of Segment in the accession page;
Wherein, the device that provides is for the precedence information according to the Segment, by the described and accession page page The corresponding render tree of piecemeal is supplied to the user.
13. webpage equipment according to claim 9 or 10, wherein the webpage equipment further includes:
Piecemeal priority determining device determines the page in the accession page for the user related information in conjunction with the user The priority of piecemeal;
Wherein, the device that provides is for the precedence information according to the Segment, by the described and accession page page The corresponding render tree of piecemeal is supplied to the user;
Wherein, the user related information includes following at least any one:
The essential attribute of the user;
The history access record of the user;
The group attribute of the user.
14. webpage equipment according to claim 9 or 10, wherein the blocking information acquisition device is used in conjunction with described The page relevant information of accession page obtains the Segment information of the accession page;
Wherein, the page relevant information includes following at least any one:
The type information of the accession page;
The website sources of the accession page;
The visitation frequency of the accession page.
15. webpage equipment according to claim 9 or 10, wherein the render tree generating means are used for:
According to the page basic resources, and the screen attribute of the user equipment in conjunction with corresponding to the user, from the page Screening, which is informed against, in basic resources shields basic resources;
According to the first screen basic resources, the render tree corresponding with the head screen basic resources is generated;
Wherein, the offer device is used to the render tree corresponding with first screen basic resources being supplied to the user;
Wherein, the screen attribute includes following at least any one:
The webpage visual field field width and height of the user equipment;
The screen available work area of the user equipment is wide and high;
The screen resolution of the user equipment.
16. webpage equipment according to claim 9 or 10, wherein the page basic resources include following at least any ?:
The text resources of the accession page;
The css resources of the accession page;
The js resources of the accession page.
CN201210237158.1A 2012-07-09 2012-07-09 It is a kind of that the method and apparatus accessing webpage is provided for mobile terminal Active CN103546498B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210237158.1A CN103546498B (en) 2012-07-09 2012-07-09 It is a kind of that the method and apparatus accessing webpage is provided for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210237158.1A CN103546498B (en) 2012-07-09 2012-07-09 It is a kind of that the method and apparatus accessing webpage is provided for mobile terminal

Publications (2)

Publication Number Publication Date
CN103546498A CN103546498A (en) 2014-01-29
CN103546498B true CN103546498B (en) 2018-11-13

Family

ID=49969545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210237158.1A Active CN103546498B (en) 2012-07-09 2012-07-09 It is a kind of that the method and apparatus accessing webpage is provided for mobile terminal

Country Status (1)

Country Link
CN (1) CN103546498B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978176B (en) * 2014-04-10 2019-03-08 腾讯科技(北京)有限公司 Application programming interfaces call method, device and computer readable storage medium
CN104270443B (en) * 2014-09-29 2017-12-12 北京掌中经纬技术有限公司 A kind of cloud computing system and method for being capable of dynamic analysis Web applications
CN106575303B (en) * 2015-04-20 2021-09-24 阿里巴巴(中国)有限公司 Method and device for displaying webpage
CN105740407A (en) * 2016-01-28 2016-07-06 深圳市佳创视讯技术股份有限公司 Tree structure generation method and system
CN106021431A (en) * 2016-05-12 2016-10-12 腾讯科技(深圳)有限公司 Page display method and device
CN107402938B (en) * 2016-05-22 2021-07-13 阿里巴巴(中国)有限公司 Page display method and device and client equipment
CN108170497A (en) * 2016-12-05 2018-06-15 阿里巴巴集团控股有限公司 A kind of method and device of page rendering
US20180217964A1 (en) * 2017-02-02 2018-08-02 Futurewei Technologies, Inc. Content-aware energy savings for web browsing utilizing selective loading priority
CN107885799A (en) * 2017-10-30 2018-04-06 维沃移动通信有限公司 Info web display methods and device
CN109783753A (en) * 2018-12-14 2019-05-21 平安普惠企业管理有限公司 The tree-shaped drawing generating method of web site url, device, equipment and storage medium
CN110381118B (en) * 2019-06-19 2022-03-04 平安普惠企业管理有限公司 Page data transmission control method and related equipment
CN111026490B (en) * 2019-12-09 2023-04-11 北京小米移动软件有限公司 Page rendering method and device, electronic equipment and storage medium
CN111159603B (en) * 2019-12-30 2023-08-04 新方正控股发展有限责任公司 Page style loading method and page style loading device
CN112287256A (en) * 2020-09-21 2021-01-29 北京沃东天骏信息技术有限公司 Page display method, terminal device, cloud server, system and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860533A (en) * 2010-05-26 2010-10-13 卓望数码技术(深圳)有限公司 Data transmission method based on C/S architecture browser and server
CN102270206A (en) * 2010-06-03 2011-12-07 北京迅捷英翔网络科技有限公司 Method and device for capturing valid web page contents
CN102314486A (en) * 2011-08-04 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for browsing page

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860533A (en) * 2010-05-26 2010-10-13 卓望数码技术(深圳)有限公司 Data transmission method based on C/S architecture browser and server
CN102270206A (en) * 2010-06-03 2011-12-07 北京迅捷英翔网络科技有限公司 Method and device for capturing valid web page contents
CN102314486A (en) * 2011-08-04 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for browsing page

Also Published As

Publication number Publication date
CN103546498A (en) 2014-01-29

Similar Documents

Publication Publication Date Title
CN103546498B (en) It is a kind of that the method and apparatus accessing webpage is provided for mobile terminal
JP6091579B2 (en) Method and apparatus for handling nested fragment caching of web pages
JP5443513B2 (en) Method and system for handling cookies across domains
KR20140012664A (en) Method for rearranging web page
CN102737067B (en) Method and system for outputting webpage
CN103383687B (en) A kind of page processing method and device
CN103678325B (en) It is a kind of for providing the method and apparatus of browsing pages corresponding with initial page
US20140075287A1 (en) Methods for facilitating web page image hotspots and devices thereof
CN103336794B (en) For providing the corresponding method and apparatus that information is presented in target pages
US8930807B2 (en) Web content management based on timeliness metadata
WO2014108038A1 (en) Frequently-used website generation client terminal, server, system and method
CN110020273B (en) Method, device and system for generating thermodynamic diagram
CN103577544B (en) A kind of method and device for providing information to be sent
WO2011140784A1 (en) Method for screening mobile terminal from accessing wireless network information, mobile terminal and system thereof
US20140101249A1 (en) Systems and Methods for Managing and Presenting Information
Kwangsawad et al. The performance evaluation of a website using automated evaluation tools
KR20100075786A (en) A system for collecting other websites webpage's region on a website and method for the same
CN108062352B (en) Webpage page caching processing method, mobile terminal equipment and medium product
CN108108381B (en) Page monitoring method and device
CN107704464A (en) Parse the method and device in the path of static resource
CN107169026B (en) Website page display method and device
CN108108458A (en) The method and device of resources of human talents data is shared based on domain name
KR20150059206A (en) Advertising Method Using Lock Screen of Mobile Device, Mobile Device and Program Distributing Server therefor
KR100793428B1 (en) Method and system for providing wireless service page
CN104809113B (en) The display methods and device of webpage information

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