CN103116609B - Realize server, client, system and method that in browser, the page loads - Google Patents
Realize server, client, system and method that in browser, the page loads Download PDFInfo
- Publication number
- CN103116609B CN103116609B CN201310020113.3A CN201310020113A CN103116609B CN 103116609 B CN103116609 B CN 103116609B CN 201310020113 A CN201310020113 A CN 201310020113A CN 103116609 B CN103116609 B CN 103116609B
- Authority
- CN
- China
- Prior art keywords
- page
- client
- link
- text
- keyword
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000013515 script Methods 0.000 claims abstract description 88
- 239000000284 extract Substances 0.000 claims abstract description 24
- 238000004891 communication Methods 0.000 claims abstract description 15
- 238000000605 extraction Methods 0.000 claims abstract description 14
- 238000002347 injection Methods 0.000 claims abstract description 14
- 239000007924 injection Substances 0.000 claims abstract description 14
- 230000006835 compression Effects 0.000 claims description 105
- 238000007906 compression Methods 0.000 claims description 105
- 230000006870 function Effects 0.000 claims description 51
- 230000006837 decompression Effects 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 18
- 230000009286 beneficial effect Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 7
- 239000000243 solution Substances 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000000717 retained effect Effects 0.000 description 2
- 238000000429 assembly Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
本发明涉及网络数据通信领域,公开了实现浏览器中页面加载的服务器、客户端、系统和方法,该服务器包括:脚本注入模块,适于在接收到客户端发送的加载原始页面的请求后,向发送给客户端的原始页面中注入正文加载脚本;正文提取模块,适于从客户端当前浏览的页面中解析出用于表示页面间正文的相互关系的关键字,提取关键字对应的链接,从网站下载所述链接对应的页面,提取下载的页面中正文,将提取的正文存储到存储模块中;存储模块,适于存储提取的正文;通信模块,适于接收客户端发送的加载关键字对应的链接的页面的请求,将存储模块中存储的该链接对应的正文发送给客户端。本发明能够解决在客户端造成无用的下载流量,浪费网络流量的技术问题。
The invention relates to the field of network data communication, and discloses a server, a client, a system and a method for realizing page loading in a browser. The server includes: a script injection module, adapted to receive a request for loading an original page sent by a client, Inject the text loading script into the original page sent to the client; the text extraction module is suitable for parsing out the keywords used to represent the interrelationship between the texts of the pages from the page currently browsed by the client, extracting the links corresponding to the keywords, and extracting the links corresponding to the keywords from The website downloads the page corresponding to the link, extracts the text in the downloaded page, and stores the extracted text in the storage module; the storage module is suitable for storing the extracted text; the communication module is suitable for receiving the corresponding loading keyword sent by the client. For the request of the linked page, the text corresponding to the link stored in the storage module is sent to the client. The invention can solve the technical problem of causing useless download traffic on the client end and wasting network traffic.
Description
技术领域technical field
本发明涉及网络数据通信领域,具体涉及一种实现浏览器中页面加载的服务器、客户端、系统和方法。The invention relates to the field of network data communication, in particular to a server, a client, a system and a method for realizing page loading in a browser.
背景技术Background technique
现有技术中,根据浏览器的浏览页面中链接,对用户之后的浏览行为进行预测,对于页面中所有可能在之后被点击的链接都进行预先下载,通过将这些链接对应的页面预先下载的方式提升浏览器中页面的加载速度。但是,页面中多数链接在之后的浏览中没有被点击,因此采用现有技术虽然可以加快浏览页面的速度,但是,在客户端产生大量无用的下载流量,浪费了客户端的网络流量。In the prior art, according to the links in the browsing page of the browser, the user's subsequent browsing behavior is predicted, and all links that may be clicked on the page are pre-downloaded, and the pages corresponding to these links are pre-downloaded. Improve the loading speed of pages in the browser. However, most of the links in the page are not clicked in the subsequent browsing, so although the speed of browsing the page can be accelerated by using the existing technology, a large amount of useless download traffic is generated at the client, wasting the network traffic of the client.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的实现浏览器中页面加载的服务器、客户端、系统和方法。In view of the above problems, the present invention is proposed to provide a server, client, system and method for implementing page loading in a browser which overcome the above problems or at least partially solve the above problems.
依据本发明的一个方面,提供了一种实现浏览器中页面加载的服务器,该服务器包括:According to one aspect of the present invention, a server for implementing page loading in a browser is provided, and the server includes:
脚本注入模块,适于在接收到客户端发送的加载原始页面的请求后,向发送给客户端的原始页面中注入正文加载脚本,所述原始页面为初始访问网站时所浏览的页面;The script injection module is suitable for injecting a text loading script into the original page sent to the client after receiving the request for loading the original page sent by the client, and the original page is the page browsed when initially visiting the website;
正文提取模块,适于从客户端当前浏览的页面中解析出用于表示页面间正文的相互关系的关键字,提取关键字对应的链接,从网站下载所述链接对应的页面,提取下载的页面中正文,将提取的正文存储到存储模块中;The text extraction module is adapted to parse out the keywords used to represent the interrelationship between the texts of the pages from the page currently browsed by the client, extract the links corresponding to the keywords, download the pages corresponding to the links from the website, and extract the downloaded pages In the text, store the extracted text in the storage module;
存储模块,适于存储提取的正文;a storage module adapted to store the extracted text;
通信模块,适于接收客户端发送的加载关键字对应的链接的页面的请求,将存储模块中存储的该链接对应的正文发送给客户端,使客户端通过正文加载脚本将该正文添加到当前浏览的页面的正文中。The communication module is suitable for receiving the request sent by the client to load the page corresponding to the link of the keyword, and sending the text corresponding to the link stored in the storage module to the client, so that the client can add the text to the current page through the text loading script. In the body of the viewed page.
可选地,所述脚本注入模块,还适于向发送给客户端的原始页面中注入内存释放脚本,以使客户端在接收到加载关键字对应的链接的指令后,判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。Optionally, the script injection module is also suitable for injecting a memory release script into the original page sent to the client, so that the client can determine the current page occupied by the page after receiving the instruction to load the link corresponding to the keyword. Whether the memory exceeds the preset threshold, and if so, release the memory occupied by the previously browsed text on the page.
可选地,所述脚本注入模块,还适于向发送给客户端的原始页面中注入阅读标签功能脚本和/或页面选择功能脚本,以使客户端在当前浏览的页面中添加阅读标签功能键和/或选择页面功能键。Optionally, the script injection module is also adapted to inject the reading tag function script and/or page selection function script into the original page sent to the client, so that the client adds the reading tag function key and /or select page function key.
可选地,所述正文提取模块,进一步适于根据页面所属网站中页面结构从下载的页面中提取正文。Optionally, the text extraction module is further adapted to extract the text from the downloaded page according to the page structure of the website to which the page belongs.
可选地,所述正文提取模块,进一步适于对提取的正文进行压缩处理,将生成的压缩包存储到存储模块中。Optionally, the text extraction module is further adapted to compress the extracted text, and store the generated compressed package in the storage module.
可选地,所述服务器还包括:Optionally, the server also includes:
页面预加载模块,适于提取客户端当前浏览的页面中非关键字对应的链接,从网站下载所述链接对应的页面,对下载的页面进行压缩处理,生成链接对应的页面压缩包,将该页面压缩包存储到存储模块,所述非关键字对应的链接为页面中除关键字对应的链接之外的链接;The page preloading module is suitable for extracting links corresponding to non-keywords in the page currently browsed by the client, downloading the page corresponding to the link from the website, compressing the downloaded page, generating a page compression package corresponding to the link, and The page compression package is stored in the storage module, and the links corresponding to the non-keywords are links other than the links corresponding to the keywords in the page;
所述存储模块,还适于存储页面压缩包;The storage module is also suitable for storing page compression packages;
所述通信模块,还适于接收客户端发送的加载当前浏览的页面中非关键字对应的链接的请求,将存储模块中该请求中链接对应的页面压缩包发送给客户端。The communication module is further adapted to receive a request from the client to load a link corresponding to a non-keyword in the currently browsed page, and send the page compression package corresponding to the link in the request in the storage module to the client.
可选地,所述服务器还包括:Optionally, the server also includes:
存储更新模块,适于以发送给客户端的页面压缩包中页面为客户端当前浏览的页面,将该当前浏览的页面所包含的非关键字对应的链接与已存储的页面压缩包对应的链接比较,根据比较结果更新存储的页面压缩包。The storage update module is adapted to use the page in the page compression package sent to the client as the page currently browsed by the client, and compare the links corresponding to the non-keywords contained in the currently browsed page with the links corresponding to the stored page compression package , and update the stored page compression package according to the comparison result.
可选地,所述存储更新模块,进一步适于对于没有被该当前浏览的页面所包含的链接,将该链接对应的页面压缩包从存储模块中删除;对于该当前浏览的页面中所包含的、且对应的页面压缩包没有被存储的非关键字对应的链接,从网站下载该链接对应的页面,对下载的页面进行压缩处理,生成该链接对应的页面压缩包,将该页面压缩包存储到存储模块中。Optionally, the storage update module is further adapted to delete the page compression package corresponding to the link from the storage module for a link that is not included in the currently browsed page; , and the corresponding page compression package does not have a link corresponding to a non-keyword stored, download the page corresponding to the link from the website, compress the downloaded page, generate a page compression package corresponding to the link, and store the page compression package into the storage module.
根据本发明的一个方面,提供了一种实现浏览器中页面加载的客户端,该客户端包括:According to one aspect of the present invention, a client for implementing page loading in a browser is provided, the client includes:
请求发送模块,适于在接收到加载原始网页的指令后,向服务器发送加载原始页面的请求,所述原始页面为初始访问网站时所浏览的页面,以及在接收到加载关键字对应的链接指令后,向服务器发送加载关键字对应的链接的页面的请求;The request sending module is adapted to send to the server a request to load the original page after receiving the instruction to load the original web page, the original page being the page browsed when initially visiting the website, and after receiving the link instruction corresponding to the loading keyword After that, send a request to the server to load the linked page corresponding to the keyword;
页面加载模块,适于接收服务器发送的注入有正文加载脚本的原始页面,加载该原始页面,以及接收服务器发送的关键字对应的链接的页面中正文,通过正文加载脚本将该正文添加到当前浏览的页面的正文中。The page loading module is adapted to receive the original page sent by the server and injected with the text loading script, load the original page, and receive the text in the page of the link corresponding to the keyword sent by the server, and add the text to the current browser through the text loading script in the body of the page.
可选地,所述原始页面中还注入有内存释放脚本;Optionally, a memory release script is also injected into the original page;
所述页面加载模块,还适于在接收到加载关键字对应的链接的页面的指令后,通过内存释放脚本判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。The page loading module is also adapted to judge whether the memory occupied by the currently browsed page exceeds the preset threshold through the memory release script after receiving the instruction to load the linked page corresponding to the keyword, and if so, release the page The memory occupied by the previously browsed text in .
可选地,所述原始页面中还注入有阅读标签功能脚本和/或页面选择功能脚本,Optionally, the original page is also injected with a reading tag function script and/or a page selection function script,
所述页面加载模块,还适于通过阅读标签功能脚本和/或页面选择功能脚本,在当前浏览的页面中添加阅读标签功能键和/或选择页面功能键。The page loading module is further adapted to add a tag reading function key and/or a page selection function key to the currently browsed page through the tag reading function script and/or the page selection function script.
可选地,所述客户端还包括:解压模块,适于对页面压缩包进行解压缩;Optionally, the client further includes: a decompression module, adapted to decompress the page compression package;
所述请求发送模块,还适于在接收到加载非关键字对应的链接的指令后,向服务器发送加载当前浏览的页面中非关键字对应的链接的页面的请求;所述非关键字对应的链接为页面中除关键字对应的链接之外的链接;The request sending module is further adapted to send to the server a request for loading a page of a link corresponding to a non-keyword in the currently browsed page after receiving an instruction to load a link corresponding to a non-keyword; the link corresponding to the non-keyword The link is a link other than the link corresponding to the keyword in the page;
所述页面加载模块,还适于接收服务器发送的指令中链接对应的页面压缩包,指示解压模块将该页面压缩包解压缩,加载该页面压缩包中页面。The page loading module is further adapted to receive the page compression package corresponding to the link in the instruction sent by the server, instruct the decompression module to decompress the page compression package, and load the page in the page compression package.
根据本发明的另一个方面,提供了一种实现浏览器中页面加载的系统,该系统包括所述的服务器,以及所述的客户端。According to another aspect of the present invention, a system for implementing page loading in a browser is provided, and the system includes the server and the client.
根据本发明的另一个方面,提供了一种实现浏览器中页面加载的方法,该方法包括:According to another aspect of the present invention, a method for implementing page loading in a browser is provided, the method comprising:
在接收到客户端发送的加载原始页面的请求后,向发送给客户端的原始页面中注入正文加载脚本,所述原始页面为初始访问网站时所浏览的页面;After receiving the request to load the original page sent by the client, inject the text loading script into the original page sent to the client, and the original page is the page browsed when initially visiting the website;
从客户端当前浏览的页面中解析出用于表示页面间正文的相互关系的关键字,提取关键字对应的链接,从网站下载所述链接对应的页面,提取下载的页面中正文,存储提取的正文;Analyze the keywords used to represent the interrelationship between the texts of the pages from the page currently browsed by the client, extract the links corresponding to the keywords, download the pages corresponding to the links from the website, extract the text in the downloaded pages, and store the extracted text;
当接收到客户端发送的加载关键字对应的链接的请求后,将提取的正文发送给客户端,使客户端通过正文加载脚本将该正文添加到当前浏览的页面的正文中。After receiving the request from the client to load the link corresponding to the keyword, the extracted text is sent to the client, so that the client adds the text to the text of the currently browsed page through the text loading script.
可选地,所述方法还包括:Optionally, the method also includes:
向发送给客户端的原始页面中注入内存释放脚本,以使客户端在接收到加载关键字对应的链接的指令后,判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。Inject a memory release script into the original page sent to the client, so that the client can determine whether the memory occupied by the currently browsed page exceeds the preset threshold after receiving the instruction to load the link corresponding to the keyword, and if so, release it The memory occupied by the previously browsed text in this page.
可选地,所述方法还包括:Optionally, the method also includes:
向发送给客户端的原始页面中注入阅读标签功能脚本和/或页面选择功能脚本,以使客户端在当前浏览的页面中添加阅读标签功能键和/或选择页面功能键。Injecting the reading tag function script and/or page selection function script into the original page sent to the client, so that the client adds the reading tag function key and/or page selection function key to the currently browsed page.
可选地,所述提取下载的页面中正文进一步包括:Optionally, said extracting the text from the downloaded page further includes:
根据页面所属网站中页面结构从下载的页面中提取正文。Extract the text from the downloaded page according to the page structure in the website to which the page belongs.
可选地,所述存储提取的正文进一步包括:Optionally, the stored extracted text further includes:
对提取的正文进行压缩处理,存储生成的压缩包。Compress the extracted text and store the generated compressed package.
可选地,所述方法还包括:Optionally, the method also includes:
提取客户端当前浏览的页面中非关键字对应的链接,从网站下载所述链接对应的页面,对下载的页面进行压缩处理,生成链接对应的页面压缩包,存储该页面压缩包,所述非关键字对应的链接为除关键字对应的链接之外的链接;Extract the link corresponding to the non-keyword in the page currently browsed by the client, download the page corresponding to the link from the website, compress the downloaded page, generate a page compression package corresponding to the link, store the page compression package, and the non-keyword The link corresponding to the keyword is a link other than the link corresponding to the keyword;
当接收到客户端发送的加载当前浏览的页面中非关键字对应的链接的请求后,将该请求中链接对应的页面压缩包发送给客户端。After receiving the request from the client to load the link corresponding to the non-keyword in the currently browsed page, send the page compression package corresponding to the link in the request to the client.
可选地,所述方法还包括:Optionally, the method also includes:
以发送给客户端的页面压缩包中页面为客户端当前浏览的页面,将该当前浏览的页面所包含的非关键字对应的链接与已存储的页面压缩包对应的链接比较,根据比较结果更新存储的页面压缩包。Take the page in the page compression package sent to the client as the page currently browsed by the client, compare the links corresponding to the non-keywords contained in the currently browsed page with the links corresponding to the stored page compression package, and update the storage according to the comparison result The page compression package.
可选地,所述根据比较结果更新存储的页面压缩包进一步包括:Optionally, said updating the stored page compression package according to the comparison result further includes:
对于没有被该当前浏览的页面所包含的链接,将该链接对应的页面压缩包删除;For links that are not included in the currently browsed page, delete the page compression package corresponding to the link;
对于该当前浏览的页面中所包含的、且对应的页面压缩包没有被存储的非关键字对应的链接,从网站下载该链接对应的页面,对下载的页面进行压缩处理,生成该链接对应的页面压缩包,存储该页面压缩包。For the non-keyword-corresponding link contained in the currently browsed page and the corresponding page compression package is not stored, download the page corresponding to the link from the website, compress the downloaded page, and generate the link corresponding to the link. The page compression package stores the page compression package.
根据本发明的技术方案,在接收到客户端发送的加载原始页面的请求后,向发送给客户端的原始页面中注入正文加载脚本,从客户端当前浏览的页面中解析出用于表示页面间正文的相互关系的关键字,提取关键字对应的链接,从网站下载所述链接对应的页面,提取下载的页面中正文,存储提取的正文;当接收到客户端发送的加载关键字对应的链接的请求后,将提取的正文发送给客户端,使客户端通过正文加载脚本将该正文添加到当前浏览的页面的正文中。According to the technical solution of the present invention, after receiving the request to load the original page sent by the client, the text loading script is injected into the original page sent to the client, and the text used to represent the inter-page text is parsed from the page currently browsed by the client. The keywords of the mutual relationship, extract the link corresponding to the keyword, download the page corresponding to the link from the website, extract the text of the downloaded page, and store the extracted text; when receiving the link sent by the client to load the link corresponding to the keyword After the request, send the extracted text to the client, so that the client can add the text to the text of the currently browsed page through the text loading script.
采用本发明中技术方案,对于关键字连接对应的页面,仅提取其中正文,将正文下发给客户端,通过在原始页面中注入正文加载脚本的方式,使客户端将该正文添加到当前浏览的页面中。由于下发的正文已经预先提取,因此可以提高浏览页面的速度,同时下发内容仅为正文内容,减少了下发的数据量,减少客户端浏览网页所用网络流量。由此解决了在客户端造成大量无用的下载流量,浪费网络流量的问题,取得了既能够加快客户端中浏览速度又能够节约客户端的网络流量的有益效果。Adopting the technical solution in the present invention, for the page corresponding to the keyword link, only the text is extracted, and the text is sent to the client, and by injecting the text loading script into the original page, the client can add the text to the current browser. in the page. Since the delivered text has been pre-extracted, the speed of browsing pages can be improved. At the same time, the delivered content is only the text content, which reduces the amount of delivered data and reduces the network traffic used by the client to browse the web. This solves the problem of causing a large amount of useless download traffic and wasting network traffic on the client, and achieves the beneficial effect of not only speeding up the browsing speed in the client, but also saving the network traffic of the client.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:
图1示出了根据本发明一个实施例的实现浏览器中页面加载的服务器的结构图;Fig. 1 shows a structural diagram of a server implementing page loading in a browser according to an embodiment of the present invention;
图2示出了根据本发明一个实施例的客户端预浏览的三个相关网页的示意图;Fig. 2 shows a schematic diagram of three related webpages pre-browsed by the client according to an embodiment of the present invention;
图3示出了根据本发明一个实施例的客户端中完成正文添加后的完整页面的示意图;FIG. 3 shows a schematic diagram of a complete page after adding text in the client according to an embodiment of the present invention;
图4示出了根据本发明一个实施例的实现浏览器中页面加载的服务器的结构图;FIG. 4 shows a structural diagram of a server implementing page loading in a browser according to an embodiment of the present invention;
图5示出了根据本发明一个实施例的客户端当前浏览的页面的示意图;Fig. 5 shows a schematic diagram of a page currently browsed by a client according to an embodiment of the present invention;
图6示出了根据本发明一个实施例的实现浏览器中页面加载的服务器的结构图;FIG. 6 shows a structural diagram of a server implementing page loading in a browser according to an embodiment of the present invention;
图7示出了根据本发明一个实施例的客户端链接点击后更新的页面的示意图;FIG. 7 shows a schematic diagram of a page updated after a client link is clicked according to an embodiment of the present invention;
图8示出了根据本发明一个实施例的实现浏览器中页面加载的客户端的结构图;FIG. 8 shows a structural diagram of a client implementing page loading in a browser according to an embodiment of the present invention;
图9示出了根据本发明一个实施例的实现浏览器中页面加载的客户端的结构图;Fig. 9 shows a structural diagram of a client implementing page loading in a browser according to an embodiment of the present invention;
图10示出了根据本发明一个实施例的实现浏览器中页面加载的系统的结构图;FIG. 10 shows a structural diagram of a system for implementing page loading in a browser according to an embodiment of the present invention;
图11示出了根据本发明一个实施例的实现浏览器中页面加载的方法的流程图;以及FIG. 11 shows a flow chart of a method for implementing page loading in a browser according to an embodiment of the present invention; and
图12示出了根据本发明一个实施例的对于页面中非关键字对应的链接处理的方法的流程图。Fig. 12 shows a flowchart of a method for processing links corresponding to non-keywords in a page according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
参见图1,示出了根据本发明一个实施例的实现浏览器中页面加载的服务器的结构图。服务器100包括:脚本注入模块110、正文提取模块120、存储模块140和通信模块130。Referring to FIG. 1 , it shows a structural diagram of a server implementing page loading in a browser according to an embodiment of the present invention. The server 100 includes: a script injection module 110 , a text extraction module 120 , a storage module 140 and a communication module 130 .
脚本注入模块110,适于在接收到客户端200发送的加载原始页面的请求后,向发送给客户端200的原始页面中注入正文加载脚本。所述原始页面为初始访问网站时所浏览的页面。The script injection module 110 is adapted to inject a text loading script into the original page sent to the client 200 after receiving the request for loading the original page sent by the client 200 . The original page is the page browsed when initially visiting the website.
正文提取模块120,适于从客户端200当前浏览的页面中解析出用于表示页面间正文的相互关系的关键字,提取关键字对应的链接,从网站下载该链接对应的页面,提取下载的页面中正文,将提取的正文存储到存储模块140中。The text extracting module 120 is adapted to analyze the keywords used to represent the interrelationship between the texts of the pages from the pages currently browsed by the client 200, extract the links corresponding to the keywords, download the pages corresponding to the links from the website, and extract the downloaded links. The text in the page, and store the extracted text in the storage module 140.
存储模块140,适于存储提取的正文。The storage module 140 is adapted to store the extracted text.
通信模块130,适于接收客户端200发送的加载关键字对应的链接的页面的请求,将存储模块140中存储的该链接对应的正文发送给客户端200,使客户端200通过正文加载脚本将该正文添加到当前浏览的页面的正文中。The communication module 130 is adapted to receive the request sent by the client 200 to load the page corresponding to the link of the keyword, and send the text corresponding to the link stored in the storage module 140 to the client 200, so that the client 200 loads the script through the text. The body is added to the body of the currently viewed page.
为进一步节约网络流量,正文提取模块120可以对提取的正文进行压缩处理,将生成的压缩包存储到存储模块140中。通信模块130在接收到客户端200发送的加载关键字对应的链接的页面的请求后,将存储模块140中存储的该链接对应的正文的压缩包发送给客户端200。In order to further save network traffic, the text extraction module 120 may perform compression processing on the extracted text, and store the generated compressed package in the storage module 140 . After receiving the request from the client 200 to load the linked page corresponding to the keyword, the communication module 130 sends the compressed package of the text corresponding to the link stored in the storage module 140 to the client 200 .
图2示出了根据本发明一个实施例的客户端预浏览的三个相关网页的示意图。图2中三个网页为一篇文章的第1页、第2页、第3页,三页中正文内容合并为一篇完整的文章。图2中方框所框部分为关键字。Fig. 2 shows a schematic diagram of three related webpages pre-browsed by a client according to an embodiment of the present invention. The three webpages in Figure 2 are page 1, page 2, and page 3 of an article, and the content of the text on the three pages is combined into a complete article. The part framed by the box in Figure 2 is a keyword.
关键字用于表示页面间正文的相互关系,例如,关键字可以为“上一页”、“下一页”、“第X页”等。图2中标出的关键字仅为示例性说明,本发明中关键字不限于此。Keywords are used to represent the interrelationship of text between pages, for example, keywords can be "previous page", "next page", "page X" and so on. The keywords marked in FIG. 2 are only exemplary descriptions, and the keywords in the present invention are not limited thereto.
首先,脚本注入模块110在接收到客户端200发送的加载原始页面,即第1页,的请求后,向发送给客户端200的原始页面中注入正文加载脚本。客户端200可以通过该正文加载脚本将接收的正文添加到当前浏览的页面的正文中。First, the script injection module 110 injects a text loading script into the original page sent to the client 200 after receiving the request to load the original page, ie, the first page, sent by the client 200 . The client 200 can add the received text to the text of the currently browsed page through the text loading script.
正文提取模块120对于客户端200当前浏览的第1页中关键字“下一页”对应的链接,从网站中下载该链接对应的页面,提取该链接对应的页面中正文,即第2页中正文。具体地,正文提取模块120通过在第2页的html中查询,发现第三个<div>标签对<divclass=”w1Text”>…</div>中具有“Text”,则确定第三个<div>标签对中包含的为正文,提取该正文。For the link corresponding to the keyword "next page" in the first page currently browsed by the client 200, the text extraction module 120 downloads the page corresponding to the link from the website, and extracts the text of the page corresponding to the link, that is, the text in the second page. text. Specifically, the text extraction module 120 finds "Text" in the third <div> tag pair <divclass="w1Text">...</div> by querying the html of the second page, then determines the third < The content contained in the div> tag pair is the text, and the text is extracted.
当完成第1页浏览后,向下滑动页面,客户端200接收到加载当前浏览的页面中关键字“下一页”对应链接的页面的指令,发送加载关键字“下一页”对应的链接的页面的请求。通信模块130接收请求,将链接“下一页”,即第2页,对应的页面中正文发送给客户端200。客户端200通过正文加载脚本将正文添加到当前浏览的页面的正文中。并且,客户端200接收到第2页正文后,自动将“下一页”对应链接中页码加1,使得“下一页”对应第3页。当完成第2页浏览后,向下滑动,客户端200从服务器100获得第3页中正文,通过正文加载脚本将第3页中正文添加到当前浏览的页面的正文中。客户端200中完成正文添加后完整页面如图3所示。After browsing the first page, slide down the page, the client 200 receives an instruction to load the page corresponding to the keyword "next page" in the currently browsed page, and sends a link to load the link corresponding to the keyword "next page" page requests. The communication module 130 receives the request, and sends the link "next page", that is, the second page, and the text in the corresponding page to the client 200 . The client 200 adds the text to the text of the currently browsed page through the text loading script. Moreover, after receiving the text of the second page, the client 200 automatically adds 1 to the page number in the link corresponding to the "next page", so that the "next page" corresponds to the third page. After browsing the second page, slide down, the client 200 obtains the text in the third page from the server 100, and adds the text in the third page to the text of the currently browsed page through the text loading script. The complete page after the text is added in the client 200 is shown in FIG. 3 .
进一步,正文提取模块120根据页面所属网站中页面结构从下载的页面中提取正文。以图2所示的三个页面为例,经分析可知,三个页面的html中都包含“Text”,并且三个页面中包括“上一页”或“下一页”。由此可以确定,三个页面间具有关联,并且都包含有正文。如上所述,正文提取模块120通过在页面的html中查询,发现第三个<div>标签对<divclass=”w1Text”>…</div>中具有“Text”,则确定第三个<div>标签对中包含的为正文,提取该正文。Further, the text extracting module 120 extracts text from the downloaded page according to the page structure of the website to which the page belongs. Taking the three pages shown in FIG. 2 as an example, it can be seen through analysis that the html of the three pages all contain "Text", and the three pages include "previous page" or "next page". From this, it can be determined that the three pages are related and all contain text. As mentioned above, the text extraction module 120 finds "Text" in the third <div> tag pair <divclass="w1Text">...</div> by querying the html of the page, then determines the third <div > Included in the tag pair is the text, extract the text.
进一步地,脚本注入模块110,还适于向发送给客户端200的原始页面中注入内存释放脚本,以使客户端200在接收到加载关键字对应的链接的指令后,判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。Further, the script injection module 110 is also suitable for injecting a memory release script into the original page sent to the client 200, so that the client 200 can determine the location of the currently browsed page after receiving the instruction to load the link corresponding to the keyword. Check whether the memory occupied exceeds the preset threshold, and if so, release the memory occupied by the previously browsed text on the page.
例如,内存释放脚本中内容为:For example, the content in the memory release script is:
parent.removeChild(e);parent. removeChild(e);
e=null;e=null;
deleteedeletee
当完成第2页浏览后,向下滑动页面,客户端200接收到加载关键字“下一页”对应链接的页面的指令。客户端200判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放第1页和/或第2页中正文所占内存。After browsing the second page, slide down the page, and the client 200 receives an instruction to load the page linked to the keyword "next page". The client 200 determines whether the memory occupied by the currently browsed page exceeds a preset threshold, and if so, releases the memory occupied by the text in the first page and/or the second page.
由上可见,通过向发送给客户端的原始页面中注入内存释放脚本,解决由于添加的正文过多导致内存溢出的问题,取得了防止内存溢出的有益效果。It can be seen from the above that by injecting the memory release script into the original page sent to the client, the problem of memory overflow caused by too many texts added has been solved, and the beneficial effect of preventing memory overflow has been achieved.
进一步地,脚本注入模块110,还适于向发送给客户端200的原始页面中注入阅读标签功能脚本和/或页面选择功能脚本,以使客户端200在当前浏览的页面中添加阅读标签功能键和/或选择页面功能键。Further, the script injection module 110 is also adapted to inject the reading tag function script and/or page selection function script into the original page sent to the client 200, so that the client 200 adds the reading tag function key to the currently browsed page and/or select page function keys.
在此,通过向原始页面中注入功能脚本的方式,可以在客户端200的页面中添加功能键,由此达到扩展页面中功能的有益效果。Here, by injecting the function script into the original page, a function key can be added to the page of the client 200, thereby achieving the beneficial effect of extending the function in the page.
参见图4,示出了根据本发明一个实施例的实现浏览器中页面加载的服务器的结构图。该实施例中服务器100除了包括脚本注入模块110、正文提取模块120、存储模块140和通信模块130外,还包括页面预加载模块150。Referring to FIG. 4 , it shows a structural diagram of a server implementing page loading in a browser according to an embodiment of the present invention. In this embodiment, the server 100 includes a page preloading module 150 in addition to a script injection module 110 , a text extraction module 120 , a storage module 140 and a communication module 130 .
页面预加载模块150,适于提取客户端200当前浏览的页面中非关键字对应的链接,从网站下载该链接对应的页面,对下载的页面进行压缩处理,生成链接对应的页面压缩包,将该页面压缩包存储到存储模块140。The page preloading module 150 is adapted to extract the link corresponding to the non-keyword in the page currently browsed by the client 200, download the page corresponding to the link from the website, compress the downloaded page, generate a page compression package corresponding to the link, and The page compression package is stored in the storage module 140 .
所述非关键字对应的链接为页面中除关键字对应的链接之外的链接;The link corresponding to the non-keyword is a link other than the link corresponding to the keyword in the page;
存储模块140,还适于存储页面压缩包。The storage module 140 is also suitable for storing page compression packages.
通信模块130,还适于接收客户端200发送的加载当前浏览的页面中非关键字对应的链接的请求,将存储模块140中该请求中链接对应的页面压缩包发送给客户端200。The communication module 130 is further adapted to receive the request sent by the client 200 to load the link corresponding to the non-keyword in the currently browsed page, and send the page compression package corresponding to the link in the request in the storage module 140 to the client 200 .
参见图5,示出了根据本发明一个实施例的客户端当前浏览的页面的示意图。以图5中所示页面为例,对实施例进行举例说明。Referring to FIG. 5 , it shows a schematic diagram of a page currently browsed by a client according to an embodiment of the present invention. The embodiment is illustrated by taking the page shown in FIG. 5 as an example.
在该页面包含有链接:“登录”、“注册”、“首页”、“科技”、“IT”、“互联网”、“国际”、“上一页”等。其中,“上一页”为关键字对应的链接,其余的为非关键字对应的链接。页面预加载模块150提取该页面中所包含非关键字对应的链接。由于客户端200从服务器100获得浏览的页面,因此服务器100能够获知客户端200当前浏览的页面。页面预加载模块150从各个网站下载各个非关键字对应链接对应的页面。页面预加载模块150对下载的页面进行压缩处理,生成链接对应的页面压缩包,将页面压缩包存储到存储模块140。存储模块140可以为服务器100的内存,其中存储链接对应的页面压缩包。当页面中某个非关键字对应的链接被点击后,客户端200就会发送加载该被点击的链接的页面的请求。通信模块130接收客户端200发送的请求,并将该请求中链接对应的页面压缩包发送给客户端200。由此,客户端200获得点击的链接对应的页面压缩包,将该压缩包解压缩后在客户端200显示该页面。This page contains links: "Login", "Register", "Home", "Technology", "IT", "Internet", "International", "Previous Page" and so on. Among them, "previous page" is a link corresponding to a keyword, and the rest are links corresponding to non-keywords. The page preloading module 150 extracts links corresponding to non-keywords included in the page. Since the client 200 obtains the browsed page from the server 100, the server 100 can know the currently browsed page of the client 200. The page preloading module 150 downloads pages corresponding to links corresponding to each non-keyword from each website. The page preloading module 150 compresses the downloaded page, generates a page compression package corresponding to the link, and stores the page compression package in the storage module 140 . The storage module 140 may be the internal memory of the server 100, where the page compression package corresponding to the link is stored. When a link corresponding to a non-keyword in the page is clicked, the client 200 sends a request for loading the page of the clicked link. The communication module 130 receives the request sent by the client 200 , and sends the page compression package corresponding to the link in the request to the client 200 . Thus, the client 200 obtains the page compression package corresponding to the clicked link, and displays the page on the client 200 after decompressing the compression package.
本实施例中服务器可以为云服务器,该云服务器对各个客户端浏览的页面中链接对应的页面进行统一的下载和保存,并将该页面压缩成压缩包。当客户端中因为链接点击等原因,实际产生下载需要时,将对应的压缩包下发给客户端。由此,能够向客户端提供非关键字对应的链接的压缩数据包,提高浏览非关键字对应的链接的页面的速度,取得了既能够加快客户端中浏览速度又能够节约客户端的网络流量,减少客户端的工作负担的有益效果。In this embodiment, the server may be a cloud server, and the cloud server uniformly downloads and saves the pages corresponding to the links in the pages browsed by each client, and compresses the pages into a compressed package. When the client actually needs to download due to reasons such as link clicks, the corresponding compressed package will be sent to the client. Thus, the compressed data package of the link corresponding to the non-keyword can be provided to the client, the speed of browsing the page of the link corresponding to the non-keyword can be improved, and the browsing speed in the client can be accelerated and the network traffic of the client can be saved. An advantageous effect of reducing the workload of the client.
参见图6,示出了根据本发明一个实施例的实现浏览器中页面加载的服务器的结构图。该实施例中服务器100除了包括脚本注入模块110、正文提取模块120、存储模块140、通信模块130和页面预加载模块150外,还包括存储更新模块160。Referring to FIG. 6 , it shows a structural diagram of a server implementing page loading in a browser according to an embodiment of the present invention. In this embodiment, besides the script injection module 110 , the text extraction module 120 , the storage module 140 , the communication module 130 and the page preloading module 150 , the server 100 also includes a storage update module 160 .
存储更新模块160,适于以发送给客户端200的页面压缩包中页面为客户端200当前浏览的页面,将该当前浏览的页面所包含的非关键字对应的链接与已存储的页面压缩包对应的链接比较,根据比较结果更新存储的页面压缩包。The storage update module 160 is adapted to use the page in the compressed page package sent to the client 200 as the page currently browsed by the client 200, and combine the links corresponding to the non-keywords contained in the currently browsed page with the stored page compressed package The corresponding link is compared, and the stored page compression package is updated according to the comparison result.
进一步地,存储更新模块160对于没有被该当前浏览的页面所包含的链接,将该链接对应的页面压缩包从存储模块140中删除;对于该当前浏览的页面中所包含的、且对应的页面压缩包没有被存储的非关键字对应的链接,从网站下载该链接对应的页面,对下载的页面进行压缩处理,生成该链接对应的页面压缩包,将该页面压缩包存储到存储模块140中。Further, the storage update module 160 deletes the page compression package corresponding to the link from the storage module 140 for the link that is not included in the currently browsed page; The compressed package does not have a link corresponding to a stored non-keyword, download the page corresponding to the link from the website, compress the downloaded page, generate a page compressed package corresponding to the link, and store the page compressed package in the storage module 140 .
参见图7,示出了根据本发明一个实施例的客户端链接点击后更新的页面。以图7所示的在客户端链接点击图5中链接“国际”后更新的页面为例,进行示例性说明。该页面中包含链接:“登录”、“注册”、“首页”、“科技”、“IT”、“互联网”、“国际”,以及新闻条目链接,例如:“百度下周股价走高的4个理由”、“亚马逊称Kindlefire创纪录”等。Referring to FIG. 7 , it shows a page updated after a client link is clicked according to an embodiment of the present invention. Take the updated page shown in FIG. 7 after the client clicks on the link “International” in FIG. 5 as an example to make an exemplary description. This page contains links: "Login", "Register", "Home", "Technology", "IT", "Internet", "International", and links to news items, such as: "4 reasons why Baidu's stock price will rise next week Reason", "Amazon says Kindlefire is a record", etc.
存储更新模块160将该页面所包含的链接与已存储的页面压缩包对应的链接比较。其中,“登录”、“注册”、“首页”、“科技”、“IT”、“互联网”、“国际”被该更新后的页面所包含,且这些链接对应的页面压缩包已经被存储,所以这些链接对应的页面压缩包仍然被存储,没有变化。该更新后的页面中没有包含链接“上一页”,因此,将“上一页”对应的正文或正文压缩包从存储模块140中删除。该更新后的页面中包含的新闻条目链接对应的页面压缩包没有被存储模块140存储,因此从网站下载新闻条目链接对应的页面,对下载的页面进行压缩处理,生成该链接对应的页面压缩包,将该页面压缩包存储到存储模块140中。The storage update module 160 compares the link contained in the page with the link corresponding to the stored page compression package. Among them, "Login", "Registration", "Homepage", "Technology", "IT", "Internet" and "International" are included in the updated page, and the page compression packages corresponding to these links have been stored, Therefore, the compressed pages corresponding to these links are still stored without change. The updated page does not include the link “previous page”, therefore, the text or the compressed text package corresponding to the “previous page” is deleted from the storage module 140 . The page compression package corresponding to the news item link contained in the updated page is not stored by the storage module 140, so download the page corresponding to the news item link from the website, compress the downloaded page, and generate the page compression package corresponding to the link , and store the compressed page package in the storage module 140.
由上可见,通过在客户端中浏览的页面变化时,对应更新存储的链接对应的页面压缩包,使得已存储的页面压缩包中有用的页面压缩包被保留,仅增加变化后页面中新增链接对应的页面压缩包,因此能够进一步减少服务器端的网络流量,以及服务器进行页面压缩的工作负担。It can be seen from the above that when the page browsed in the client changes, the page compression package corresponding to the stored link is updated, so that the useful page compression package in the stored page compression package is retained, and only the new page after the change is added. The page compression package corresponding to the link can further reduce the network traffic on the server side and the workload of the server for page compression.
图8示出了根据本发明一个实施例的实现浏览器中页面加载的客户端的结构图。该客户端200包括:请求发送模块210和页面加载模块220。FIG. 8 shows a structural diagram of a client for implementing page loading in a browser according to an embodiment of the present invention. The client 200 includes: a request sending module 210 and a page loading module 220 .
请求发送模块210,适于在接收到加载原始网页的指令后,向服务器100发送加载原始页面的请求,所述原始页面为初始访问网站时所浏览的页面,以及在接收到加载关键字对应的链接指令后,向服务器100发送加载关键字对应的链接的页面的请求。The request sending module 210 is adapted to send to the server 100 a request to load the original page after receiving the instruction to load the original web page, the original page being the page browsed when the website is initially accessed, and after receiving the loading keyword corresponding After the link instruction, a request for loading the linked page corresponding to the keyword is sent to the server 100 .
页面加载模块220,适于接收服务器100发送的注入有正文加载脚本的原始页面,加载该原始页面,以及接收服务器100发送的关键字对应的链接的页面中正文,通过正文加载脚本将该正文添加到当前浏览的页面的正文中。The page loading module 220 is adapted to receive the original page sent by the server 100 and injected with a text loading script, load the original page, and receive the text in the page of the link corresponding to the keyword sent by the server 100, and add the text to the text through the text loading script to the body of the currently viewed page.
由于下发的正文已经预先提取,因此可以提高浏览页面的速度,同时下发内容仅为正文内容,减少了下发的数据量,减少客户端浏览网页所用网络流量。Since the delivered text has been pre-extracted, the speed of browsing pages can be improved. At the same time, the delivered content is only the text content, which reduces the amount of delivered data and reduces the network traffic used by the client to browse the web.
进一步地,原始页面中还注入有内存释放脚本。Furthermore, memory release scripts are also injected into the original page.
页面加载模块220,还适于在接收到加载关键字对应的链接的页面的指令后,通过内存释放脚本判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。The page loading module 220 is also adapted to judge whether the memory occupied by the currently browsed page exceeds a preset threshold through the memory release script after receiving the instruction to load the page corresponding to the keyword, and if so, release the memory in the page. The memory occupied by the previously browsed text.
通过执行原始页面中注入内存释放脚本,解决由于添加的正文过多导致内存溢出的问题,达到了防止内存溢出的有益效果。By executing the memory release script injected into the original page, the problem of memory overflow caused by too many added texts is solved, and the beneficial effect of preventing memory overflow is achieved.
进一步地,原始页面中还注入有阅读标签功能脚本和/或页面选择功能脚本。Further, the original page is also injected with a tag reading function script and/or a page selection function script.
页面加载模块220,还适于通过阅读标签功能脚本和/或页面选择功能脚本,在当前浏览的页面中添加阅读标签功能键和/或选择页面功能键。The page loading module 220 is further adapted to add a tag reading function key and/or a page selection function key to the currently browsed page by using the tag reading function script and/or the page selection function script.
通过向原始页面中注入功能脚本的方式,可以在客户端的页面中添加功能键,由此达到扩展页面中功能的有益效果。By injecting the function script into the original page, a function key can be added to the page of the client, thereby achieving the beneficial effect of extending the function of the page.
图9示出了根据本发明一个实施例的实现浏览器中页面加载的客户端的结构图。该客户端200除了包括请求发送模块210和页面加载模块220为,还包括解压模块230。FIG. 9 shows a structural diagram of a client for implementing page loading in a browser according to an embodiment of the present invention. The client 200 includes a decompression module 230 in addition to a request sending module 210 and a page loading module 220 .
解压模块230,适于对页面压缩包进行解压缩;The decompression module 230 is adapted to decompress the page compression package;
请求发送模块210,还适于在接收到加载非关键字对应的链接的指令后,向服务器100发送加载当前浏览的页面中非关键字对应的链接的页面的请求;所述非关键字对应的链接为页面中除关键字对应的链接之外的链接;The request sending module 210 is also adapted to send to the server 100 a request to load a page of a link corresponding to a non-keyword in the currently browsed page after receiving an instruction to load a link corresponding to a non-keyword; The link is a link other than the link corresponding to the keyword in the page;
页面加载模块220,还适于接收服务器100发送的指令中链接对应的页面压缩包,指示解压模块230将该页面压缩包解压缩,加载该页面压缩包中页面。The page loading module 220 is further adapted to receive the page compression package corresponding to the link in the instruction sent by the server 100, instruct the decompression module 230 to decompress the page compression package, and load the page in the page compression package.
实施例中,客户端仅接收要浏览的链接对应的页面压缩包,不需要将页面中所有链接的页面都做预下载,另一方面,在服务器侧已经预先生成了页面压缩包,通过从服务器侧下载该页面压缩包,能够提高浏览速度。因此,进一步取得了既能够加快客户端中浏览速度又能够节约客户端的网络流量,减少客户端的工作负担的有益效果。In the embodiment, the client only receives the page compression package corresponding to the link to be browsed, and does not need to pre-download all the linked pages in the page. On the other hand, the page compression package has been pre-generated on the server side, and the Side download the page compression package, which can improve browsing speed. Therefore, the beneficial effect of not only speeding up the browsing speed in the client, but also saving the network traffic of the client and reducing the workload of the client is further obtained.
参见图10,示出了根据本发明一个实施例的实现浏览器中页面加载的系统的结构图。系统包括前述服务器100,以及多个前述客户端200。服务器100和客户端200间可以直接连接也可以通过网络连接,在此没有特别限制。Referring to FIG. 10 , it shows a structural diagram of a system for implementing page loading in a browser according to an embodiment of the present invention. The system includes the aforementioned server 100 and multiple aforementioned clients 200 . The server 100 and the client 200 can be connected directly or through a network, and there is no special limitation here.
参见图11,示出了根据本发明一个实施例的实现浏览器中页面加载的方法的流程图。该方法包括如下步骤。Referring to FIG. 11 , it shows a flowchart of a method for implementing page loading in a browser according to an embodiment of the present invention. The method includes the following steps.
步骤S1110,在接收到客户端发送的加载原始页面的请求后,向发送给客户端的原始页面中注入正文加载脚本。原始页面为初始访问网站时所浏览的页面;Step S1110, after receiving the request from the client to load the original page, injecting the text loading script into the original page sent to the client. The original page is the page browsed when initially visiting the website;
步骤S1120,从客户端当前浏览的页面中解析出用于表示页面间正文的相互关系的关键字,提取关键字对应的链接,从网站下载所述链接对应的页面,提取下载的页面中正文,存储提取的正文。Step S1120, analyzing the keywords used to represent the interrelationship between the texts of the pages from the page currently browsed by the client, extracting the links corresponding to the keywords, downloading the pages corresponding to the links from the website, extracting the text in the downloaded pages, Store the extracted body.
步骤S1130,当接收到客户端发送的加载关键字对应的链接的请求后,将提取的正文发送给客户端,使客户端通过正文加载脚本将该正文添加到当前浏览的页面的正文中。Step S1130, after receiving the request from the client to load the link corresponding to the keyword, send the extracted text to the client, so that the client adds the text to the text of the currently browsed page through the text loading script.
为进一步节约网络流量,在步骤S1120中,可以对提取的正文进行压缩处理,存储生成的压缩包。步骤S1130中,接收到客户端发送的加载关键字对应的链接的页面的请求后,将存储的该链接对应的正文的压缩包发送给客户端。In order to further save network traffic, in step S1120, the extracted text may be compressed, and the generated compressed package may be stored. In step S1130, after receiving the request from the client to load the linked page corresponding to the keyword, the stored compressed package of the text corresponding to the link is sent to the client.
以图2中所示的客户端预浏览的三个相关网页为例,进行示例性说明。图2中三个网页为一篇文章的第1页、第2页、第3页,三页中正文内容合并为一篇完整的文章。图2中方框所框部分为关键字。Take the three related webpages pre-browsed by the client as shown in FIG. 2 as an example to make an exemplary description. The three webpages in Figure 2 are page 1, page 2, and page 3 of an article, and the content of the text on the three pages is combined into a complete article. The part framed by the box in Figure 2 is a keyword.
关键字用于表示页面间正文的相互关系,例如,关键字可以为“上一页”、“下一页”、“第X页”等。图2中标出的关键字仅为示例性说明,本发明中关键字不限于此。Keywords are used to represent the interrelationship of text between pages, for example, keywords can be "previous page", "next page", "page X" and so on. The keywords marked in FIG. 2 are only exemplary descriptions, and the keywords in the present invention are not limited thereto.
首先,在步骤S1110中,在接收到客户端发送的加载原始页面,即第1页,的请求后,向发送给客户端的原始页面中注入正文加载脚本。客户端可以通过该正文加载脚本将接收的正文添加到当前浏览的页面的正文中。First, in step S1110, after receiving the request from the client to load the original page, that is, page 1, inject the text loading script into the original page sent to the client. The client can add the received text to the text of the currently browsed page through the text loading script.
在步骤S1120中,对于客户端200当前浏览的第1页中关键字“下一页”对应的链接,从网站中下载该链接对应的页面,提取该链接对应的页面中正文,即第2页中正文。具体地,通过在第2页的html中查询,发现第三个<div>标签对<divclass=”w1Text”>…</div>中具有“Text”,则确定第三个<div>标签对中包含的为正文,提取该正文。In step S1120, for the link corresponding to the keyword "next page" in the first page currently browsed by the client 200, download the page corresponding to the link from the website, and extract the text of the page corresponding to the link, that is, the second page In the text. Specifically, by querying the html of the second page, it is found that the third <div> tag pair <divclass="w1Text">...</div> has "Text", then determine the third <div> tag pair Contained in is the body, extract the body.
当完成第1页浏览后,向下滑动页面,客户端接收到加载当前浏览的页面中关键字“下一页”对应链接的页面的指令,发送加载关键字“下一页”对应的链接的页面的请求。在步骤S1130中,接收请求,将链接“下一页”,即第2页,对应的页面中正文发送给客户端。客户端通过正文加载脚本将正文添加到当前浏览的页面的正文中。After browsing the first page, slide down the page, the client receives an instruction to load the page corresponding to the keyword "next page" in the currently browsed page, and sends a command to load the link corresponding to the keyword "next page" page request. In step S1130, the request is received, and the link "next page", that is, the second page, is sent to the client. The client adds the text to the body of the currently browsed page through the text loading script.
并且,客户端接收到第2页正文后,自动将“下一页”对应链接中页码加1,使得“下一页”对应第3页。当完成第2页浏览后,向下滑动,客户端获得第3页中正文,通过正文加载脚本将第3页中正文添加到当前浏览的页面的正文中。客户端中完成正文添加后完整页面如图3所示。Moreover, after receiving the text of the second page, the client automatically adds 1 to the page number in the link corresponding to the "next page", so that the "next page" corresponds to the third page. After browsing page 2, slide down, and the client obtains the text in page 3, and adds the text in page 3 to the text of the currently browsed page through the text loading script. After adding the text in the client, the complete page is shown in Figure 3.
进一步,在步骤S1120中根据页面所属网站中页面结构从下载的页面中提取正文。以图2所示的三个页面为例,经分析可知,三个页面的html中都包含“Text”,并且三个页面中包括“上一页”或“下一页”。由此可以确定,三个页面间具有关联,并且都包含有正文。如上所述,通过在页面的html中查询,发现第三个<div>标签对<divclass=”w1Text”>…</div>中具有“Text”,则确定第三个<div>标签对中包含的为正文,提取该正文。Further, in step S1120, the text is extracted from the downloaded page according to the page structure of the website to which the page belongs. Taking the three pages shown in FIG. 2 as an example, it can be seen through analysis that the html of the three pages all contain "Text", and the three pages include "previous page" or "next page". From this, it can be determined that the three pages are related and all contain text. As mentioned above, by querying the html of the page, it is found that the third <div> tag pair <divclass="w1Text">...</div> has "Text", then determine the third <div> tag pair Contains the body, extract the body.
进一步地,方法还包括:向发送给客户端的原始页面中注入内存释放脚本,以使客户端在接收到加载关键字对应的链接的指令后,判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放该页面中之前浏览的正文所占内存。Further, the method further includes: injecting a memory release script into the original page sent to the client, so that the client can determine whether the memory occupied by the currently browsed page exceeds the preset threshold after receiving the instruction to load the link corresponding to the keyword If it exceeds the value, the memory occupied by the previously browsed text in this page will be released.
例如,内存释放脚本中内容为:For example, the content in the memory release script is:
parent.removeChild(e);parent. removeChild(e);
e=null;e=null;
deleteedeletee
当完成第2页浏览后,向下滑动页面,客户端接收到加载关键字“下一页”对应链接的页面的指令。客户端判断当前浏览的页面所占内存是否超过预设阀值,如果超过,则释放第1页和/或第2页中正文所占内存。After browsing the second page, slide down the page, and the client receives an instruction to load the page linked to the keyword "next page". The client judges whether the memory occupied by the currently browsed page exceeds the preset threshold, and if so, releases the memory occupied by the text in page 1 and/or page 2.
由上可见,通过向发送给客户端的原始页面中注入内存释放脚本,解决由于添加的正文过多导致内存溢出的问题,取得了防止内存溢出的有益效果。It can be seen from the above that by injecting the memory release script into the original page sent to the client, the problem of memory overflow caused by too many texts added has been solved, and the beneficial effect of preventing memory overflow has been achieved.
进一步地,方法还包括:向发送给客户端的原始页面中注入阅读标签功能脚本和/或页面选择功能脚本,以使客户端在当前浏览的页面中添加阅读标签功能键和/或选择页面功能键。Further, the method also includes: injecting the reading tag function script and/or the page selection function script into the original page sent to the client, so that the client adds the reading tag function key and/or the page selection function key to the currently browsed page .
在此,通过向原始页面中注入功能脚本的方式,可以在客户端的页面中添加功能键,由此达到扩展页面中功能的有益效果。Here, by injecting the function script into the original page, a function key can be added to the page of the client, thereby achieving the beneficial effect of extending the function of the page.
参见图12,示出了根据本发明一个实施例的对于页面中非关键字对应的链接处理的方法的流程图。在该实施例中,方法除包括步骤S1110至步骤S1130外,还包括如下步骤。Referring to FIG. 12 , it shows a flowchart of a method for processing links corresponding to non-keywords in a page according to an embodiment of the present invention. In this embodiment, in addition to steps S1110 to S1130, the method further includes the following steps.
步骤S1210,提取客户端当前浏览的页面中非关键字对应的链接,从网站下载所述链接对应的页面。所述非关键字对应的链接为除关键字对应的链接之外的链接。Step S1210, extracting the link corresponding to the non-keyword in the page currently browsed by the client, and downloading the page corresponding to the link from the website. The link corresponding to the non-keyword is a link other than the link corresponding to the keyword.
步骤S1220,对下载的页面进行压缩处理,生成链接对应的页面压缩包,存储该页面压缩包。Step S1220, compressing the downloaded page, generating a page compression package corresponding to the link, and storing the page compression package.
步骤S1230,当接收到客户端发送的加载当前浏览的页面中非关键字对应的链接的请求后,将该请求中链接对应的页面压缩包发送给客户端。Step S1230: After receiving a request from the client to load a link not corresponding to a keyword in the currently browsed page, send the page compression package corresponding to the link in the request to the client.
以图5中所示页面为例,对实施例进行举例说明。The embodiment is illustrated by taking the page shown in FIG. 5 as an example.
在该页面包含有链接:“登录”、“注册”、“首页”、“科技”、“IT”、“互联网”、“国际”、“上一页”等。其中,“上一页”为关键字对应的链接,其余的为非关键字对应的链接。步骤S1210中,提取该页面中所包含非关键字对应的链接。由于客户端从服务器获得浏览的页面,因此服务器能够获知客户端当前浏览的页面。并且,从各个网站下载各个非关键字对应链接对应的页面。步骤S1220中,对下载的页面进行压缩处理,生成链接对应的页面压缩包,存储页面压缩包。当页面中某个非关键字对应的链接被点击后,客户端就会发送加载该被点击的链接的页面的请求。步骤S1230中,接收客户端发送的请求,并将该请求中链接对应的页面压缩包发送给客户端。由此,客户端获得点击的链接对应的页面压缩包,将该压缩包解压缩后在客户端2示该页面。This page contains links: "Login", "Register", "Home", "Technology", "IT", "Internet", "International", "Previous Page" and so on. Among them, "previous page" is a link corresponding to a keyword, and the rest are links corresponding to non-keywords. In step S1210, the links corresponding to the non-keywords included in the page are extracted. Since the client obtains the page browsed from the server, the server can know the page currently browsed by the client. And, the pages corresponding to the links corresponding to each non-keyword are downloaded from each website. In step S1220, the downloaded page is compressed, a page compression package corresponding to the link is generated, and the page compression package is stored. When a link corresponding to a non-keyword in the page is clicked, the client sends a request to load the page of the clicked link. In step S1230, the request sent by the client is received, and the page compression package corresponding to the link in the request is sent to the client. Thus, the client obtains the page compression package corresponding to the clicked link, and displays the page on the client 2 after decompressing the compression package.
本实施例中对各个客户端浏览的页面中链接对应的页面进行统一的下载和保存,并将该页面压缩成压缩包。当客户端中因为链接点击等原因,实际产生下载需要时,将对应的压缩包下发给客户端。由此,能够向客户端提供非关键字对应的链接的压缩数据包,提高浏览非关键字对应的链接的页面的速度,取得了既能够加快客户端中浏览速度又能够节约客户端的网络流量,减少客户端的工作负担的有益效果。In this embodiment, the page corresponding to the link in the pages browsed by each client is downloaded and saved in a unified manner, and the page is compressed into a compressed package. When the client actually needs to download due to reasons such as link clicks, the corresponding compressed package will be sent to the client. Thus, the compressed data package of the link corresponding to the non-keyword can be provided to the client, and the speed of browsing the page of the link corresponding to the non-keyword can be improved, and the browsing speed in the client can be accelerated and the network traffic of the client can be saved. An advantageous effect of reducing the workload of the client.
在一实施例中,方法还包括:以发送给客户端的页面压缩包中页面为客户端当前浏览的页面,将该当前浏览的页面所包含的非关键字对应的链接与已存储的页面压缩包对应的链接比较,根据比较结果更新存储的页面压缩包。In one embodiment, the method further includes: taking the page in the compressed page package sent to the client as the page currently browsed by the client, and combining the links corresponding to the non-keywords contained in the currently browsed page with the stored page compressed package The corresponding link is compared, and the stored page compression package is updated according to the comparison result.
进一步地,对于没有被该当前浏览的页面所包含的链接,将该链接对应的页面压缩包删除;Further, for a link that is not included in the currently browsed page, delete the page compression package corresponding to the link;
对于该当前浏览的页面中所包含的、且对应的页面压缩包没有被存储的非关键字对应的链接,从网站下载该链接对应的页面,对下载的页面进行压缩处理,生成该链接对应的页面压缩包,存储该页面压缩包。For the non-keyword-corresponding link contained in the currently browsed page and the corresponding page compression package is not stored, download the page corresponding to the link from the website, compress the downloaded page, and generate the link corresponding to the link. The page compression package stores the page compression package.
以图7所示的在客户端链接点击图5中链接“国际”后更新的页面为例,进行示例性说明。该页面中包含链接:“登录”、“注册”、“首页”、“科技”、“IT”、“互联网”、“国际”,以及新闻条目链接,例如:“百度下周股价走高的4个理由”、“亚马逊称Kindlefire创纪录”等。Take the updated page shown in FIG. 7 after the client clicks on the link “International” in FIG. 5 as an example to make an exemplary description. This page contains links: "Login", "Register", "Home", "Technology", "IT", "Internet", "International", and links to news items, such as: "4 reasons why Baidu's stock price will rise next week Reason", "Amazon says Kindlefire is a record", etc.
将该页面所包含的链接与已存储的页面压缩包对应的链接比较。其中,“登录”、“注册”、“首页”、“科技”、“IT”、“互联网”、“国际”被该更新后的页面所包含,且这些链接对应的页面压缩包已经被存储,所以这些链接对应的页面压缩包仍然被存储,没有变化。该更新后的页面中没有包含链接“上一页”,因此,将“上一页”对应的正文或正文压缩包删除。该更新后的页面中包含的新闻条目链接对应的页面压缩包没有被存储,因此从网站下载新闻条目链接对应的页面,对下载的页面进行压缩处理,生成该链接对应的页面压缩包,存储该页面压缩包。The links contained in the page are compared with the links corresponding to the stored page package. Among them, "Login", "Registration", "Homepage", "Technology", "IT", "Internet" and "International" are included in the updated page, and the page compression packages corresponding to these links have been stored, Therefore, the compressed pages corresponding to these links are still stored without change. The updated page does not contain the link "previous page", therefore, the text or the compressed body text package corresponding to "previous page" is deleted. The page compression package corresponding to the news item link contained in the updated page is not stored, so the page corresponding to the news item link is downloaded from the website, the downloaded page is compressed, the page compression package corresponding to the link is generated, and the page compression package is stored. Page compression package.
由上可见,通过在客户端中浏览的页面变化时,对应更新存储的链接对应的页面压缩包,使得已存储的页面压缩包中有用的页面压缩包被保留,仅增加变化后页面中新增链接对应的页面压缩包,因此能够进一步减少服务器端的网络流量,以及服务器进行页面压缩的工作负担。It can be seen from the above that when the page browsed in the client changes, the page compression package corresponding to the stored link is updated, so that the useful page compression package in the stored page compression package is retained, and only the new page after the change is added. The page compression package corresponding to the link can further reduce the network traffic on the server side and the workload of the server for page compression.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings), as well as any method or method so disclosed, may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
Claims (21)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310020113.3A CN103116609B (en) | 2013-01-18 | 2013-01-18 | Realize server, client, system and method that in browser, the page loads |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310020113.3A CN103116609B (en) | 2013-01-18 | 2013-01-18 | Realize server, client, system and method that in browser, the page loads |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103116609A 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 |
---|---|---|---|
CN201310020113.3A Active CN103116609B (en) | 2013-01-18 | 2013-01-18 | Realize server, client, system and method that in browser, the page loads |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103116609B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105335139B (en) * | 2014-07-24 | 2019-05-17 | 广州市动景计算机科技有限公司 | Webpage display process and device |
CN105634683B (en) * | 2014-10-30 | 2019-03-15 | 阿里巴巴集团控股有限公司 | Data transmission method and device |
CN106055367B (en) * | 2016-06-01 | 2021-06-18 | 腾讯科技(深圳)有限公司 | A script file loading method and device |
CN106777116B (en) * | 2016-12-15 | 2021-10-15 | 腾讯科技(深圳)有限公司 | Content acquisition method, user client, server and system |
CN107133180B (en) * | 2017-06-07 | 2021-03-23 | 腾讯科技(深圳)有限公司 | Dynamic page testing method, testing device and storage medium |
CN107562799A (en) * | 2017-08-04 | 2018-01-09 | 海南智媒云图科技股份有限公司 | A kind of content reprints the method and device shared |
Citations (3)
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 | 奇智软件(北京)有限公司 | Method, device and system for collecting web pages |
-
2013
- 2013-01-18 CN CN201310020113.3A patent/CN103116609B/en active Active
Patent Citations (3)
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 | 奇智软件(北京)有限公司 | Method, device and system for collecting web pages |
Also Published As
Publication number | Publication date |
---|---|
CN103116609A (en) | 2013-05-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103118081B (en) | Server, client, the system and method for browsing pages in prestrain browser | |
CN103116609B (en) | Realize server, client, system and method that in browser, the page loads | |
US10387521B2 (en) | Creation and delivery of pre-rendered web pages for accelerated browsing | |
US9077681B2 (en) | Page loading optimization using page-maintained cache | |
CN105094890B (en) | A kind of application plug loading method and device | |
US9361345B2 (en) | Method and system for automated analysis and transformation of web pages | |
US10277414B2 (en) | Communication gateway services in a networked message distribution system | |
WO2015043428A1 (en) | Method, system, browser and proxy server for loading webpage | |
CN102346770A (en) | WebKit browser webpage content loading method and device | |
US8412802B2 (en) | System and method to optimize data communication in a computational network | |
JP2010512589A (en) | Web page display method and system | |
CN104270257B (en) | NE-level webmaster business configuration adaption system and method based on PB and XPATH | |
CN104281574A (en) | Information recommending method, device and system | |
CN104462571A (en) | Webpage loading method and device and browser client-side | |
US9727643B2 (en) | Managing loading of web pages | |
CN105260424A (en) | Processing method and apparatus for webpage browsing historical records and most common accesses of user | |
US9471552B1 (en) | Optimization of scripting for web applications | |
US10095791B2 (en) | Information search method and apparatus | |
CN103258055B (en) | A kind of file download equipment and method | |
CN104956360B (en) | Presented using the progressive picture of data URI enhancings | |
CN107341234A (en) | Display methods, device and the computer-readable recording medium of the page | |
Cao et al. | The solution of web font-end performance optimization | |
CN113934953B (en) | Web page first screen rendering method and device | |
CN111753237A (en) | Preloading method, device, device and storage medium for network view | |
CN105100148A (en) | File acquiring method of browser and agent server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220714 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |