Connect public, paid and private patent data with Google Patents Public Datasets

Implement server, client, system and method for browser page load

Download PDF

Info

Publication number
CN103116609B
CN103116609B CN 201310020113 CN201310020113A CN103116609B CN 103116609 B CN103116609 B CN 103116609B CN 201310020113 CN201310020113 CN 201310020113 CN 201310020113 A CN201310020113 A CN 201310020113A CN 103116609 B CN103116609 B CN 103116609B
Authority
CN
Grant status
Grant
Patent type
Application number
CN 201310020113
Other languages
Chinese (zh)
Other versions
CN103116609A (en )
Inventor
文哲
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
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
Grant date

Links

Abstract

本发明涉及网络数据通信领域,公开了实现浏览器中页面加载的服务器、客户端、系统和方法,该服务器包括:脚本注入模块,适于在接收到客户端发送的加载原始页面的请求后,向发送给客户端的原始页面中注入正文加载脚本;正文提取模块,适于从客户端当前浏览的页面中解析出用于表示页面间正文的相互关系的关键字,提取关键字对应的链接,从网站下载所述链接对应的页面,提取下载的页面中正文,将提取的正文存储到存储模块中;存储模块,适于存储提取的正文;通信模块,适于接收客户端发送的加载关键字对应的链接的页面的请求,将存储模块中存储的该链接对应的正文发送给客户端。 The present invention relates to a data communications network, the server implementation disclosed browser page is loaded, the client, the system and method, the server comprising: a script injection module adapted upon receiving a request to load the original page sent by the client, injection to the original page sent to the client's body to load a script; text extraction module, adapted to be linked from the client's current page view of parse out the key relationship between the body of the page is used to represent, to extract keywords corresponding to from corresponding to the download link page, the page downloaded text extraction, the extracted text to the storage module; and a storage module adapted to store the extracted text; a communication module, adapted to receive a corresponding client sends a keyword loading page request link, and transmits the link corresponding to the text stored in the storage module to the client. 本发明能够解决在客户端造成无用的下载流量,浪费网络流量的技术问题。 The present invention can solve the technical problems caused by unwanted download traffic, waste of network traffic on the client.

Description

实现浏览器中页面加载的服务器、客户端、系统和方法 Implement server, client, system and method for browser page load

技术领域 FIELD

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

背景技术 Background technique

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

发明内容 SUMMARY

[0003] 鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的实现浏览器中页面加载的服务器、客户端、系统和方法。 [0003] In view of the above problems, the present invention is proposed in order to overcome the above problems or to provide an at least partially solve the server, the client, the system and method implemented in the above-described problems browser page load.

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

[0005] 脚本注入模块,适于在接收到客户端发送的加载原始页面的请求后,向发送给客户端的原始页面中注入正文加载脚本,所述原始页面为初始访问网站时所浏览的页面; [0005] script injection module adapted upon receiving a request to load the original page sent by the client, to the original page to the client in the text loaded injection script, the original page when original pages is accessed website;

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

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

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

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

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

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

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

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

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

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

[0016] 所述通信模块,还适于接收客户端发送的加载当前浏览的页面中非关键字对应的链接的请求,将存储模块中该请求中链接对应的页面压缩包发送给客户端。 [0016] The communication module is further adapted to loading the current page Africa keyword corresponding link request sent by the client receiving the request in the storage module corresponding to the link packet compressed page sent to the client.

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

[0018] 存储更新模块,适于以发送给客户端的页面压缩包中页面为客户端当前浏览的页面,将该当前浏览的页面所包含的非关键字对应的链接与已存储的页面压缩包对应的链接比较,根据比较结果更新存储的页面压缩包。 [0018] storing an updating module, adapted to send a page to the client in compressed pages for the client the current page, the page is linked to the non-keyword corresponding to the stored current page contained in the compressed packet corresponds link comparison, which updates the stored compressed according to package page.

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

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

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

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

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

[0024] 所述页面加载模块,还适于在接收到加载关键字对应的链接的页面的指令后,通过内存释放脚本判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。 [0024] The page loading module is further adapted to, after receiving an instruction to load a page link corresponding to the keyword, the script determines whether the memory release by the current page of memory occupied by more than a preset threshold, if exceeded, browse before releasing the memory occupied by the body of the page.

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

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

[0027] 可选地,所述客户端还包括:解压模块,适于对页面压缩包进行解压缩; [0027] Alternatively, the client further comprising: a decompression module, adapted to decompress compressed page;

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

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

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

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

[0032] 在接收到客户端发送的加载原始页面的请求后,向发送给客户端的原始页面中注入正文加载脚本,所述原始页面为初始访问网站时所浏览的页面; [0032] Upon receiving a request to load the original page sent by the client, to the original page to the client in the text loaded injection script, the original page when original pages is accessed website;

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

[0034]当接收到客户端发送的加载关键字对应的链接的请求后,将提取的正文发送给客户端,使客户端通过正文加载脚本将该正文添加到当前浏览的页面的正文中。 [0034] When receiving a request to load the linked client sends a keyword corresponding to the extracted text to the client, so the client script to load the text by the text added to the body of the current page.

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

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

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

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

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

[0040] 根据页面所属网站中页面结构从下载的页面中提取正文。 [0040] extracts the text from the download pages based on page belongs to the website page structure.

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

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

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

[0044] 提取客户端当前浏览的页面中非关键字对应的链接,从网站下载所述链接对应的页面,对下载的页面进行压缩处理,生成链接对应的页面压缩包,存储该页面压缩包,所述非关键字对应的链接为除关键字对应的链接之外的链接; [0044] extracts keywords corresponding client page links to Central Africa browsing, downloading from the Web site link to the corresponding page on the download page compression processing to generate a link to the corresponding page archive, store the archive page, the non-key corresponding to the link as a link other than the link corresponding to the keyword;

[0045]当接收到客户端发送的加载当前浏览的页面中非关键字对应的链接的请求后,将该请求中链接对应的页面压缩包发送给客户端。 [0045] Upon receipt of the request for loading the current page Africa keyword corresponding link sent by the client, the page corresponding to a link request packet is sent to the client compression.

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

[0047] 以发送给客户端的页面压缩包中页面为客户端当前浏览的页面,将该当前浏览的页面所包含的非关键字对应的链接与已存储的页面压缩包对应的链接比较,根据比较结果更新存储的页面压缩包。 [0047] In Comparative link page to the client in compressed page to the current page of the client, the non-keyword corresponding to the link included in the current page with the page stored in the compressed packet corresponds, according to the comparison update stored result page archive.

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

[0049] 对于没有被该当前浏览的页面所包含的链接,将该链接对应的页面压缩包删除; [0049] For the current link are not included in the browser page, the page corresponding to the link packet deleting compressed;

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

[0051] 根据本发明的技术方案,在接收到客户端发送的加载原始页面的请求后,向发送给客户端的原始页面中注入正文加载脚本,从客户端当前浏览的页面中解析出用于表示页面间正文的相互关系的关键字,提取关键字对应的链接,从网站下载所述链接对应的页面,提取下载的页面中正文,存储提取的正文;当接收到客户端发送的加载关键字对应的链接的请求后,将提取的正文发送给客户端,使客户端通过正文加载脚本将该正文添加到当前浏览的页面的正文中。 [0051] According to the present invention, upon receiving a request to load the original page sent by the client, to the original page to the client in the injection body script is loaded from the client in the current page parsing for indicating key relationship between the pages of the text, extracting a keyword corresponding to the link corresponding to the link from the download page, text page extract text downloaded, stored extracted; when loading the client receives the key corresponding to the transmitted after the request is linked to the extraction of the body sent to the client, the client through the body of the text to load the script to add to the body of the current browser page.

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

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

附图说明 BRIEF DESCRIPTION

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

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

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

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

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

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

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

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

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

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

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

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

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

具体实施方式 detailed description

[0067] 下面将参照附图更详细地描述本公开的示例性实施例。 [0067] The following exemplary embodiments of the present disclosure will be described in more detail with reference to the drawings. 虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。 While the exemplary embodiment shows an exemplary embodiment of the present disclosure in the drawings, 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 able to more thorough understanding of the present disclosure, and the scope of the present disclosure can be completely conveying to those skilled in the art.

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

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

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

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

[0072] 通信模块130,适于接收客户端200发送的加载关键字对应的链接的页面的请求,将存储模块140中存储的该链接对应的正文发送给客户端200,使客户端200通过正文加载脚本将该正文添加到当前浏览的页面的正文中。 Loading the requested page links corresponding to the keyword [0072] The communication module 130, adapted to receive sending client 200, and the link corresponding to the storage module 140 stores the text sent to the client 200, the client 200 so that the text the script is loaded text added to the text in the current page.

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

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

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

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

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

[0078] 当完成第I页浏览后,向下滑动页面,客户端200接收到加载当前浏览的页面中关键字“下一页”对应链接的页面的指令,发送加载关键字“下一页”对应的链接的页面的请求。 [0078] After completion of the browser page I, slide down the page, the client 200 receives the instruction to load the current page keyword "next page" link to the corresponding page, the transmission load key "next page" the requested page corresponding links. 通信模块130接收请求,将链接“下一页”,即第2页,对应的页面中正文发送给客户端200。 Communication module 130 receives the request, the button "next", i.e. the second page, the text corresponding to the page sent to the client 200. 客户端200通过正文加载脚本将正文添加到当前浏览的页面的正文中。 The client 200 will add to the body of the text of the current page in the text by loading the script. 并且,客户端200接收到第2页正文后,自动将“下一页”对应链接中页码加1,使得“下一页”对应第3页。 Then, after the client receives the text of the second page, automatically "next page" link 200 corresponding to the page number is incremented by 1 so that the "next page" corresponds to page 3. 当完成第2页浏览后,向下滑动,客户端200从服务器100获得第3页中正文,通过正文加载脚本将第3页中正文添加到当前浏览的页面的正文中。 Upon the completion of page 2 browsing, slide down, clients get the text in the text on page 3 100 from the server, load the script by adding text in the text on page 3 to the current page of 200. 客户端200中完成正文添加后完整页面如图3所示。 After completion of the text added in the client 200 shown in Figure 3 the complete page.

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

[0080] 进一步地,脚本注入模块110,还适于向发送给客户端200的原始页面中注入内存释放脚本,以使客户端200在接收到加载关键字对应的链接的指令后,判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。 [0080] Further, script injection module 110 is further adapted to send to the client 200 in the original page script memory release injection end, so that the client 200 upon receiving the load command key corresponding link, determines the current browse the body of the page is occupied by the memory exceeds a preset threshold, if exceeded, then release the browser before the page is occupied by 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] After completion of the second page browsing, slide down the page, the client 200 receives an instruction to load the keyword "next page" link to the corresponding pages. 客户端200判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放第I页和/或第2页中正文所占内存。 The client 200 determines the current page share memory exceeds a preset threshold, if exceeded, then release the page I and / or text on page 2 share memory.

[0086] 由上可见,通过向发送给客户端的原始页面中注入内存释放脚本,解决由于添加的正文过多导致内存溢出的问题,取得了防止内存溢出的有益效果。 [0086] As seen above, into the memory release script by sending to the client's original page and resolve the body of excess leads to the added memory overflow problems, and achieved beneficial effect to prevent memory overflow.

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

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

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

[0090] 页面预加载模块150,适于提取客户端200当前浏览的页面中非关键字对应的链接,从网站下载该链接对应的页面,对下载的页面进行压缩处理,生成链接对应的页面压缩包,将该页面压缩包存储到存储模块140。 [0090] pre-loading page module 150, adapted to extract keywords corresponding page links to Central Africa currently browsing 200 clients, a download link to the corresponding page from the website, to download the page compression processing to generate a link to the corresponding page compression packet, the compressed page stored in the storage module 140.

[0091] 所述非关键字对应的链接为页面中除关键字对应的链接之外的链接; [0091] The non-key corresponding to the link for the page corresponding to a link other than the link key;

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

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

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

[0095] 在该页面包含有链接:“登录”、“注册”、“首页”、“科技”、“IT,,、“互联网”、“国际”、 [0095] included in this page has a link: "Login", "Register", "Home", "science and technology", "IT ,,," Internet "," international ",

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

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

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

[0098] 存储更新模块160,适于以发送给客户端200的页面压缩包中页面为客户端200当前浏览的页面,将该当前浏览的页面所包含的非关键字对应的链接与已存储的页面压缩包对应的链接比较,根据比较结果更新存储的页面压缩包。 [0098] memory update module 160, adapted to send to the client in compressed page 200 of the page to the client terminal 200 of the current page, the non-key corresponding to the link included in the current page with the stored Comparative compressed page link packet corresponds, according to the comparison result compressed page store update.

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

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

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

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

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

[0104] 请求发送模块210,适于在接收到加载原始网页的指令后,向服务器100发送加载原始页面的请求,所述原始页面为初始访问网站时所浏览的页面,以及在接收到加载关键字对应的链接指令后,向服务器100发送加载关键字对应的链接的页面的请求。 [0104] request sending module 210, upon receiving an instruction is adapted to load the original page, the server 100 transmits a request to load the original page, the original page when original pages is accessed site, and upon receiving the key loading after the instruction word corresponding to the link, corresponding to the request to load the keyword server 100 transmits the page links.

[0105] 页面加载模块220,适于接收服务器100发送的注入有正文加载脚本的原始页面,加载该原始页面,以及接收服务器100发送的关键字对应的链接的页面中正文,通过正文加载脚本将该正文添加到当前浏览的页面的正文中。 [0105] Page load module 220, adapted to inject the receiving server 100 has transmitted the original body of the page script loads, load the original page, and a link corresponding to the keyword sent by the server 100 receives the text page, script by loading the text the text added to 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 reduce client visit the website used by network traffic.

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

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

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

[0110] 进一步地,原始页面中还注入有阅读标签功能脚本和/或页面选择功能脚本。 [0110] Further, the original page is also injected script functions to read labels and / or select the page script.

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

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

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

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

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

[0116] 页面加载模块220,还适于接收服务器100发送的指令中链接对应的页面压缩包,指示解压模块230将该页面压缩包解压缩,加载该页面压缩包中页面。 [0116] Page 220 load module, further adapted to transmit a command corresponding to the link server 100 receiving the compressed page indicating decompression module 230 decompresses the compressed page, load the page in a compressed page.

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

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

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

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

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

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

[0123] 为进一步节约网络流量,在步骤SI 120中,可以对提取的正文进行压缩处理,存储生成的压缩包。 [0123] In order to further save network traffic, at step SI 120, compression processing may be performed on the extracted body, stores the generated compressed. 步骤S1130中,接收到客户端发送的加载关键字对应的链接的页面的请求后,将存储的该链接对应的正文的压缩包发送给客户端。 After step S1130, the received page request sent by the client to load the keyword corresponding to the link, the link corresponding to the stored text compressed packet sent to the client.

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

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

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

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

[0128] 当完成第I页浏览后,向下滑动页面,客户端接收到加载当前浏览的页面中关键字“下一页”对应链接的页面的指令,发送加载关键字“下一页”对应的链接的页面的请求。 [0128] After the completion of the first page I browse, sliding down the page, the client receives an instruction to load the page currently viewed page keyword "Next" link corresponding to the sending load the keyword "Next" corresponds request a page of links. 在步骤S1130中,接收请求,将链接“下一页”,即第2页,对应的页面中正文发送给客户端。 In step S1130, it receives the request, the button "next", i.e. the second page, the text corresponding to the page sent to the client. 客户端通过正文加载脚本将正文添加到当前浏览的页面的正文中。 The client load by text script text added to the body of the current page.

[0129] 并且,客户端接收到第2页正文后,自动将“下一页”对应链接中页码加1,使得“下一页”对应第3页。 [0129] Then, after receiving a second text page, automatically "next page" link to the corresponding page number is incremented by 1 so that the "next page" corresponds to page 3. 当完成第2页浏览后,向下滑动,客户端获得第3页中正文,通过正文加载脚本将第3页中正文添加到当前浏览的页面的正文中。 Upon the completion of page 2 browsing, slide down, clients get on page 3 in the body, through the body of the text to load the script will add to the body of the current page in the page 3. 客户端中完成正文添加后完整页面如图3所示。 After the client completed the full page add body 3 as shown in FIG.

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

[0131] 进一步地,方法还包括:向发送给客户端的原始页面中注入内存释放脚本,以使客户端在接收到加载关键字对应的链接的指令后,判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。 [0131] Further, the method further comprising: injecting memory release sent to the client script to the original page, so that the client after receiving the instruction to load the link corresponding to the keyword, determines whether the current page of memory occupied by more than preset threshold, if exceeded, then release the page before the browser share the text 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] After the completion of the second page browsing, slide down the page to load instructions keyword "Next" link corresponding to the page received by the client. 客户端判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放第I页和/或第2页中正文所占内存。 The client can determine the current page share memory exceeds a preset threshold, if exceeded, then release the page I and / or text on page 2 share memory.

[0137] 由上可见,通过向发送给客户端的原始页面中注入内存释放脚本,解决由于添加的正文过多导致内存溢出的问题,取得了防止内存溢出的有益效果。 [0137] As seen above, into the memory release script by sending to the client's original page and resolve the body of excess leads to the added memory overflow problems, and achieved beneficial effect to prevent memory overflow.

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

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

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

[0141] 步骤S1210,提取客户端当前浏览的页面中非关键字对应的链接,从网站下载所述链接对应的页面。 [0141] step S1210, the client extracts keywords corresponding page links Central Africa browsing, downloading the corresponding page links from the site. 所述非关键字对应的链接为除关键字对应的链接之外的链接。 The non-key corresponding to the link as a link other than the link corresponding to the keywords.

[0142] 步骤S1220,对下载的页面进行压缩处理,生成链接对应的页面压缩包,存储该页面压缩包。 [0142] Step S1220, the downloaded pages compression processing to generate compressed page corresponding to the link, stores the compressed page.

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

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

[0145] 在该页面包含有链接:“登录”、“注册”、“首页”、“科技”、“ IT ”、“互联网”、“国际”、 [0145] included in this page has a link: "Login", "Register", "Home", "science and technology", "IT", "Internet", "international",

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

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

[0147] 在一实施例中,方法还包括:以发送给客户端的页面压缩包中页面为客户端当前浏览的页面,将该当前浏览的页面所包含的非关键字对应的链接与已存储的页面压缩包对应的链接比较,根据比较结果更新存储的页面压缩包。 [0147] In one embodiment, the method further comprising: sending a page to the client in compressed page to the current page of the client, the non-keyword corresponding to the link included in the current page with the stored Comparative compressed page link packet corresponds, according to the comparison result compressed page store update.

[0148] 进一步地,对于没有被该当前浏览的页面所包含的链接,将该链接对应的页面压缩包删除; [0148] Further, for the current link are not included in the browser page, the page corresponding to the link packet deleting compressed;

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

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

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

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

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

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

[0155] 类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。 [0155] Similarly, it should be understood that the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects in the description of exemplary embodiments of the present invention, various features of the invention are sometimes grouped into a single together embodiment, FIG, or the description thereof. 然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。 However, the methods disclosed herein should not be interpreted as reflecting an intention: that the claimed invention requires more features than in each of the claims expressly recited. 更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。 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 specific embodiments are hereby incorporated into this Detailed Description explicitly, with each claim itself as a separate embodiment of the present invention.

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

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

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

Claims (21)

1.一种实现浏览器中页面加载的服务器,该服务器包括: 脚本注入模块,适于在接收到客户端发送的加载原始页面的请求后,向发送给客户端的原始页面中注入正文加载脚本,所述原始页面为初始访问网站时所浏览的页面; 正文提取模块,适于从客户端当前浏览的页面中解析出用于表示页面间正文的相互关系的关键字,提取关键字对应的链接,从网站下载所述链接对应的页面,提取下载的页面中正文,将提取的正文存储到存储模块中; 存储模块,适于存储提取的正文; 通信模块,适于接收客户端发送的加载关键字对应的链接的页面的请求,将存储模块中存储的该链接对应的正文发送给客户端,使客户端通过正文加载脚本将该正文添加到当前浏览的页面的正文中。 A server is implemented in a browser page loads, the server comprising: script injection module adapted upon receiving a request to load the original page sent by the client, to the original page to the client in the text loaded injection script, the original page when original pages is accessed website; text extraction module adapted to parse the text key relationship between the page from a client for indicating the current page, the link corresponding to the extracted keywords, corresponding to the link from the download page, download page text extraction, the extracted text to the storage module; and a storage module adapted to store the extracted text; a communication module, adapted to receive the key sent by a client loading the requested page corresponding to the link, the link will transmit the corresponding memory module stored in the text to the client, so the client script to load the text by the text added to the body of the current page.
2.根据权利要求1所述的服务器,其中, 所述脚本注入模块,还适于向发送给客户端的原始页面中注入内存释放脚本,以使客户端在接收到加载关键字对应的链接的指令后,判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。 The command server according to claim 1, wherein the injection module is a script, the script is further adapted to release the memory injection sent to the client in the original page, so that the client receiving the load corresponding to the keywords of the link after the judge previously browsed share the current page if memory exceeds a preset threshold, if exceeded, then release the memory occupied by the body of the page.
3.根据权利要求1或2所述的服务器,其中, 所述脚本注入模块,还适于向发送给客户端的原始页面中注入阅读标签功能脚本和/或页面选择功能脚本,以使客户端在当前浏览的页面中添加阅读标签功能键和/或选择页面功能键。 3. The server according to claim 1 or claim 2, wherein said script injection module is further adapted to read the label injection script function and / or select a page sent to the client script to the original page, so that 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 the text extraction module is further adapted to extract text downloaded from the page according to the page relevant to the website page structure.
5.根据权利要求1或2所述的服务器,其中, 所述正文提取模块,进一步适于对提取的正文进行压缩处理,将生成的压缩包存储到存储模块中。 5. The server according to claim 1 or claim 2, wherein the text extraction module is further adapted to extract text compression process, the compressed packet generated in the storage module.
6.根据权利要求1或2所述的服务器,其中, 所述服务器还包括: 页面预加载模块,适于提取客户端当前浏览的页面中非关键字对应的链接,从网站下载所述链接对应的页面,对下载的页面进行压缩处理,生成链接对应的页面压缩包,将该页面压缩包存储到存储模块,所述非关键字对应的链接为页面中除关键字对应的链接之外的链接; 所述存储模块,还适于存储页面压缩包; 所述通信模块,还适于接收客户端发送的加载当前浏览的页面中非关键字对应的链接的请求,将存储模块中该请求中链接对应的页面压缩包发送给客户端。 6. A server according to claim 1 or claim 2, wherein said server further comprises: pre-loading the page module, adapted to extract keywords corresponding client page linking Africa browsing, corresponding to the download link from page, the downloaded pages compression processing to generate compressed page corresponding to the link, the compressed page into the storage module corresponding to the non-keyword link to a page corresponding to a link other than the link key ; the storage module is further adapted to store compressed pages; the communications module is further adapted to request the current page loading key corresponding to the received link Africa sent by the client, the request module stores the link corresponding compressed page sent to the client.
7.根据权利要求6所述的服务器,其中, 所述服务器还包括: 存储更新模块,适于以发送给客户端的页面压缩包中页面为客户端当前浏览的页面,将该当前浏览的页面所包含的非关键字对应的链接与已存储的页面压缩包对应的链接比较,根据比较结果更新存储的页面压缩包。 The server of claim 6, wherein said server further comprises: a storage updating module, adapted to send a page to the client in compressed pages for the client the current page, the current page of the Links and stored non-keyword corresponding page contains links to compare packages corresponding compression, archive storage based on the comparison update page.
8.根据权利要求7所述的服务器,其中, 所述存储更新模块,进一步适于对于没有被该当前浏览的页面所包含的链接,将该链接对应的页面压缩包从存储模块中删除;对于该当前浏览的页面中所包含的、且对应的页面压缩包没有被存储的非关键字对应的链接,从网站下载该链接对应的页面,对下载的页面进行压缩处理,生成该链接对应的页面压缩包,将该页面压缩包存储到存储模块中。 8. The server according to claim 7, wherein said memory update module is further adapted for the current link are not included in the browser page, the link compressed packet deleting the corresponding page from the storage module; for the current page contained and non-keyword corresponding links page archive is not stored in the corresponding download link from the corresponding Web page, download page for the compression process, generates the corresponding page link compressed, the compressed page stored in the memory module.
9.一种实现浏览器中页面加载的客户端,该客户端包括: 请求发送模块,适于在接收到加载原始网页的指令后,向服务器发送加载原始页面的请求,所述原始页面为初始访问网站时所浏览的页面,以及在接收到加载关键字对应的链接指令后,向服务器发送加载关键字对应的链接的页面的请求; 页面加载模块,适于接收服务器发送的注入有正文加载脚本的原始页面,加载该原始页面,以及接收服务器发送的关键字对应的链接的页面中正文,通过正文加载脚本将该正文添加到当前浏览的页面的正文中。 A page loaded in the browser implemented client, the client comprising: a request sending module, adapted to load the original instruction after receiving the page, the server sends a request to load the original page, the original page is the initial when accessing the web site pages viewed, and after receiving a request to load a keyword corresponding link instructions, send a link to load the keyword corresponding to the server page; page load module is adapted to receive the text sent by the server to load the script injected the original page, load the original page, and keyword receiving server sends the link to the page in the text, the text added by the script is loaded into the body of the text currently viewed page.
10.根据权利要求9所述的客户端,其中, 所述原始页面中还注入有内存释放脚本; 所述页面加载模块,还适于在接收到加载关键字对应的链接的页面的指令后,通过内存释放脚本判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。 10. The client according to claim 9, wherein, the original page is also injected script memory release; the page loading module is further adapted to receiving the instruction after the load corresponding to the keywords in the linked page, memory release script by judging the current page share memory exceeds a preset threshold, if exceeded, before the release of the browser share page text memory.
11.根据权利要求9或10所述的客户端,其中, 所述原始页面中还注入有阅读标签功能脚本和/或页面选择功能脚本, 所述页面加载模块,还适于通过阅读标签功能脚本和/或页面选择功能脚本,在当前浏览的页面中添加阅读标签功能键和/或选择页面功能键。 The client according to claim 9 or claim 10, wherein said further injected original page script function to read the label and / or script select page, the page is loaded module is further adapted to function by reading the script tag and / or select the page script, read the label to add the function keys and / or function keys to select a page in the current browser page.
12.根据权利要求9或10所述的客户端,其中, 所述客户端还包括:解压模块,适于对页面压缩包进行解压缩; 所述请求发送模块,还适于在接收到加载非关键字对应的链接的指令后,向服务器发送加载当前浏览的页面中非关键字对应的链接的页面的请求;所述非关键字对应的链接为页面中除关键字对应的链接之外的链接; 所述页面加载模块,还适于接收服务器发送的指令中链接对应的页面压缩包,指示解压模块将该页面压缩包解压缩,加载该页面压缩包中页面。 12. The client of claim 9 or claim 10, wherein the client further comprising: a decompression module adapted for decompressing compressed page; the request sending module is further adapted for receiving a non-loading after the link instruction corresponding to the keyword, the server sends a request for loading the current page of the page corresponding to the keywords are linked Africa; non-key corresponding to the link for the page corresponding to a link other than the link key ; page instructing the loading module is further adapted to receive a link sent by the server in the corresponding compressed page indicating decompression module decompresses the compressed page, load the page in a compressed page.
13.一种实现浏览器中页面加载的系统,该系统包括: 如权利要求1至8任一所述的服务器,以及如权利要求9至12任一所述的客户端。 13. A system for implementing a browser page loads, the system comprising: a server according to any one of claims 1 to 8, and as claimed in the client 9-1 according to any of claims 12.
14.一种实现浏览器中页面加载的方法,该方法包括: 在接收到客户端发送的加载原始页面的请求后,向发送给客户端的原始页面中注入正文加载脚本,所述原始页面为初始访问网站时所浏览的页面; 从客户端当前浏览的页面中解析出用于表示页面间正文的相互关系的关键字,提取关键字对应的链接,从网站下载所述链接对应的页面,提取下载的页面中正文,存储提取的正文; 当接收到客户端发送的加载关键字对应的链接的请求后,将提取的正文发送给客户端,使客户端通过正文加载脚本将该正文添加到当前浏览的页面的正文中。 14. A method of loading the browser page implementation, the method comprising: upon receiving a request to load the original page sent by the client, the injection body to the original page load the script sent to the client, the original page is the initial when accessing the web site pages viewed; parsed from the client current page in the relationship between the keywords used to represent the body of the page, extract keywords corresponding link, the link from the Web site to download the corresponding page, to extract download text pages, storing the extracted text; link after receiving the request sent by the client to load the keyword corresponding to the extracted text to the client, so the client script by loading the text body to the current browsing the body of the page.
15.根据权利要求14所述的方法,其中, 所述方法还包括: 向发送给客户端的原始页面中注入内存释放脚本,以使客户端在接收到加载关键字对应的链接的指令后,判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。 15. The method according to claim 14, wherein said method further comprises: injecting the memory release sent to the client script to the original page, so that the client receiving the link load instruction corresponding to the keyword, determines share the current page memory exceeds a preset threshold, if exceeded, the body of the page to browse before the release of the share of memory.
16.根据权利要求14或15所述的方法,其中, 所述方法还包括: 向发送给客户端的原始页面中注入阅读标签功能脚本和/或页面选择功能脚本,以使客户端在当前浏览的页面中添加阅读标签功能键和/或选择页面功能键。 16. The method of claim 14 or claim 15, wherein said method further comprises: injecting into the original page to the client's script function to read labels and / or script select page, so that the current client browser read the label to add a page function keys and / or function keys to select the page.
17.根据权利要求14或15所述的方法,其中, 所述提取下载的页面中正文进一步包括: 根据页面所属网站中页面结构从下载的页面中提取正文。 17. The method of claim 14 or claim 15, wherein the extraction page downloaded body further comprises: extracting the text from the download page according to the page for a web site page structure.
18.根据权利要求14或15所述的方法,其中, 所述存储提取的正文进一步包括: 对提取的正文进行压缩处理,存储生成的压缩包。 18. A method of body 14 or claim 15, wherein said storing the extracted further comprising: compression process the extracted body, stores the generated compressed.
19.根据权利要求14或15所述的方法,其中, 所述方法还包括: 提取客户端当前浏览的页面中非关键字对应的链接,从网站下载所述链接对应的页面,对下载的页面进行压缩处理,生成链接对应的页面压缩包,存储该页面压缩包,所述非关键字对应的链接为除关键字对应的链接之外的链接; 当接收到客户端发送的加载当前浏览的页面中非关键字对应的链接的请求后,将该请求中链接对应的页面压缩包发送给客户端。 14 or 19. The method of claim 15, wherein the method further comprises: extracting keywords corresponding client page links to Central Africa browsing, downloading from the Web site link to the corresponding page, the page for downloading compression processing to generate compressed page corresponding to the link, stores the compressed page, corresponding to the non-keyword other than the keyword link as a link corresponding to the link; Upon receiving the currently viewed page load sent by the client after the Central African request link corresponding to the keyword, the page corresponding to a link request packet is sent to the client compression.
20.根据权利要求19所述的方法,其中, 所述方法还包括: 以发送给客户端的页面压缩包中页面为客户端当前浏览的页面,将该当前浏览的页面所包含的非关键字对应的链接与已存储的页面压缩包对应的链接比较,根据比较结果更新存储的页面压缩包。 20. The method according to claim 19, wherein said method further comprising: sending a page to the client packet compression page page currently browsing client, the non-keyword included in the current page corresponding to link compressed and stored page links to compare packages corresponding archive store based on the comparison update page.
21.根据权利要求20所述的方法,其中, 所述根据比较结果更新存储的页面压缩包进一步包括: 对于没有被该当前浏览的页面所包含的链接,将该链接对应的页面压缩包删除;对于该当前浏览的页面中所包含的、且对应的页面压缩包没有被存储的非关键字对应的链接,从网站下载该链接对应的页面,对下载的页面进行压缩处理,生成该链接对应的页面压缩包,存储该页面压缩包。 21. The method of claim 20, wherein, according to said comparison result update the stored compressed page further comprises: for the current link are not included in the browser page, the page corresponding to the link packet deleting compressed; for the current page contained, and the corresponding page archive no non-key corresponding link is stored, the download link to the corresponding page from the website, to download the page compression process, generates the corresponding link page archive, store the archive page.
CN 201310020113 2013-01-18 2013-01-18 Implement server, client, system and method for browser page load CN103116609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310020113 CN103116609B (en) 2013-01-18 2013-01-18 Implement server, client, system and method for browser page load

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310020113 CN103116609B (en) 2013-01-18 2013-01-18 Implement server, client, system and method for browser page load

Publications (2)

Publication Number Publication Date
CN103116609A true CN103116609A (en) 2013-05-22
CN103116609B true CN103116609B (en) 2015-11-25

Family

ID=48414983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310020113 CN103116609B (en) 2013-01-18 2013-01-18 Implement server, client, system and method for browser page load

Country Status (1)

Country Link
CN (1) CN103116609B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7747749B1 (en) * 2006-05-05 2010-06-29 Google Inc. Systems and methods of efficiently preloading documents to client devices
US8103742B1 (en) * 2003-11-24 2012-01-24 Amazon Technologies, Inc. Deferred and off-loaded rendering of selected portions of web pages to incorporate late-arriving service data
CN102646135A (en) * 2012-03-31 2012-08-22 奇智软件(北京)有限公司 Webpage collecting method, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8103742B1 (en) * 2003-11-24 2012-01-24 Amazon Technologies, Inc. Deferred and off-loaded rendering of selected portions of web pages to incorporate late-arriving service data
US7747749B1 (en) * 2006-05-05 2010-06-29 Google Inc. Systems and methods of efficiently preloading documents to client devices
CN102646135A (en) * 2012-03-31 2012-08-22 奇智软件(北京)有限公司 Webpage collecting method, device and system

Also Published As

Publication number Publication date Type
CN103116609A (en) 2013-05-22 application

Similar Documents

Publication Publication Date Title
Souders High-performance web sites
US7389330B2 (en) System and method for pre-fetching content in a proxy architecture
US7016963B1 (en) Content management and transformation system for digital content
US7752258B2 (en) Dynamic content assembly on edge-of-network servers in a content delivery network
US6886046B2 (en) Methods and apparatus for extendible information aggregation and presentation
US6446111B1 (en) Method and apparatus for client-server communication using a limited capability client over a low-speed communications link
US20070271498A1 (en) System and method for bookmarking and tagging a content item
US20050256933A1 (en) Client-side callbacks to server events
US20090144753A1 (en) Method And System For Providing Update Content In A Markup Language-Based Resource
US20060294396A1 (en) Multiplatform synchronized data access from mobile devices of dynamically aggregated content
US7500188B1 (en) System and method for adapting information content for an electronic device
US20110178973A1 (en) Web Content Rewriting, Including Responses
US8224308B1 (en) Mobile device catalog registration based on user agents and customer snapshots of capabilities
US20040268249A1 (en) Document transformation
US20130080420A1 (en) Historical browsing session management
US20130080421A1 (en) Historical browsing session management
US20130080576A1 (en) Historical browsing session management
US7818506B1 (en) Method and system for cache management
US20080201332A1 (en) System and method for preloading content on the basis of user context
US7043525B2 (en) Techniques for updating live objects at clients using a dynamic routing network
US20130232234A1 (en) Dynamically rehosting web content
US20060248166A1 (en) System and method for client side rendering of a web page
US7072984B1 (en) System and method for accessing customized information over the internet using a browser for a plurality of electronic devices
US20090217145A1 (en) Methods and devices for post processing rendered web pages and handling requests of post processed web pages
US20070136477A1 (en) HTTP header intermediary for enabling session-based dynamic site searches

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model