Search Images Maps Play YouTube News Gmail Drive More »
Sign in
Screen reader users: click this link for accessible mode. Accessible mode has the same essential features but works better with your reader.

Patents

  1. Advanced Patent Search
Publication numberCN103116609 B
Publication typeGrant
Application numberCN 201310020113
Publication date25 Nov 2015
Filing date18 Jan 2013
Priority date18 Jan 2013
Also published asCN103116609A
Publication number201310020113.3, CN 103116609 B, CN 103116609B, CN 201310020113, CN-B-103116609, CN103116609 B, CN103116609B, CN201310020113, CN201310020113.3
Inventors文哲
Applicant北京奇虎科技有限公司, 奇智软件(北京)有限公司
Export CitationBiBTeX, EndNote, RefMan
External Links: SIPO, Espacenet
实现浏览器中页面加载的服务器、客户端、系统和方法 Achieve server, client, systems and methods browser page loads translated from Chinese
CN 103116609 B
Abstract  translated from Chinese
本发明涉及网络数据通信领域,公开了实现浏览器中页面加载的服务器、客户端、系统和方法,该服务器包括:脚本注入模块,适于在接收到客户端发送的加载原始页面的请求后,向发送给客户端的原始页面中注入正文加载脚本;正文提取模块,适于从客户端当前浏览的页面中解析出用于表示页面间正文的相互关系的关键字,提取关键字对应的链接,从网站下载所述链接对应的页面,提取下载的页面中正文,将提取的正文存储到存储模块中;存储模块,适于存储提取的正文;通信模块,适于接收客户端发送的加载关键字对应的链接的页面的请求,将存储模块中存储的该链接对应的正文发送给客户端。 The present invention relates to the field of data communication network is disclosed for server browser page loads, the client, the system and method, the server include: script injection module adapted after receiving the request sent by the client to load the original page, to send to the client's original page is loaded script injection text; text extraction module adapted from the client to resolve the current page in the keyword is used to represent the relationship between the body of the page, extracts the corresponding keyword links, from Download the linked sites corresponding page, extract the downloaded page text, the extracted text is stored in the memory module; a storage module adapted to store the extracted text; a communication module, adapted to receive correspondence sent by the client load keywords The link requested pages, stored in the memory module corresponding to the link text is sent to the client. 本发明能够解决在客户端造成无用的下载流量,浪费网络流量的技术问题。 The present invention can solve the technical problems caused by the client download traffic useless, a waste of network traffic.
Claims(21)  translated from Chinese
1.一种实现浏览器中页面加载的服务器,该服务器包括: 脚本注入模块,适于在接收到客户端发送的加载原始页面的请求后,向发送给客户端的原始页面中注入正文加载脚本,所述原始页面为初始访问网站时所浏览的页面; 正文提取模块,适于从客户端当前浏览的页面中解析出用于表示页面间正文的相互关系的关键字,提取关键字对应的链接,从网站下载所述链接对应的页面,提取下载的页面中正文,将提取的正文存储到存储模块中; 存储模块,适于存储提取的正文; 通信模块,适于接收客户端发送的加载关键字对应的链接的页面的请求,将存储模块中存储的该链接对应的正文发送给客户端,使客户端通过正文加载脚本将该正文添加到当前浏览的页面的正文中。 An implement server browser page loads, the server comprising: script injection module adapted after receiving the request sent by the client to load the original page to send to the client the original page text load script injection, The original page is the initial visit the web site pages viewed; text extraction module is adapted to parse out keyword is used to represent the relationship between the body of the page from a client in the current page, extracting keywords corresponding link, from downloading the corresponding page linked site, extract the downloaded page text, the extracted text is stored in the memory module; a storage module adapted to store the extracted text; a communication module adapted to receive a load keywords sent by the client request the corresponding link pages, stored in the memory module corresponding to the link text is sent to the client, so the client through the body of the text to load the script to add to the body of the current browser page.
2.根据权利要求1所述的服务器,其中, 所述脚本注入模块,还适于向发送给客户端的原始页面中注入内存释放脚本,以使客户端在接收到加载关键字对应的链接的指令后,判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。 The server of claim 1, wherein the script injection module is further adapted to send to the client's original page memory release script injection, so that the client receives the load corresponding to the keywords in the link of instruction After the judge before the current page if memory exceeds a preset threshold percentage, if exceeded, the release of the body of the page in the browser share memory.
3.根据权利要求1或2所述的服务器,其中, 所述脚本注入模块,还适于向发送给客户端的原始页面中注入阅读标签功能脚本和/或页面选择功能脚本,以使客户端在当前浏览的页面中添加阅读标签功能键和/或选择页面功能键。 3. The server 1 or 2 wherein said script injection module is further adapted to send to the client's original page injected read labels feature scripts and / or page selection function script to enable the client add the current page to read the label function keys and / or function keys to select the page.
4.根据权利要求1或2所述的服务器,其中, 所述正文提取模块,进一步适于根据页面所属网站中页面结构从下载的页面中提取正文。 4. The server according to claim 1 or claim 2, wherein said text extraction module, and further adapted to extract the text from the download page according to the page belongs site page structure.
5.根据权利要求1或2所述的服务器,其中, 所述正文提取模块,进一步适于对提取的正文进行压缩处理,将生成的压缩包存储到存储模块中。 5. The server according to claim 1 or claim 2, wherein said text extraction module, and further adapted to compress the extracted text processing, the generated compressed packet stored in the storage module.
6.根据权利要求1或2所述的服务器,其中, 所述服务器还包括: 页面预加载模块,适于提取客户端当前浏览的页面中非关键字对应的链接,从网站下载所述链接对应的页面,对下载的页面进行压缩处理,生成链接对应的页面压缩包,将该页面压缩包存储到存储模块,所述非关键字对应的链接为页面中除关键字对应的链接之外的链接; 所述存储模块,还适于存储页面压缩包; 所述通信模块,还适于接收客户端发送的加载当前浏览的页面中非关键字对应的链接的请求,将存储模块中该请求中链接对应的页面压缩包发送给客户端。 6. The server of claim 1 or claim 2, wherein the server further comprising: a page pre-loaded module, adapted to extract the client current page Central African keywords corresponding links, the links corresponding to the download site pages, download pages of the compression process, generates the corresponding page links archive, the archive page to the storage module, the non-keyword corresponding link for the page links in addition to keywords corresponding link ; the memory module, also adapted to store compressed pages; the communication module is further adapted to load the requested current page Central African keywords corresponding link receiving client sent the request to the storage module links corresponding compressed page sent to the client.
7.根据权利要求6所述的服务器,其中, 所述服务器还包括: 存储更新模块,适于以发送给客户端的页面压缩包中页面为客户端当前浏览的页面,将该当前浏览的页面所包含的非关键字对应的链接与已存储的页面压缩包对应的链接比较,根据比较结果更新存储的页面压缩包。 7. The server according to claim 6, wherein the server further comprising: a storage update module, adapted to send to the client's page compression package page for the client current page, the current page of the non-keyword corresponding page links stored compressed package that contains the corresponding links to compare, archive storage based on the comparison results Update page.
8.根据权利要求7所述的服务器,其中, 所述存储更新模块,进一步适于对于没有被该当前浏览的页面所包含的链接,将该链接对应的页面压缩包从存储模块中删除;对于该当前浏览的页面中所包含的、且对应的页面压缩包没有被存储的非关键字对应的链接,从网站下载该链接对应的页面,对下载的页面进行压缩处理,生成该链接对应的页面压缩包,将该页面压缩包存储到存储模块中。 8. The server according to claim 7, wherein the storage update module, the link has not been further adapted for the current page that contains the link to the corresponding page compression package deleted from the memory module; for and that the corresponding page has not been stored compressed non-keyword corresponding link to download from the Web site of the link corresponding page of the current page contained on the download page compression process to generate the corresponding page link archive, the archive page stored in the storage module.
9.一种实现浏览器中页面加载的客户端,该客户端包括: 请求发送模块,适于在接收到加载原始网页的指令后,向服务器发送加载原始页面的请求,所述原始页面为初始访问网站时所浏览的页面,以及在接收到加载关键字对应的链接指令后,向服务器发送加载关键字对应的链接的页面的请求; 页面加载模块,适于接收服务器发送的注入有正文加载脚本的原始页面,加载该原始页面,以及接收服务器发送的关键字对应的链接的页面中正文,通过正文加载脚本将该正文添加到当前浏览的页面的正文中。 A realization of the browser page loading client, the client comprising: a request sending module, adapted to load the original page after receiving an instruction to the server to send a request to load the original page, the original page is the initial When accessing the web site pages viewed, and the request after receiving a keyword corresponding to the load-link instruction, sent to the server load keywords corresponding linked page; the page load module, adapted to receive the injection there is text sent by the server to load the script The original page, load the original page, and keyword receiving server sends the corresponding links in the body of the page, the script is loaded by the body of the text added to the text of the current page.
10.根据权利要求9所述的客户端,其中, 所述原始页面中还注入有内存释放脚本; 所述页面加载模块,还适于在接收到加载关键字对应的链接的页面的指令后,通过内存释放脚本判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。 10. The client of claim 9, wherein the original page also has a memory release script injection; the page load module is further adapted to receive the load after instruction corresponding keywords of the linked pages, Memory release script by judging the current page memory exceeds a preset threshold percentage, if exceeded, before the release of the page to browse text occupied memory.
11.根据权利要求9或10所述的客户端,其中, 所述原始页面中还注入有阅读标签功能脚本和/或页面选择功能脚本, 所述页面加载模块,还适于通过阅读标签功能脚本和/或页面选择功能脚本,在当前浏览的页面中添加阅读标签功能键和/或选择页面功能键。 According to claim 9 or 10, wherein the client, wherein the original page also features a script injection have read the label and / or page selection function script, the page load module is further adapted script by reading the label function and / or the page selection function script, the current page is added to read the label function keys and / or function keys to select the page.
12.根据权利要求9或10所述的客户端,其中, 所述客户端还包括:解压模块,适于对页面压缩包进行解压缩; 所述请求发送模块,还适于在接收到加载非关键字对应的链接的指令后,向服务器发送加载当前浏览的页面中非关键字对应的链接的页面的请求;所述非关键字对应的链接为页面中除关键字对应的链接之外的链接; 所述页面加载模块,还适于接收服务器发送的指令中链接对应的页面压缩包,指示解压模块将该页面压缩包解压缩,加载该页面压缩包中页面。 According to claim 9 or 10, wherein the client, wherein the client further includes: extracting modules, adapted to decompress the archive page; the request sending module further adapted to receive the load of non- After the keyword corresponding link instruction, sends a request to the server load current page Central African keywords corresponding linked page; said non-keyword corresponding links to pages in addition to keywords corresponding link link ; the page load module is further adapted to receive instruction in the link sent by the server archive corresponding page, the page-extracting modules indicates decompress compressed, load the page compression package page.
13.一种实现浏览器中页面加载的系统,该系统包括: 如权利要求1至8任一所述的服务器,以及如权利要求9至12任一所述的客户端。 13. A method for system browser page loads, the system comprising: a server 1-8 as claimed in any one of claims, as well as in any of claims 9-12 one of the clients.
14.一种实现浏览器中页面加载的方法,该方法包括: 在接收到客户端发送的加载原始页面的请求后,向发送给客户端的原始页面中注入正文加载脚本,所述原始页面为初始访问网站时所浏览的页面; 从客户端当前浏览的页面中解析出用于表示页面间正文的相互关系的关键字,提取关键字对应的链接,从网站下载所述链接对应的页面,提取下载的页面中正文,存储提取的正文; 当接收到客户端发送的加载关键字对应的链接的请求后,将提取的正文发送给客户端,使客户端通过正文加载脚本将该正文添加到当前浏览的页面的正文中。 14. A method to realize the browser page loads, the method comprising: after receiving the request sent by the client to load the original page, and sends the page to the client's original script was injected into the body to load the original page for the initial When accessing the web site pages viewed; from the client to resolve the current page in the relationship between the keywords used to represent the body of the page, extracting keywords corresponding link, the link to the download site from the corresponding page, extract download The page text, storing the extracted text; Upon receipt of the load corresponding to the keywords the client sends a request link, the text will be extracted to send to the client, so the client through the body of the text to load the script to add to the current browser The page's text.
15.根据权利要求14所述的方法,其中, 所述方法还包括: 向发送给客户端的原始页面中注入内存释放脚本,以使客户端在接收到加载关键字对应的链接的指令后,判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。 15. The method according to claim 14, wherein the method further comprises: after the client sends to the original page in memory release script injection, so that the client receives a link to load a keyword corresponding instructions judgment current page memory exceeds a preset threshold percentage, if exceeded, before the release of the page to browse text occupied memory.
16.根据权利要求14或15所述的方法,其中, 所述方法还包括: 向发送给客户端的原始页面中注入阅读标签功能脚本和/或页面选择功能脚本,以使客户端在当前浏览的页面中添加阅读标签功能键和/或选择页面功能键。 14 or 16. The method according to claim 15, wherein the method further comprising: sending to the client to the original page to read labels feature script injection and / or page select the script to make the client browser in the current Adding pages to read the label function keys and / or function keys to select the page.
17.根据权利要求14或15所述的方法,其中, 所述提取下载的页面中正文进一步包括: 根据页面所属网站中页面结构从下载的页面中提取正文。 17. The method according to claim 14 or claim 15, wherein said extracting download page text further comprises: extracting the text from the download page according to the page belongs site page structure.
18.根据权利要求14或15所述的方法,其中, 所述存储提取的正文进一步包括: 对提取的正文进行压缩处理,存储生成的压缩包。 14 or body 18. The method according to claim 15, wherein said storing the extracted further comprising: compressing the extracted text processing, store the generated compressed.
19.根据权利要求14或15所述的方法,其中, 所述方法还包括: 提取客户端当前浏览的页面中非关键字对应的链接,从网站下载所述链接对应的页面,对下载的页面进行压缩处理,生成链接对应的页面压缩包,存储该页面压缩包,所述非关键字对应的链接为除关键字对应的链接之外的链接; 当接收到客户端发送的加载当前浏览的页面中非关键字对应的链接的请求后,将该请求中链接对应的页面压缩包发送给客户端。 14 or 19. The method according to claim 15, wherein the method further comprises: extracting the client current page Central African keywords corresponding link, the link to the download site from the corresponding page on the download page compression process to generate the corresponding page links archive, store the page compression package, the non-keyword corresponding links as links except for keywords corresponding links; when receiving the load current browser client sends the page After the Central African keywords corresponding request a link, the link to the corresponding page request compressed package sent to the client.
20.根据权利要求19所述的方法,其中, 所述方法还包括: 以发送给客户端的页面压缩包中页面为客户端当前浏览的页面,将该当前浏览的页面所包含的非关键字对应的链接与已存储的页面压缩包对应的链接比较,根据比较结果更新存储的页面压缩包。 20. The method according to claim 19, wherein the method further comprising: sending to the client's page compression package page for the client current page, the current page contains a corresponding non-keyword links pages already stored compressed corresponding comparative links, archive storage based on the comparison results Update page.
21.根据权利要求20所述的方法,其中, 所述根据比较结果更新存储的页面压缩包进一步包括: 对于没有被该当前浏览的页面所包含的链接,将该链接对应的页面压缩包删除;对于该当前浏览的页面中所包含的、且对应的页面压缩包没有被存储的非关键字对应的链接,从网站下载该链接对应的页面,对下载的页面进行压缩处理,生成该链接对应的页面压缩包,存储该页面压缩包。 21. The method according to claim 20, wherein the comparison result of the page update stored compressed package further comprises: for links that have not been included in the current page, and the link to the corresponding page compression package deleted; For the current page contained, and the corresponding page tarball no non-key corresponding link is stored, the download link to the corresponding page from the website, to download the page compression process to generate the corresponding link page archive, store the page archive.
Description  translated from Chinese
实现浏览器中页面加载的服务器、客户端、系统和方法 Achieve server, client, systems and methods browser page loads

技术领域 TECHNICAL FIELD

[0001] 本发明涉及网络数据通信领域,具体涉及一种实现浏览器中页面加载的服务器、客户端、系统和方法。 [0001] The present invention relates to the field of data communication network, in particular to a server browser page loads, clients, systems and methods.

背景技术 Background technique

[0002] 现有技术中,根据浏览器的浏览页面中链接,对用户之后的浏览行为进行预测,对于页面中所有可能在之后被点击的链接都进行预先下载,通过将这些链接对应的页面预先下载的方式提升浏览器中页面的加载速度。 [0002] The prior art, depending on the browser page in a browser link on browsing behavior after the user to predict all possible for page after being clicked links are pre-downloaded through these links corresponding page in advance Download way to enhance the loading speed of the browser page. 但是,页面中多数链接在之后的浏览中没有被点击,因此采用现有技术虽然可以加快浏览页面的速度,但是,在客户端产生大量无用的下载流量,浪费了客户端的网络流量。 However, most of the page link is clicked after no browser, so the use of existing technology, while the speed can speed up the browsing page, however, the client download a large amount of useless traffic, wasted network traffic of the client.

发明内容 SUMMARY OF THE INVENTION

[0003] 鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的实现浏览器中页面加载的服务器、客户端、系统和方法。 [0003] In view of the above problems, the present invention proposes to provide a means of overcoming these problems, or at least partially solve the server, client, systems and methods to achieve the above-mentioned problems in the browser page loads.

[0004] 依据本发明的一个方面,提供了一种实现浏览器中页面加载的服务器,该服务器包括: [0004] According to one aspect of the invention, there is provided a server for realizing the browser page loads, the server include:

[0005] 脚本注入模块,适于在接收到客户端发送的加载原始页面的请求后,向发送给客户端的原始页面中注入正文加载脚本,所述原始页面为初始访问网站时所浏览的页面; [0005] The script injection module adapted after receiving the request sent by the client to load the original page, and sends the page to the client's original script was injected into the body to load the original page is the initial access site pages viewed;

[0006] 正文提取模块,适于从客户端当前浏览的页面中解析出用于表示页面间正文的相互关系的关键字,提取关键字对应的链接,从网站下载所述链接对应的页面,提取下载的页面中正文,将提取的正文存储到存储模块中; [0006] The text extraction module, adapted from the client to resolve the current page in the relationship between the keywords used to represent the body of the page, extracting keywords corresponding link, the link to the download site from the corresponding page, extract download text pages, the extracted text is stored in the storage module;

[0007] 存储模块,适于存储提取的正文; [0007] storage module adapted to store the extracted text;

[0008] 通信模块,适于接收客户端发送的加载关键字对应的链接的页面的请求,将存储模块中存储的该链接对应的正文发送给客户端,使客户端通过正文加载脚本将该正文添加到当前浏览的页面的正文中。 Requests [0008] The communication module is adapted to receive the client send the link for loading keyword pages, stored in the memory module corresponding to the link text is sent to the client, so the client through the body of the text of the script is loaded added to the body of the current page.

[0009] 可选地,所述脚本注入模块,还适于向发送给客户端的原始页面中注入内存释放脚本,以使客户端在接收到加载关键字对应的链接的指令后,判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。 [0009] Alternatively, the script injection module is further adapted to send to the client's original page memory release script injection, so that the client after receiving the key corresponding to the load-link instruction judgment currently browsing page memory exceeds a preset threshold percentage, if exceeded, before the release of the page to browse text occupied memory.

[0010] 可选地,所述脚本注入模块,还适于向发送给客户端的原始页面中注入阅读标签功能脚本和/或页面选择功能脚本,以使客户端在当前浏览的页面中添加阅读标签功能键和/或选择页面功能键。 [0010] Alternatively, the script injection module is further adapted to send to the client's original page injected read labels feature scripts and / or page selection function script to enable the client to read the label to add a page in the current browser function keys and / or function keys to select the page.

[0011] 可选地,所述正文提取模块,进一步适于根据页面所属网站中页面结构从下载的页面中提取正文。 [0011] Alternatively, the text extraction module is further adapted to extract text from the download page in the page according to the page to your site structure.

[0012] 可选地,所述正文提取模块,进一步适于对提取的正文进行压缩处理,将生成的压缩包存储到存储模块中。 [0012] Alternatively, the text extraction module is further adapted to extract the body of the compression process, the resulting archive is stored in the memory module.

[0013] 可选地,所述服务器还包括: [0013] Alternatively, said server further comprising:

[0014] 页面预加载模块,适于提取客户端当前浏览的页面中非关键字对应的链接,从网站下载所述链接对应的页面,对下载的页面进行压缩处理,生成链接对应的页面压缩包,将该页面压缩包存储到存储模块,所述非关键字对应的链接为页面中除关键字对应的链接之外的链接; [0014] page preloading module, adapted to extract the client current page Central African keywords corresponding link, the link to the download site from the corresponding page on the download page compression process to generate the corresponding page links archive , the page archive to the storage module, the non-keyword corresponding link for the page links in addition to keywords corresponding links;

[0015] 所述存储模块,还适于存储页面压缩包; [0015] The storage module is further adapted to store compressed pages;

[0016] 所述通信模块,还适于接收客户端发送的加载当前浏览的页面中非关键字对应的链接的请求,将存储模块中该请求中链接对应的页面压缩包发送给客户端。 [0016] The communications module is further adapted to load sent by the client to receive the current page Central African keywords corresponding link request, the request will be stored in the module corresponds to the link page compression package sent to the client.

[0017] 可选地,所述服务器还包括: [0017] Alternatively, said server further comprising:

[0018] 存储更新模块,适于以发送给客户端的页面压缩包中页面为客户端当前浏览的页面,将该当前浏览的页面所包含的非关键字对应的链接与已存储的页面压缩包对应的链接比较,根据比较结果更新存储的页面压缩包。 [0018] The memory update module, adapted to send to the client's page compression package page for the client current page, the page links to non-keyword corresponding stored the current page contains the corresponding archive links according to the comparison result of updating the stored pages archive.

[0019] 可选地,所述存储更新模块,进一步适于对于没有被该当前浏览的页面所包含的链接,将该链接对应的页面压缩包从存储模块中删除;对于该当前浏览的页面中所包含的、且对应的页面压缩包没有被存储的非关键字对应的链接,从网站下载该链接对应的页面,对下载的页面进行压缩处理,生成该链接对应的页面压缩包,将该页面压缩包存储到存储模块中。 [0019] Alternatively, the memory update module, the link has not been further adapted for the current page that contains the link to the corresponding page compression package deleted from the memory module; for the current page in it contains, and the corresponding page compression non-keyword corresponding link packet is not stored on the link to download the corresponding page from the website, to download the page compression process to generate the link corresponding page archive, this page archive stored in the storage module.

[0020] 根据本发明的一个方面,提供了一种实现浏览器中页面加载的客户端,该客户端包括: [0020] In accordance with one aspect of the invention, there is provided a realization of the browser page loading client, the client include:

[0021] 请求发送模块,适于在接收到加载原始网页的指令后,向服务器发送加载原始页面的请求,所述原始页面为初始访问网站时所浏览的页面,以及在接收到加载关键字对应的链接指令后,向服务器发送加载关键字对应的链接的页面的请求; [0021] The request sending module, adapted to load the original page after receiving an instruction to the server to send a request to load the original page, the original page is the initial visit the web site pages viewed, and upon receipt of the corresponding load keywords request link directive, sent to the server load corresponding keywords of the linked pages;

[0022] 页面加载模块,适于接收服务器发送的注入有正文加载脚本的原始页面,加载该原始页面,以及接收服务器发送的关键字对应的链接的页面中正文,通过正文加载脚本将该正文添加到当前浏览的页面的正文中。 [0022] page load module adapted to receive the injection there is text sent by the server to load the script of the original page, load the original page, and keywords corresponding receiving server sends a link in the body of the page, the text of the script by adding text loading and to the text of the current page.

[0023] 可选地,所述原始页面中还注入有内存释放脚本; [0023] Alternatively, the original page also has a memory release script injection;

[0024] 所述页面加载模块,还适于在接收到加载关键字对应的链接的页面的指令后,通过内存释放脚本判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。 [0024] The page load module is further adapted after receiving instructions to load the keywords corresponding linked page through memory release script to determine whether the current page share memory exceeds a preset threshold, if exceeded, Before the release of the text of the page in the browser share memory.

[0025] 可选地,所述原始页面中还注入有阅读标签功能脚本和/或页面选择功能脚本, [0025] Alternatively, the original page also features a script injection have read the label and / or page selection function script,

[0026] 所述页面加载模块,还适于通过阅读标签功能脚本和/或页面选择功能脚本,在当前浏览的页面中添加阅读标签功能键和/或选择页面功能键。 [0026] The page load module is further adapted to select a script by reading the label function scripts and / or pages, add read the label function keys and / or function keys to select the page in the current browser page.

[0027] 可选地,所述客户端还包括:解压模块,适于对页面压缩包进行解压缩; [0027] Alternatively, the client also includes: extracting modules, adapted to decompress the archive page;

[0028] 所述请求发送模块,还适于在接收到加载非关键字对应的链接的指令后,向服务器发送加载当前浏览的页面中非关键字对应的链接的页面的请求;所述非关键字对应的链接为页面中除关键字对应的链接之外的链接; [0028] The request sending module is further adapted after receiving the instruction to load non-keyword corresponding link, send a request to load the current page Central African keywords corresponding linked page to the server; the non-critical word corresponding link for the page links in addition to keywords corresponding links;

[0029] 所述页面加载模块,还适于接收服务器发送的指令中链接对应的页面压缩包,指示解压模块将该页面压缩包解压缩,加载该页面压缩包中页面。 [0029] The page load module is further adapted to receive commands sent by the server in the corresponding pages link compressed, indicating decompression module decompress compressed the page, load the page compression package page.

[0030] 根据本发明的另一个方面,提供了一种实现浏览器中页面加载的系统,该系统包括所述的服务器,以及所述的客户端。 [0030] In accordance with another aspect of the invention, there is provided a realization of the browser page loading system, which includes the server, and the client said.

[0031] 根据本发明的另一个方面,提供了一种实现浏览器中页面加载的方法,该方法包括: [0031] In accordance with another aspect of the present invention, there is provided a method for realizing the browser page loads, the method comprising:

[0032] 在接收到客户端发送的加载原始页面的请求后,向发送给客户端的原始页面中注入正文加载脚本,所述原始页面为初始访问网站时所浏览的页面; [0032] Upon receiving the request sent by the client to load the original page, and sends the page to the client's original script was injected into the body to load the original page is the initial access site pages viewed;

[0033] 从客户端当前浏览的页面中解析出用于表示页面间正文的相互关系的关键字,提取关键字对应的链接,从网站下载所述链接对应的页面,提取下载的页面中正文,存储提取的正文; [0033] from the client to resolve the current page in the relationship between the keywords used to represent the body of the page, extracting keywords corresponding link to download from the website of the link the corresponding page, extract the downloaded page text, storing text extracted;

[0034]当接收到客户端发送的加载关键字对应的链接的请求后,将提取的正文发送给客户端,使客户端通过正文加载脚本将该正文添加到当前浏览的页面的正文中。 Text [0034] Upon receipt of the load corresponding to the keywords the client sends a request link will extract sent to the client, so the client through the body of the script is loaded into the body of the text to add the current page.

[0035] 可选地,所述方法还包括: [0035] Optionally, the method further comprising:

[0036] 向发送给客户端的原始页面中注入内存释放脚本,以使客户端在接收到加载关键字对应的链接的指令后,判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。 [0036] to send to the client's original page memory release script injection, so that the client after receiving the key corresponding to the load-linked instruction determines whether the current page share memory exceeds a preset threshold, if it exceeds , then release the text of the page before the browser share memory.

[0037] 可选地,所述方法还包括: [0037] Optionally, the method further comprising:

[0038] 向发送给客户端的原始页面中注入阅读标签功能脚本和/或页面选择功能脚本,以使客户端在当前浏览的页面中添加阅读标签功能键和/或选择页面功能键。 [0038] to send to the client's original page injected read labels feature scripts and / or page selection function script to enable the client to read the label to add function keys and / or function keys to select the page in the current browser page.

[0039] 可选地,所述提取下载的页面中正文进一步包括: [0039] Alternatively, the extracted download page text further comprises:

[0040] 根据页面所属网站中页面结构从下载的页面中提取正文。 [0040] extract text from the download page in the page according to the page to your site structure.

[0041] 可选地,所述存储提取的正文进一步包括: Text [0041] Optionally, the storing the extracted further comprising:

[0042] 对提取的正文进行压缩处理,存储生成的压缩包。 [0042] The text extracted from the compression process, store the generated archive.

[0043] 可选地,所述方法还包括: [0043] Optionally, the method further comprising:

[0044] 提取客户端当前浏览的页面中非关键字对应的链接,从网站下载所述链接对应的页面,对下载的页面进行压缩处理,生成链接对应的页面压缩包,存储该页面压缩包,所述非关键字对应的链接为除关键字对应的链接之外的链接; [0044] extract the client current page Central African keywords corresponding link to download from the website of the link the corresponding page on the download page compression process to generate the corresponding page links archive, store the page compression package, The non-keyword corresponding links as links except for keywords corresponding links;

[0045]当接收到客户端发送的加载当前浏览的页面中非关键字对应的链接的请求后,将该请求中链接对应的页面压缩包发送给客户端。 [0045] Upon receipt of the load current page links to Central African keywords corresponding client sends a request, the link to the corresponding page request is sent to the client archive.

[0046] 可选地,所述方法还包括: [0046] Optionally, the method further comprising:

[0047] 以发送给客户端的页面压缩包中页面为客户端当前浏览的页面,将该当前浏览的页面所包含的非关键字对应的链接与已存储的页面压缩包对应的链接比较,根据比较结果更新存储的页面压缩包。 [0047] compare link to send to the client's page compression package page for the client current page, a link corresponding to the non-keyword current page contains pages already stored corresponding archive, based on a comparison The results are stored in the page update archive.

[0048] 可选地,所述根据比较结果更新存储的页面压缩包进一步包括: [0048] Alternatively, the result of the comparison page update stored compressed package further comprises:

[0049] 对于没有被该当前浏览的页面所包含的链接,将该链接对应的页面压缩包删除; [0049] For a link that has not been included in the current page, and the link to the corresponding page compression package deleted;

[0050] 对于该当前浏览的页面中所包含的、且对应的页面压缩包没有被存储的非关键字对应的链接,从网站下载该链接对应的页面,对下载的页面进行压缩处理,生成该链接对应的页面压缩包,存储该页面压缩包。 [0050] For the current page are included, and the non-keyword corresponding link corresponding to the page is not stored in the archive, downloaded from the Web site that links to the corresponding page on the download page compression processing to generate the link to the corresponding page archive, store the page archive.

[0051] 根据本发明的技术方案,在接收到客户端发送的加载原始页面的请求后,向发送给客户端的原始页面中注入正文加载脚本,从客户端当前浏览的页面中解析出用于表示页面间正文的相互关系的关键字,提取关键字对应的链接,从网站下载所述链接对应的页面,提取下载的页面中正文,存储提取的正文;当接收到客户端发送的加载关键字对应的链接的请求后,将提取的正文发送给客户端,使客户端通过正文加载脚本将该正文添加到当前浏览的页面的正文中。 [0051] According to the present invention, upon receiving a request sent by the client to load the original page to be sent to the client's original page is loaded inject script text, from the client to parse the current page is used to represent a the relationship between the body of the page keywords, and extracts keywords corresponding link to the download site from the link corresponding to the page, the text extraction download page text, storing extracted; when loading the keyword receives correspondence sent by the client After requesting a link, the extracted text is sent to the client, so the client through the body of the script is loaded into the body of the text to add the current page.

[0052] 采用本发明中技术方案,对于关键字连接对应的页面,仅提取其中正文,将正文下发给客户端,通过在原始页面中注入正文加载脚本的方式,使客户端将该正文添加到当前浏览的页面中。 [0052] The technical solution of the present invention, connection for keywords corresponding pages, extract only one text, the text to the client, through the injection of text in the original script of the way the page is loaded, so that the client to add the text to the current browser page. 由于下发的正文已经预先提取,因此可以提高浏览页面的速度,同时下发内容仅为正文内容,减少了下发的数据量,减少客户端浏览网页所用网络流量。 Because the body has been previously issued by the extraction, it is possible to increase the speed of the browser page, but issued only for text content, reducing the amount of data issued to reduce the client used for web browsing network traffic. 由此解决了在客户端造成大量无用的下载流量,浪费网络流量的问题,取得了既能够加快客户端中浏览速度又能够节约客户端的网络流量的有益效果。 Thereby solving the problems caused by the client to download a lot of useless traffic, wasted network traffic, made both to accelerate the browsing speed and client network traffic can save the client's benefit.

[0053] 上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。 [0053] The above description is only an overview of technical solutions of the present invention, in order to more clearly understand the techniques of the present invention, and can be implemented in accordance with the prospectus, and in order to make the above-mentioned and other objects, features and advantages of the present invention can be more apparent from the following special cite specific embodiment of the present invention.

附图说明 Brief Description

[0054] 通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。 [0054] By reading the following detailed description of preferred embodiments below, a variety of other advantages and benefits to those of ordinary skill will become apparent. 附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。 The drawings are only used to illustrate a preferred embodiment of the purpose, and not as a limitation on the present invention. 而且在整个附图中,用相同的参考符号表示相同的部件。 And throughout the drawings, the same reference symbols denote the same parts. 在附图中: In the drawings:

[0055] 图1示出了根据本发明一个实施例的实现浏览器中页面加载的服务器的结构图; [0055] FIG. 1 shows a structure in accordance with one embodiment of the present invention shown in an example of realization of the browser page load server;

[0056] 图2示出了根据本发明一个实施例的客户端预浏览的三个相关网页的示意图; [0056] FIG. 2 shows a schematic view of the client an embodiment of the invention of the three pre-browse relevant pages;

[0057] 图3示出了根据本发明一个实施例的客户端中完成正文添加后的完整页面的示意图; [0057] FIG. 3 shows a schematic diagram of a complete page of text after adding client according to one embodiment of the present invention is completed;

[0058] 图4示出了根据本发明一个实施例的实现浏览器中页面加载的服务器的结构图; [0058] FIG. 4 shows a structure in accordance with one embodiment of the present invention shown in an example of realization of the browser page load server;

[0059] 图5示出了根据本发明一个实施例的客户端当前浏览的页面的示意图; [0059] FIG. 5 shows a schematic view of one embodiment of the invention the client end of the current page;

[0060] 图6示出了根据本发明一个实施例的实现浏览器中页面加载的服务器的结构图; [0060] FIG. 6 shows a block diagram according to one server implementations browser embodiment of the invention of the page is loaded;

[0061] 图7示出了根据本发明一个实施例的客户端链接点击后更新的页面的示意图; [0061] FIG. 7 shows a schematic view of an updated based on the client link in an embodiment of the invention after clicking the page;

[0062] 图8示出了根据本发明一个实施例的实现浏览器中页面加载的客户端的结构图; [0062] FIG. 8 shows a block diagram of an example of realization of the browser page loads in a client according to one embodiment of the present invention;

[0063] 图9示出了根据本发明一个实施例的实现浏览器中页面加载的客户端的结构图; [0063] FIG. 9 shows a block diagram of an example of realization of the browser page loads in a client according to one embodiment of the present invention;

[0064] 图10示出了根据本发明一个实施例的实现浏览器中页面加载的系统的结构图; [0064] FIG. 10 illustrates a block diagram of a browser, depending on the implementation embodiment of the invention in page load of the system;

[0065] 图11示出了根据本发明一个实施例的实现浏览器中页面加载的方法的流程图;以及 [0065] FIG. 11 illustrates a flowchart of a method to realize the browser an embodiment of the invention the page is loaded; and

[0066] 图12示出了根据本发明一个实施例的对于页面中非关键字对应的链接处理的方法的流程图。 [0066] FIG. 12 illustrates a method for the Central African keywords corresponding page link processing of the flow chart of one embodiment of the invention according to.

具体实施方式 detailed description

[0067] 下面将参照附图更详细地描述本公开的示例性实施例。 [0067] Referring to the drawings exemplary embodiments of the present disclosure is described in more detail. 虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。 Although the drawings show exemplary embodiments of the present disclosure, it should be understood that the present disclosure may be implemented embodiments and should not be set forth herein to limit in various forms. 相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。 Rather, these embodiments are capable of a more thorough understanding of the present disclosure, and be able to complete the scope of this disclosure to convey to those skilled in the art.

[0068] 参见图1,示出了根据本发明一个实施例的实现浏览器中页面加载的服务器的结构图。 [0068] Referring to Figure 1, there is shown a block diagram according to one server for browser embodiment of the invention in the page loads. 服务器100包括:脚本注入模块110、正文提取模块120、存储模块140和通信模块130。 Server 100 includes: script injection module 110, text extraction module 120, a storage module 140 and communications module 130.

[0069] 脚本注入模块110,适于在接收到客户端200发送的加载原始页面的请求后,向发送给客户端200的原始页面中注入正文加载脚本。 [0069] script injection module 110, adapted to the client after receiving the request 200 sent to load the original page to send to the client the original page 200 is injected into the body of the script is loaded. 所述原始页面为初始访问网站时所浏览的页面。 The original page is the initial visit the web site pages viewed.

[0070] 正文提取模块120,适于从客户端200当前浏览的页面中解析出用于表示页面间正文的相互关系的关键字,提取关键字对应的链接,从网站下载该链接对应的页面,提取下载的页面中正文,将提取的正文存储到存储模块140中。 [0070] text extraction module 120, adapted from the client 200 resolve the current page in the relationship between the keywords used to represent the body of the page, extracting keywords corresponding link to download the link the corresponding page from the website, extracting the text page download, the extracted text stored in the storage module 140.

[0071] 存储模块140,适于存储提取的正文。 [0071] Storage module 140, adapted to store the extracted text.

[0072] 通信模块130,适于接收客户端200发送的加载关键字对应的链接的页面的请求,将存储模块140中存储的该链接对应的正文发送给客户端200,使客户端200通过正文加载脚本将该正文添加到当前浏览的页面的正文中。 Requests [0072] The communication module 130, 200 adapted to receive the sending client loads keywords corresponding linked pages, the text will be stored in the storage module 140 of the link corresponding to the client 200, so that the client 200 through the body the script is loaded into the body of the text to add the current page.

[0073] 为进一步节约网络流量,正文提取模块120可以对提取的正文进行压缩处理,将生成的压缩包存储到存储模块140中。 [0073] In order to save the network traffic, text extraction module 120 can extract text compression processing, the resulting compressed package to the storage module 140. 通信模块130在接收到客户端200发送的加载关键字对应的链接的页面的请求后,将存储模块140中存储的该链接对应的正文的压缩包发送给客户端200。 Compression communication module 130 after receiving a request to load client 200 transmits a keyword corresponding to a page of links, the storage module 140 stores the link text corresponding packet sent to the client 200.

[0074] 图2示出了根据本发明一个实施例的客户端预浏览的三个相关网页的示意图。 [0074] FIG. 2 shows a schematic view of the client an embodiment of the invention of the three pre-browse relevant pages. 图2中三个网页为一篇文章的第I页、第2页、第3页,三页中正文内容合并为一篇完整的文章。 Figure 2 three pages to an article page I, Section 2, page 3, in a three-page text content combined into a complete article. 图2中方框所框部分为关键字。 Figure 2 block as part of the Keyword box.

[0075] 关键字用于表示页面间正文的相互关系,例如,关键字可以为“上一页”、“下一页”、“第X页”等。 [0075] keyword is used to indicate the relationship between the body of the page, for example, keywords can be "Previous", "Next", "page X" and so on. 图2中标出的关键字仅为示例性说明,本发明中关键字不限于此。 Keywords marked in FIG. 2 is only illustrative of the present invention is not limited thereto keywords.

[0076] 首先,脚本注入模块Il0在接收到客户端200发送的加载原始页面,即第I页,的请求后,向发送给客户端200的原始页面中注入正文加载脚本。 [0076] First, the script injection module Il0 after receiving 200 transmits the client load the original page, the page I, a request is sent to the client to page 200 of the original load script injection text. 客户端200可以通过该正文加载脚本将接收的正文添加到当前浏览的页面的正文中。 Client 200 can be loaded by the body of the script will be added to the body of the text received in the current browser page.

[0077] 正文提取模块120对于客户端200当前浏览的第I页中关键字“下一页”对应的链接,从网站中下载该链接对应的页面,提取该链接对应的页面中正文,即第2页中正文。 [0077] text extraction module 120 for the client 200 current browser page I keyword "Next" corresponds to the link to download from the Web page corresponding to the link, extract the corresponding page in the link text, namely 2 in the body. 具体地,正文提取模块120通过在第2页的html中查询,发现第三个<div>标签对〈divclass=”wl Text”〉…</div>中具有“Text”,则确定第三个<div>标签对中包含的为正文,提取该正文。 Specifically, the text extraction module 120 by querying the html page 2, we found the third <div> tag to <divclass = "wl Text"> ... </ div> has the "Text", it is determined that a third <div> tags included in the text, extract the text.

[0078] 当完成第I页浏览后,向下滑动页面,客户端200接收到加载当前浏览的页面中关键字“下一页”对应链接的页面的指令,发送加载关键字“下一页”对应的链接的页面的请求。 [0078] When I browse complete page after sliding down the page, the client 200 receives the instruction loads the current page in the keyword "Next" corresponds to the linked page, the transmission load keyword "Next" request the corresponding links page. 通信模块130接收请求,将链接“下一页”,即第2页,对应的页面中正文发送给客户端200。 The communication module 130 receives the request, the link "Next", that the first two, the corresponding page in the text sent to the client 200. 客户端200通过正文加载脚本将正文添加到当前浏览的页面的正文中。 Client 200 through the body of the text added to the load script text in the current page. 并且,客户端200接收到第2页正文后,自动将“下一页”对应链接中页码加1,使得“下一页”对应第3页。 Further, the client 200 after receiving the text, page 2, automatically the "next" link corresponding to the page number plus 1, the "Next" corresponds to page 3. 当完成第2页浏览后,向下滑动,客户端200从服务器100获得第3页中正文,通过正文加载脚本将第3页中正文添加到当前浏览的页面的正文中。 When the first two after browsing, slide down, the client 200 obtains the text on page 3 from the server 100, the script is loaded by the body of the text on page 3 added to the current page of text. 客户端200中完成正文添加后完整页面如图3所示。 Full Page as shown in Figure 3 after the client 200 complete text added.

[0079] 进一步,正文提取模块120根据页面所属网站中页面结构从下载的页面中提取正文。 [0079] Further, text extraction module 120 extracts the text from the download page in the page according to the page to your site structure. 以图2所示的三个页面为例,经分析可知,三个页面的html中都包含“Text”,并且三个页面中包括“上一页”或“下一页”。 In three pages shown in Figure 2 as an example, the analysis shows, html three pages are included in "Text", and three pages include the "Previous" or "Next." 由此可以确定,三个页面间具有关联,并且都包含有正文。 It can determine, among three pages with associated, and both contain text. 如上所述,正文提取模块120通过在页面的html中查询,发现第三个<div>标签对〈div class=” wlText” >...</div>中具有“Text”,则确定第三个<div>标签对中包含的为正文,提取该正文。 As described above, the text extraction module 120 by querying the html of the page, find the third <div> tags <div class = "wlText"> ... </ div> has the "Text", it is determined that a third a <div> tag contains the text to extract the text.

[0080] 进一步地,脚本注入模块110,还适于向发送给客户端200的原始页面中注入内存释放脚本,以使客户端200在接收到加载关键字对应的链接的指令后,判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。 [0080] Further, the script injection module 110 is further adapted to send to the client the original page 200 is injected into the memory release script to enable the client 200 after receiving key corresponding to the load-linked instruction, determine the current browsing the body of the page is occupied by the memory exceeds a preset threshold, if exceeded, before the release of the page to browse occupied memory.

[0081] 例如,内存释放脚本中内容为: [0081] For example, memory release script reads:

[0082] parent.removeChild (e); [0082] parent.removeChild (e);

[0083] e=null; [0083] e = null;

[0084] delete e [0084] delete e

[0085] 当完成第2页浏览后,向下滑动页面,客户端200接收到加载关键字“下一页”对应链接的页面的指令。 [0085] When the first two after browsing, slide down the page, the client 200 receives the instruction to load the keyword "Next" corresponds to the linked page. 客户端200判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放第I页和/或第2页中正文所占内存。 Client 200 determines the current page memory exceeds a preset threshold percentage, if exceeded, the release page I and / or in the body of the first two occupied memory.

[0086] 由上可见,通过向发送给客户端的原始页面中注入内存释放脚本,解决由于添加的正文过多导致内存溢出的问题,取得了防止内存溢出的有益效果。 [0086] As seen above, to be sent to the client by the original page script injection memory release, resolve to add too much because the body cause memory overflow problem, made a beneficial effect to prevent memory overflow.

[0087] 进一步地,脚本注入模块110,还适于向发送给客户端200的原始页面中注入阅读标签功能脚本和/或页面选择功能脚本,以使客户端200在当前浏览的页面中添加阅读标签功能键和/或选择页面功能键。 [0087] Further, the script injection module 110 is further adapted to send to the client the original page 200 to read labels feature script injection and / or page select the script, so that the client 200 Add read in the current page in Label the function keys and / or function keys to select the page.

[0088] 在此,通过向原始页面中注入功能脚本的方式,可以在客户端200的页面中添加功能键,由此达到扩展页面中功能的有益效果。 [0088] In this case, by injection function to the original page in the script the way, you can add the function key in the client 200 pages, so as to achieve beneficial effects extend page feature.

[0089] 参见图4,示出了根据本发明一个实施例的实现浏览器中页面加载的服务器的结构图。 [0089] Referring to Figure 4, there is shown a block diagram according to one server for browser embodiment of the invention in the page loads. 该实施例中服务器100除了包括脚本注入模块110、正文提取模块120、存储模块140和通信模块130外,还包括页面预加载模块150。 In this embodiment the server 100 in addition to including script injection module 110, text extraction module 120, a storage module 140 and communications module 130, but also includes a pre-load module 150 pages.

[0090] 页面预加载模块150,适于提取客户端200当前浏览的页面中非关键字对应的链接,从网站下载该链接对应的页面,对下载的页面进行压缩处理,生成链接对应的页面压缩包,将该页面压缩包存储到存储模块140。 [0090] page preloading module 150, adapted to extract the client 200 current page Central African keywords corresponding link to download the link the corresponding page from the website, to download the page compression process to generate link the corresponding page compression package, this page archive to the storage module 140.

[0091] 所述非关键字对应的链接为页面中除关键字对应的链接之外的链接; [0091] The non-keyword corresponding links to pages in addition to keywords corresponding link link;

[0092] 存储模块140,还适于存储页面压缩包。 [0092] storage module 140 is also adapted to store compressed pages.

[0093] 通信模块130,还适于接收客户端200发送的加载当前浏览的页面中非关键字对应的链接的请求,将存储模块140中该请求中链接对应的页面压缩包发送给客户端200。 [0093] The communication module 130, 200 is further adapted to transmit the load current browser requests a page-Africa link keywords corresponding receiving client, the storage module 140 in the corresponding page link request compressed packet to the client 200 .

[0094] 参见图5,示出了根据本发明一个实施例的客户端当前浏览的页面的示意图。 [0094] Referring to Figure 5, shows a schematic view of one embodiment of the invention the client end of the current page. 以图5中所示页面为例,对实施例进行举例说明。 In the page shown in Figure 5, for example, the embodiments illustrated.

[0095] 在该页面包含有链接:“登录”、“注册”、“首页”、“科技”、“IT,,、“互联网”、“国际”、 [0095] This page contains links to: "login", "register", "Home", "science and technology", "IT ,,," Internet "," international ",

“上一页”等。 "Previous" and so on. 其中,“上一页”为关键字对应的链接,其余的为非关键字对应的链接。 Among them, the "Previous" as the keyword corresponding links, the rest of the non-keyword corresponding link. 页面预加载模块150提取该页面中所包含非关键字对应的链接。 Page preloading module 150 extracts corresponding non-key contains a link to the page. 由于客户端200从服务器100获得浏览的页面,因此服务器100能够获知客户端200当前浏览的页面。 Because the client 200 pages is obtained from the server 100, the server 100 can know that the client 200 the current page. 页面预加载模块150从各个网站下载各个非关键字对应链接对应的页面。 Page preloaded downloaded from various sites link to each non-key corresponding to the corresponding page module 150. 页面预加载模块150对下载的页面进行压缩处理,生成链接对应的页面压缩包,将页面压缩包存储到存储模块140。 Page preloading module 150 pages downloaded the compression process, generates the corresponding page links archive, the archive page to the storage module 140. 存储模块140可以为服务器100的内存,其中存储链接对应的页面压缩包。 Storage module 140 for server 100 memory, which stores the corresponding page links archive. 当页面中某个非关键字对应的链接被点击后,客户端200就会发送加载该被点击的链接的页面的请求。 When the page in a non-key corresponding link is clicked, the client 200 will be sent requesting the link is clicked the page is loaded. 通信模块130接收客户端200发送的请求,并将该请求中链接对应的页面压缩包发送给客户端200。 The communication module 130 receives a client request 200, and the link to the corresponding page request compressed package sent to the client 200. 由此,客户端200获得点击的链接对应的页面压缩包,将该压缩包解压缩后在客户端200显示该页面。 Thus, the client clicks on the link corresponding to 200 pages compressed, the compression package decompress after the client 200 displays the page.

[0096] 本实施例中服务器可以为云服务器,该云服务器对各个客户端浏览的页面中链接对应的页面进行统一的下载和保存,并将该页面压缩成压缩包。 [0096] In this example the server for the cloud server, the cloud server for each client browser pages link to the corresponding page implementation unified download and save the compressed archive into the page. 当客户端中因为链接点击等原因,实际产生下载需要时,将对应的压缩包下发给客户端。 When a client because the link at other reasons, the actual generation download required, under the corresponding compression package to clients. 由此,能够向客户端提供非关键字对应的链接的压缩数据包,提高浏览非关键字对应的链接的页面的速度,取得了既能够加快客户端中浏览速度又能够节约客户端的网络流量,减少客户端的工作负担的有益效果。 This can provide to clients links to non-keyword corresponding compressed data packets, increase the speed browsing non-keyword corresponding linked pages, we have made both to accelerate the browsing speed and client network traffic can save the client, reduce the workload of the beneficial effects of the client.

[0097] 参见图6,示出了根据本发明一个实施例的实现浏览器中页面加载的服务器的结构图。 [0097] Referring to Figure 6, there is shown a block diagram according to one server for browser embodiment of the invention in the page loads. 该实施例中服务器100除了包括脚本注入模块110、正文提取模块120、存储模块140、通信模块130和页面预加载模块150外,还包括存储更新模块160。 In this embodiment the server 100 in addition to the external module 150 includes script injection module 110, text extraction module 120, a storage module 140, a communication module 130 and the pre-loading the page, further comprising a storage update module 160.

[0098] 存储更新模块160,适于以发送给客户端200的页面压缩包中页面为客户端200当前浏览的页面,将该当前浏览的页面所包含的非关键字对应的链接与已存储的页面压缩包对应的链接比较,根据比较结果更新存储的页面压缩包。 [0098] memory update module 160, adapted to send to the client 200 pages compressed package for the client 200 pages the current page, the non-keyword corresponding to the current page link contained and stored page compression package corresponding link comparing archive storage based on the comparison results Update page.

[0099] 进一步地,存储更新模块160对于没有被该当前浏览的页面所包含的链接,将该链接对应的页面压缩包从存储模块140中删除;对于该当前浏览的页面中所包含的、且对应的页面压缩包没有被存储的非关键字对应的链接,从网站下载该链接对应的页面,对下载的页面进行压缩处理,生成该链接对应的页面压缩包,将该页面压缩包存储到存储模块140 中。 [0099] Further, the storage module 160 to update the link has not been included in the current page, and the link to the corresponding page compression package deleted from the storage module 140; for the current page are included, and non-keyword corresponding link corresponding to the page is not stored in the archive, downloaded from the Web site that links to the corresponding page on the download page compression process to generate the link corresponding page archive, the archive is stored in the memory page module 140.

[0100] 参见图7,示出了根据本发明一个实施例的客户端链接点击后更新的页面。 [0100] Referring to Figure 7, showing the updated according to the client link in an embodiment of the invention clicked page. 以图7所示的在客户端链接点击图5中链接“国际”后更新的页面为例,进行示例性说明。 In Figure 7 shows the client Click on the link in Figure 5 on the link "International" page after the update, for example, be an exemplary illustration. 该页面中包含链接登录”、“注册”、“首页”、“科技”、“IT”、“互联网”、“国际”,以及新闻条目链接,例如:“百度下周股价走高的4个理由”、“亚马逊称Kindlefire创纪录”等。 This page contains links Login "," Register "," Home "," science and technology "," IT "," Internet "," international ", as well as links to news items, for example:" Baidu shares rise next week's four reasons " "Amazon said Kindlefire record" and so on.

[0101] 存储更新模块I60将该页面所包含的链接与已存储的页面压缩包对应的链接比较。 Link [0101] The page memory update module I60 contains pages already stored compressed corresponding links to compare. 其中,“登录”、“注册”、“首页”、“科技”、“IT”、“互联网”、“国际”被该更新后的页面所包含,且这些链接对应的页面压缩包已经被存储,所以这些链接对应的页面压缩包仍然被存储,没有变化。 Among them, the "Login", "Register", "Home", "science and technology", "IT", "Internet", "international" is the updated page that contains links to the corresponding page and these compressed packets have been stored, So these links corresponding page archive is still being stored, there is no change. 该更新后的页面中没有包含链接“上一页”,因此,将“上一页”对应的正文或正文压缩包从存储模块140中删除。 The updated page does not contain the link "Previous", therefore, the "Previous" corresponds to the body or body compression package deleted from the storage module 140. 该更新后的页面中包含的新闻条目链接对应的页面压缩包没有被存储模块140存储,因此从网站下载新闻条目链接对应的页面,对下载的页面进行压缩处理,生成该链接对应的页面压缩包,将该页面压缩包存储到存储模块140中。 News Item link corresponding to the updated page contains no pages compressed storage module 140 stores, so download link to the corresponding page news items from a website, to download the page compression process to generate the corresponding page links archive , the page compression package stored in the storage module 140.

[0102] 由上可见,通过在客户端中浏览的页面变化时,对应更新存储的链接对应的页面压缩包,使得已存储的页面压缩包中有用的页面压缩包被保留,仅增加变化后页面中新增链接对应的页面压缩包,因此能够进一步减少服务器端的网络流量,以及服务器进行页面压缩的工作负担。 [0102] As seen above, by browsing a page in the client changes, the corresponding update the corresponding page links stored compressed package, so the page stored in compressed archive useful pages are reserved only increased after the change page link to the corresponding page in the new archive, it is possible to further reduce network traffic on the server side, and server workload page compression.

[0103] 图8示出了根据本发明一个实施例的实现浏览器中页面加载的客户端的结构图。 [0103] FIG. 8 shows a block diagram of an example of realization of the browser page loads in a client according to one embodiment of the present invention. 该客户端200包括:请求发送模块210和页面加载模块220。 The client 200 include: a request sending module 210 and page load module 220.

[0104] 请求发送模块210,适于在接收到加载原始网页的指令后,向服务器100发送加载原始页面的请求,所述原始页面为初始访问网站时所浏览的页面,以及在接收到加载关键字对应的链接指令后,向服务器100发送加载关键字对应的链接的页面的请求。 [0104] request module 210, adapted to load the original page after receiving an instruction to the server 100 sends a request to load the original page, the original page is the initial visit the web site pages viewed, and receiving the critical load After word corresponding link instructions, send a request to the server 100 loads keywords corresponding links page.

[0105] 页面加载模块220,适于接收服务器100发送的注入有正文加载脚本的原始页面,加载该原始页面,以及接收服务器100发送的关键字对应的链接的页面中正文,通过正文加载脚本将该正文添加到当前浏览的页面的正文中。 [0105] page load module 220, 100 is adapted to inject the receiving server has sent the text of the original page is loaded script, load the original page, and keywords corresponding link receiving server 100 transmits a page in the text, the text is loaded by script add to the body of the text in the current page.

[0106] 由于下发的正文已经预先提取,因此可以提高浏览页面的速度,同时下发内容仅为正文内容,减少了下发的数据量,减少客户端浏览网页所用网络流量。 [0106] Since the text has been previously issued by the extraction, it is possible to increase the speed of the browser page, but issued only for text content, reducing the amount of data issued to reduce the client used for web browsing network traffic.

[0107] 进一步地,原始页面中还注入有内存释放脚本。 [0107] Further, the original page also has a memory release script injection.

[0108] 页面加载模块220,还适于在接收到加载关键字对应的链接的页面的指令后,通过内存释放脚本判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。 [0108] page load module 220 is further adapted to receive the load in the instruction corresponding keywords linked page through memory release script to determine whether the current page share memory exceeds a preset threshold, if exceeded, the release This page is occupied prior to browse the text memory.

[0109] 通过执行原始页面中注入内存释放脚本,解决由于添加的正文过多导致内存溢出的问题,达到了防止内存溢出的有益效果。 [0109] injection by executing the original page memory release script, add text to solve problems due to excessive lead to memory overflow, to prevent memory overflow beneficial effect.

[0110] 进一步地,原始页面中还注入有阅读标签功能脚本和/或页面选择功能脚本。 [0110] Further, the original page also features a script injection have read the label and / or page select scripts.

[0111] 页面加载模块220,还适于通过阅读标签功能脚本和/或页面选择功能脚本,在当前浏览的页面中添加阅读标签功能键和/或选择页面功能键。 [0111] page load module 220 is further adapted script by reading the label function and / or page selection function script, read the label to add function keys and / or function keys to select the page in the current browser page.

[0112] 通过向原始页面中注入功能脚本的方式,可以在客户端的页面中添加功能键,由此达到扩展页面中功能的有益效果。 [0112] The injection function to the original page in the script the way, you can add the function key in the client's page, so as to achieve beneficial effects extend page feature.

[0113] 图9示出了根据本发明一个实施例的实现浏览器中页面加载的客户端的结构图。 [0113] FIG. 9 shows a structure in accordance with one embodiment of the present invention shown in an example of realization of the browser page load client. 该客户端200除了包括请求发送模块210和页面加载模块220为,还包括解压模块230。 The client 200 in addition to including a request sending module 210 and page load module 220, also includes a decompression module 230.

[0114] 解压模块230,适于对页面压缩包进行解压缩; [0114] decompression module 230, adapted to decompress the archive page;

[0115] 请求发送模块210,还适于在接收到加载非关键字对应的链接的指令后,向服务器100发送加载当前浏览的页面中非关键字对应的链接的页面的请求;所述非关键字对应的链接为页面中除关键字对应的链接之外的链接; [0115] request module 210 is further adapted after receiving the instruction to load non-keyword corresponding link, send a request to load the current page Central African keywords corresponding linked page to the server 100; the non-critical word corresponding link for the page links in addition to keywords corresponding links;

[0116] 页面加载模块220,还适于接收服务器100发送的指令中链接对应的页面压缩包,指示解压模块230将该页面压缩包解压缩,加载该页面压缩包中页面。 [0116] page load module 220 is also adapted to receive commands sent by the server 100 in the corresponding page link compressed, indicating decompression module 230 decompress compressed the page, load the page compression package page.

[0117] 实施例中,客户端仅接收要浏览的链接对应的页面压缩包,不需要将页面中所有链接的页面都做预下载,另一方面,在服务器侧已经预先生成了页面压缩包,通过从服务器侧下载该页面压缩包,能够提高浏览速度。 [0117] In an embodiment, the client receives only the link to the corresponding page to browse archive, no need to page all linked pages are doing pre-downloaded, on the other hand, has previously generated on the server side of the page compression package, By downloading the page from the server side compression package can be improved browsing speed. 因此,进一步取得了既能够加快客户端中浏览速度又能够节约客户端的网络流量,减少客户端的工作负担的有益效果。 Therefore, further we made both to accelerate the browsing speed and clients can save the client network traffic and reduce the workload of the client's benefit.

[0118] 参见图10,示出了根据本发明一个实施例的实现浏览器中页面加载的系统的结构图。 [0118] Referring to FIG. 10, it shows a block diagram of a system according to an example of realization of the browser page loads embodiment of the present invention. 系统包括前述服务器100,以及多个前述客户端200。 Server 100 includes the aforementioned system, and a plurality of the aforementioned client 200. 服务器100和客户端200间可以直接连接也可以通过网络连接,在此没有特别限制。 Server 100 and client 200 may be directly connected can also be connected through the network, this is not particularly limited.

[0119] 参见图11,示出了根据本发明一个实施例的实现浏览器中页面加载的方法的流程图。 [0119] Referring to Figure 11, a flowchart illustrating a method according to an example of realization of the browser page loads embodiment of the present invention. 该方法包括如下步骤。 The method comprises the following steps.

[0120] 步骤S1110,在接收到客户端发送的加载原始页面的请求后,向发送给客户端的原始页面中注入正文加载脚本。 [0120] step S1110, after receiving the request sent by the client to load the original page, and sends the page to the client's original script was injected into the body load. 原始页面为初始访问网站时所浏览的页面; The original page initial visit when viewed pages;

[0121] 步骤S1120,从客户端当前浏览的页面中解析出用于表示页面间正文的相互关系的关键字,提取关键字对应的链接,从网站下载所述链接对应的页面,提取下载的页面中正文,存储提取的正文。 [0121] step S1120, from the client to resolve the current page in the relationship between the keywords used to represent the body of the page, extracting keywords corresponding link, the link to the download site from the corresponding page, extract the downloaded page The body stores the extracted text.

[0122] 步骤S1130,当接收到客户端发送的加载关键字对应的链接的请求后,将提取的正文发送给客户端,使客户端通过正文加载脚本将该正文添加到当前浏览的页面的正文中。 [0122] Step S1130, after receiving a request to load a keyword corresponding link sent by the client, the body will extract sent to the client, so the client through the body of the text of the script is loaded text added to the current page of in.

[0123] 为进一步节约网络流量,在步骤SI 120中,可以对提取的正文进行压缩处理,存储生成的压缩包。 [0123] In order to save network traffic, in step SI 120, it is possible to extract the body of the compression process, store the generated archive. 步骤S1130中,接收到客户端发送的加载关键字对应的链接的页面的请求后,将存储的该链接对应的正文的压缩包发送给客户端。 After step S1130, upon receipt of a request sent by the client load keywords corresponding link pages will be stored in the link text corresponding compressed packet is sent to the client.

[0124] 以图2中所示的客户端预浏览的三个相关网页为例,进行示例性说明。 [0124] In the client shown in Figure 2 of the three pre-browse relevant pages, for example, be an exemplary illustration. 图2中三个网页为一篇文章的第I页、第2页、第3页,三页中正文内容合并为一篇完整的文章。 Figure 2 three pages to an article page I, Section 2, page 3, in a three-page text content combined into a complete article. 图2中方框所框部分为关键字。 Figure 2 block as part of the Keyword box.

[0125] 关键字用于表示页面间正文的相互关系,例如,关键字可以为“上一页”、“下一页”、“第X页”等。 [0125] keyword is used to indicate the relationship between the body of the page, for example, keywords can be "Previous", "Next", "page X" and so on. 图2中标出的关键字仅为示例性说明,本发明中关键字不限于此。 Keywords marked in FIG. 2 is only illustrative of the present invention is not limited thereto keywords.

[0126] 首先,在步骤SlllO中,在接收到客户端发送的加载原始页面,即第I页,的请求后,向发送给客户端的原始页面中注入正文加载脚本。 [0126] First, in step SlllO, after receiving the client sends the page to load the original, that page I, the request to send to the client injected into the body of the original page is loaded script. 客户端可以通过该正文加载脚本将接收的正文添加到当前浏览的页面的正文中。 The client can load scripts by the body to add to the body of the text received in the current page.

[0127] 在步骤SI 120中,对于客户端200当前浏览的第I页中关键字“下一页”对应的链接,从网站中下载该链接对应的页面,提取该链接对应的页面中正文,即第2页中正文。 [0127] In step SI 120, with respect to the client 200 current browser page I keyword "Next" corresponds to the link to download the link to the corresponding page from the site, extract the corresponding page in the link text, That is on page 2 of the text. 具体地,通过在第2页的html中查询,发现第三个<div>标签对〈div class=”wl Text”〉...</div>中具有“Text”,则确定第三个<div>标签对中包含的为正文,提取该正文。 Specifically, by querying the html page 2, we found the third <div> tags <div class = "wl Text"> ... </ div> has the "Text", it is determined that the third < div> tags included in the text, extract the text.

[0128] 当完成第I页浏览后,向下滑动页面,客户端接收到加载当前浏览的页面中关键字“下一页”对应链接的页面的指令,发送加载关键字“下一页”对应的链接的页面的请求。 [0128] When I browse complete page after sliding down the page, the client receives the load current page keyword "Next" link corresponding to the instruction page, send the keyword loading 'Next' correspondence Request links page. 在步骤S1130中,接收请求,将链接“下一页”,即第2页,对应的页面中正文发送给客户端。 In step S1130, the received request, the link "Next", that the first two, the corresponding page in the text sent to the client. 客户端通过正文加载脚本将正文添加到当前浏览的页面的正文中。 The client through the body of the script is loaded into the body of the text to add the current page.

[0129] 并且,客户端接收到第2页正文后,自动将“下一页”对应链接中页码加1,使得“下一页”对应第3页。 [0129] In addition, the customer receives the first two after the text, automatically "Next" link in the corresponding page number plus 1, the "Next" corresponds to page 3. 当完成第2页浏览后,向下滑动,客户端获得第3页中正文,通过正文加载脚本将第3页中正文添加到当前浏览的页面的正文中。 When the first two after browsing, slide down, the client gets the text on page 3, the body of the script is loaded by the text added to the text on page 3 of the current page. 客户端中完成正文添加后完整页面如图3所示。 Full Page as shown in Figure 3 after the client complete text added.

[0130] 进一步,在步骤S1120中根据页面所属网站中页面结构从下载的页面中提取正文。 [0130] Further, in step S1120 extracting text based pages to your website page structure from the download page. 以图2所示的三个页面为例,经分析可知,三个页面的html中都包含“Text”,并且三个页面中包括“上一页”或“下一页”。 In three pages shown in Figure 2 as an example, the analysis shows, html three pages are included in "Text", and three pages include the "Previous" or "Next." 由此可以确定,三个页面间具有关联,并且都包含有正文。 It can determine, among three pages with associated, and both contain text. 如上所述,通过在页面的html中查询,发现第三个<div>标签对〈div class=”wlText”〉…</div>中具有“Text”,则确定第三个<div>标签对中包含的为正文,提取该正文。 As described above, by querying the html of the page, find the third <div> tag of <div class = "wlText"> ... </ div> has the "Text", it is determined that the third <div> tags included in the text, extract the text.

[0131] 进一步地,方法还包括:向发送给客户端的原始页面中注入内存释放脚本,以使客户端在接收到加载关键字对应的链接的指令后,判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。 [0131] Further, the method further comprising: sending to the client to the original page in memory release script injection, so that the client after receiving the key corresponding to the load-linked instruction determines whether the current page share memory over preset threshold, if exceeded, before the release of the page to browse text occupied memory.

[0132] 例如,内存释放脚本中内容为: [0132] For example, memory release script reads:

[0133] parent.removeChild(e); [0133] parent.removeChild (e);

[0134] e=null; [0134] e = null;

[0135] delete e [0135] delete e

[0136] 当完成第2页浏览后,向下滑动页面,客户端接收到加载关键字“下一页”对应链接的页面的指令。 [0136] When the first two after browsing, slide down the page, the client receives the instruction to load the keyword "Next" corresponds to the linked page. 客户端判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放第I页和/或第2页中正文所占内存。 Clients determine the current page memory exceeds a preset threshold percentage, if exceeded, the release page I and / or in the body of the first two occupied memory.

[0137] 由上可见,通过向发送给客户端的原始页面中注入内存释放脚本,解决由于添加的正文过多导致内存溢出的问题,取得了防止内存溢出的有益效果。 [0137] As seen above, to be sent to the client by the original page script injection memory release, resolve to add too much because the body cause memory overflow problem, made a beneficial effect to prevent memory overflow.

[0138] 进一步地,方法还包括:向发送给客户端的原始页面中注入阅读标签功能脚本和/或页面选择功能脚本,以使客户端在当前浏览的页面中添加阅读标签功能键和/或选择页面功能键。 [0138] Further, the method further comprises: to send to the client's original page injected read labels feature scripts and / or page select the script, so that the client added to read the label function keys and / or selection in the current page in page function key.

[0139] 在此,通过向原始页面中注入功能脚本的方式,可以在客户端的页面中添加功能键,由此达到扩展页面中功能的有益效果。 [0139] In this case, by injection function to the original page in the script the way, you can add the function key in the client's page, so as to achieve beneficial effects extend page feature.

[0140] 参见图12,示出了根据本发明一个实施例的对于页面中非关键字对应的链接处理的方法的流程图。 [0140] Referring to FIG. 12, it shows a method for the Central African keywords corresponding page link processing flow chart of one embodiment of the invention according to. 在该实施例中,方法除包括步骤SI 110至步骤SI 130外,还包括如下步骤。 In this embodiment, the method comprises the step SI 110 in addition to the step SI 130, also includes the following steps.

[0141] 步骤S1210,提取客户端当前浏览的页面中非关键字对应的链接,从网站下载所述链接对应的页面。 [0141] step S1210, the client extracts the current page Central African keywords corresponding link to download the link to the corresponding page from the website. 所述非关键字对应的链接为除关键字对应的链接之外的链接。 The non-keyword corresponding links as links except for keywords corresponding links.

[0142] 步骤S1220,对下载的页面进行压缩处理,生成链接对应的页面压缩包,存储该页面压缩包。 [0142] step S1220, on the page to download the compression process, generates the corresponding page links archive, store the page archive.

[0143] 步骤S1230,当接收到客户端发送的加载当前浏览的页面中非关键字对应的链接的请求后,将该请求中链接对应的页面压缩包发送给客户端。 [0143] Step S1230, after receiving a request to load current browser client sends a page Central African keywords corresponding link, the link to the corresponding page request compressed package sent to the client.

[0144] 以图5中所示页面为例,对实施例进行举例说明。 [0144] In the page shown in Figure 5, for example, the embodiments illustrated.

[0145] 在该页面包含有链接:“登录”、“注册”、“首页”、“科技”、“ IT ”、“互联网”、“国际”、 [0145] This page contains links to: "login", "register", "Home", "science and technology", "IT", "Internet", "international",

“上一页”等。 "Previous" and so on. 其中,“上一页”为关键字对应的链接,其余的为非关键字对应的链接。 Among them, the "Previous" as the keyword corresponding links, the rest of the non-keyword corresponding link. 步骤S1210中,提取该页面中所包含非关键字对应的链接。 Step S1210, extracts the page that contains links to corresponding non-key. 由于客户端从服务器获得浏览的页面,因此服务器能够获知客户端当前浏览的页面。 Because the client to get the browser page from the server, so the server can know the client the current page. 并且,从各个网站下载各个非关键字对应链接对应的页面。 Also, download the respective non-keyword links from various sites corresponding to the corresponding page. 步骤S1220中,对下载的页面进行压缩处理,生成链接对应的页面压缩包,存储页面压缩包。 Step S1220, on the page to download the compression process, generates the corresponding page link archive, memory pages compressed. 当页面中某个非关键字对应的链接被点击后,客户端就会发送加载该被点击的链接的页面的请求。 When the page in a non-key corresponding link is clicked, the client sends a request that the link is clicked the page is loaded. 步骤S1230中,接收客户端发送的请求,并将该请求中链接对应的页面压缩包发送给客户端。 Step S1230, the receiving client sends a request and the request link corresponding page compression package sent to the client. 由此,客户端获得点击的链接对应的页面压缩包,将该压缩包解压缩后在客户端2示该页面。 Thus, the client clicks on the link corresponding page archive, the archive decompressed on the client. 2 shows the page.

[0146] 本实施例中对各个客户端浏览的页面中链接对应的页面进行统一的下载和保存,并将该页面压缩成压缩包。 [0146] In this example for each client browser pages link to the corresponding page implementation unified download and save the compressed archive into the page. 当客户端中因为链接点击等原因,实际产生下载需要时,将对应的压缩包下发给客户端。 When a client because the link at other reasons, the actual generation download required, under the corresponding compression package to clients. 由此,能够向客户端提供非关键字对应的链接的压缩数据包,提高浏览非关键字对应的链接的页面的速度,取得了既能够加快客户端中浏览速度又能够节约客户端的网络流量,减少客户端的工作负担的有益效果。 This can provide to clients links to non-keyword corresponding compressed data packets, increase the speed browsing non-keyword corresponding linked pages, we have made both to accelerate the browsing speed and client network traffic can save the client, reduce the workload of the beneficial effects of the client.

[0147] 在一实施例中,方法还包括:以发送给客户端的页面压缩包中页面为客户端当前浏览的页面,将该当前浏览的页面所包含的非关键字对应的链接与已存储的页面压缩包对应的链接比较,根据比较结果更新存储的页面压缩包。 [0147] In one embodiment, the method further comprising: sending to the client's page compression package page for the client current page, non-keyword corresponding the current page link contained and stored page compression package corresponding link comparing archive storage based on the comparison results Update page.

[0148] 进一步地,对于没有被该当前浏览的页面所包含的链接,将该链接对应的页面压缩包删除; [0148] Further, the link has not been the current page that contains the link to the corresponding page compression package deleted;

[0149] 对于该当前浏览的页面中所包含的、且对应的页面压缩包没有被存储的非关键字对应的链接,从网站下载该链接对应的页面,对下载的页面进行压缩处理,生成该链接对应的页面压缩包,存储该页面压缩包。 [0149] For the current page are included, and the non-keyword corresponding link corresponding to the page is not stored in the archive, downloaded from the Web site that links to the corresponding page on the download page compression processing to generate the link to the corresponding page archive, store the page archive.

[0150] 以图7所示的在客户端链接点击图5中链接“国际”后更新的页面为例,进行示例性说明。 [0150] In Figure 7 shows the client Click on the link in Figure 5 on the link "International" page after the update, for example, be an exemplary illustration. 该页面中包含链接:“登录”、“注册”、“首页”、“科技”、“IT”、“互联网”、“国际”,以及新闻条目链接,例如:“百度下周股价走高的4个理由”、“亚马逊称Kindlefire创纪录”等。 This page contains the link: "login", "register", "Home", "science and technology", "IT", "Internet", "international", as well as links to news items, for example: "Baidu shares rise 4 next week reasons "," Amazon said Kindlefire record "and so on.

[0151] 将该页面所包含的链接与已存储的页面压缩包对应的链接比较。 [0151] The linked page contains pages already stored compressed corresponding links to compare. 其中,“登录”、“注册”、“首页”、“科技”、“IT”、“互联网”、“国际”被该更新后的页面所包含,且这些链接对应的页面压缩包已经被存储,所以这些链接对应的页面压缩包仍然被存储,没有变化。 Among them, the "Login", "Register", "Home", "science and technology", "IT", "Internet", "international" is the updated page that contains links to the corresponding page and these compressed packets have been stored, So these links corresponding page archive is still being stored, there is no change. 该更新后的页面中没有包含链接“上一页”,因此,将“上一页”对应的正文或正文压缩包删除。 The updated page does not contain the link "Previous", therefore, the "previous" corresponding text or delete text archive. 该更新后的页面中包含的新闻条目链接对应的页面压缩包没有被存储,因此从网站下载新闻条目链接对应的页面,对下载的页面进行压缩处理,生成该链接对应的页面压缩包,存储该页面压缩包。 News Item link corresponding to the updated page contains a page archive is not stored, so download link to the corresponding page news items from a website, to download the page compression process to generate the link corresponding page archive, store the page archive.

[0152] 由上可见,通过在客户端中浏览的页面变化时,对应更新存储的链接对应的页面压缩包,使得已存储的页面压缩包中有用的页面压缩包被保留,仅增加变化后页面中新增链接对应的页面压缩包,因此能够进一步减少服务器端的网络流量,以及服务器进行页面压缩的工作负担。 [0152] As seen above, by browsing a page in the client changes, the corresponding update the corresponding page links stored compressed package, so the page stored in compressed archive useful pages are reserved only increased after the change page link to the corresponding page in the new archive, it is possible to further reduce network traffic on the server side, and server workload page compression.

[0153] 在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。 [0153] In this algorithm, and the display is not provided to any particular computer or other device-specific virtual system related. 各种通用系统也可以与基于在此的示教一起使用。 Various general purpose systems may also be used in conjunction with the teach-based In this. 根据上面的描述,构造这类系统所要求的结构是显而易见的。 According to the above described structure is configured such systems required is obvious. 此外,本发明也不针对任何特定编程语言。 Furthermore, the present invention is not directed against any particular programming language. 应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。 It should be understood that a variety of programming languages can be used to achieve the contents of the present invention described herein, and the above description made by a particular language is to disclose a preferred embodiment of the present invention.

[0154] 在此处所提供的说明书中,说明了大量具体细节。 [0154] In the description provided herein, numerous specific details are described. 然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。 However, it can be understood that the embodiment of the present invention may be practiced without these specific details. 在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。 In some instances, it has not been shown in detail well-known methods, structures and techniques, so as not to obscure the understanding of this description.

[0155] 类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。 [0155] Similarly, it should be understood that in order to streamline the present disclosure and help in understanding each invention, one or more, in the above description of exemplary embodiments of the present invention, the various features of the invention are sometimes grouped together in a single embodiment, FIG, or the description thereof. 然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。 However, this method should not be interpreted as reflecting disclosed an intention: that the claimed invention requires features in each claim than those specifically described in more features. 更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。 More specifically, as reflected in the book as the following claims, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. 因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。 Thus, the claims following the requirements of the specific embodiment thus expressly incorporated this particular embodiment, each claim itself as a separate embodiment of the present invention.

[0156] 本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。 [0156] Those skilled in the art can appreciate that the embodiments of the apparatus of the module adaptively changed and set them in connection with the embodiment of one or more different devices. 可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。 Embodiments can be combined in modules or units or components into a module or unit or module, and in addition they can be divided into a plurality of sub-modules or sub-unit or subassembly. 除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。 In addition to any method such features and / or process, or at least some of the units are mutually exclusive addition, you can use any combination of this document (including the accompanying claims, abstract and drawings), as well as all the features disclosed so openly or All process equipment or unit combination. 除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。 Unless expressly stated otherwise, each feature of the present specification (including the accompanying claims, abstract and drawings) may be provided by the same, equivalent or similar purpose alternative features instead.

[0157] 此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。 [0157] Moreover, those skilled in the art will appreciate that although in some embodiments described herein include some features of other embodiments and not included in other features, combinations of features of different embodiments are meant in the present and within the scope of the invention is formed of different embodiments. 例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。 For example, in the book the following claims, any of the claimed embodiments can be in any one of the combinations to be used.

[0158] 应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。 [0158] It should be noted that the above embodiments of the present invention will be described rather than limit the invention, and that those skilled in the art without departing from the scope of the appended claims, alternative embodiments may be devised. 在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。 In the claims, it should not be situated configured to restrict any reference signs between parentheses rights requirements. 单词“包含”不排除存在未列在权利要求中的元件或步骤。 The word "comprising" does not exclude the presence in a claim listed elements or steps. 位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。 Located before the word element "a" or "an" does not exclude a plurality of such elements. 本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。 The present invention may be by means of hardware comprising several distinct elements, and by means of a suitably programmed computer to achieve. 在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。 In enumerating several means of the unit claims, several of these means may be by the same item of hardware embodied. 单词第一、第二、以及第三等的使用不表示任何顺序。 Word first, second, and third, etc. does not denote any order. 可将这些单词解释为名称。 These words can be interpreted as the name.

Patent Citations
Cited PatentFiling datePublication dateApplicantTitle
CN102646135A *31 Mar 201222 Aug 2012奇智软件(北京)有限公司Webpage collecting method, device and system
US7747749 *5 May 200629 Jun 2010Google Inc.Systems and methods of efficiently preloading documents to client devices
US8103742 *24 Nov 200324 Jan 2012Amazon Technologies, Inc.Deferred and off-loaded rendering of selected portions of web pages to incorporate late-arriving service data
Classifications
International ClassificationG06F17/30, H04L29/08
Legal Events
DateCodeEventDescription
22 May 2013C06Publication
19 Jun 2013C10Entry into substantive examination
25 Nov 2015C14Grant of patent or utility model