WO2013097107A1 - 网页预读方法、网页预读装置、浏览器和移动终端 - Google Patents

网页预读方法、网页预读装置、浏览器和移动终端 Download PDF

Info

Publication number
WO2013097107A1
WO2013097107A1 PCT/CN2011/084803 CN2011084803W WO2013097107A1 WO 2013097107 A1 WO2013097107 A1 WO 2013097107A1 CN 2011084803 W CN2011084803 W CN 2011084803W WO 2013097107 A1 WO2013097107 A1 WO 2013097107A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
webpage
reading
source code
read
Prior art date
Application number
PCT/CN2011/084803
Other languages
English (en)
French (fr)
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
Application filed by 广州市动景计算机科技有限公司, 优视科技有限公司 filed Critical 广州市动景计算机科技有限公司
Priority to PCT/CN2011/084803 priority Critical patent/WO2013097107A1/zh
Priority to CN201180076021.6A priority patent/CN104025082A/zh
Publication of WO2013097107A1 publication Critical patent/WO2013097107A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Definitions

  • the present invention relates to the field of mobile communications, and more particularly to a webpage pre-reading method, a webpage pre-reading apparatus, a browser having the webpage pre-reading apparatus, and a mobile terminal. Background technique
  • the pre-reading identifier is included in the linked web page source code as the commented content of the link.
  • the pre-reading identifier is included in the linked web page source code as an attribute of the link.
  • the pre-reading identifier is included in the linked web page source code as the commented content of the link.
  • a mobile terminal including a browser as described above.
  • a mobile terminal comprising the web page pre-reading device as described above.
  • FIG. 2 is a block diagram showing a web page pre-reading apparatus according to an embodiment of the present invention
  • FIG. 3 is a block diagram showing a browser having a web page pre-reading apparatus according to the present invention
  • FIG. 5 shows a block schematic diagram of a mobile terminal having a web page pre-reading device in accordance with the present invention.
  • step S110 when the user reads the webpage content acquired from the target webpage server on the mobile terminal, the at least one link (for example, part or all of the links) on the currently displayed webpage is obtained from the target server.
  • the link is also called a hyperlink, and refers to a connection relationship from a web page to a target object, which has two parts, that is, a link source and a link target, and the link source is a webpage that is usually placed on the mouse by the mouse.
  • Element which can be any part of any text, image or image anywhere in the document.
  • Link target Is the web page to which the link points, a location of the web page, an image, a multimedia file, an email or downloadable software, a WORD document, an EXECL document, and the like.
  • the function of the link is to connect a website's webpage or multiple websites, jump from one webpage to another when clicking a link, or jump to the location specified by the page.
  • the webpage source code of the multiple links can be obtained.
  • the source code refers to an uncompiled text file written in accordance with a certain programming language specification.
  • the source code is usually a series of readable computer language instructions.
  • the common format for source code is a text file.
  • the source code of the web page is the source code for describing the web page. It consists of a large amount of source code that can be translated by IE browser (or server) into the content displayed on the web page.
  • IE browser or server
  • One is static source code, such as HTML.
  • a Boolean value is used to indicate whether pre-reading is required, gP, when the preread value is true, indicating that pre-reading is required, and when the preread value is false, indicating that pre-reading is not performed.
  • gP a Boolean value
  • the pre-read identification may be included as the annotation content of the link in the web source code of the link.
  • pre-reading identifier may also be included in the web source code of the link in other ways.
  • the pre-reading identifier is searched for in the obtained webpage source code or network access request response message. For example, for each linked web page source code or network access request response message, search for a pre-read identifier. If there is a pre-reading identifier, the link is considered to require pre-reading. Otherwise, it is considered that no pre-reading is required. After the above search process is performed, if a link with the pre-reading identifier is found, it proceeds to step S130. Otherwise, the process ends.
  • step S130 the searched link with the pre-reading identifier is pre-read. That is, the webpage corresponding to the link with the pre-read identifier is obtained from the target server, and the webpage is cached in the client, and the webpage can be pre-formatted and rendered pre-processed, so that the webpage is faster when hitting the user's pre-reading selection.
  • the ground is displayed on the display. How to perform pre-reading of the searched links can be performed using various well-known techniques in the art or other techniques already disclosed.
  • the web page read-ahead method according to the present invention is described above with reference to FIG.
  • the above webpage pre-reading method of the present invention may be implemented by software, hardware implementation, or a combination of software and hardware.
  • the webpage pre-reading apparatus 200 includes an obtaining unit 210, a searching unit 220, and a pre-reading unit 230.
  • the obtaining unit 210 acquires at least one linked webpage source code on the currently displayed webpage or a web access request response message corresponding to the webpage access request of the currently displayed webpage, where
  • the pre-reading identifier for indicating that the link needs to be pre-read is included in the webpage source code of the link or the network access request response message.
  • the pre-reading identifier for indicating that the link needs to be pre-read must be included in the webpage source code of the link.
  • the pre-read identifier is included.
  • the pre-reading identifier may be included in the linked webpage source code or the network access request response message in various forms, for example, in the webpage source code in the above two manners. Of course, other suitable methods can also be employed.
  • the search unit 220 After obtaining the linked web page source code or the network access request response message, the search unit 220 searches for the link with the pre-read identifier in the obtained web page source code or network access request response message. If a link with a pre-reading identifier is found, the pre-reading unit 230 pre-reads the searched link. If a link with a pre-reading identifier is not found, no pre-reading is performed.
  • webpage pre-reading judgment can be performed without relying on the linked text and statistical server, for example, it can be judged whether or not the image link is pre-read. Since it is very difficult to recognize the text on the picture, according to the currently existing method, it is impossible to judge whether or not to read the picture link, so that the picture link pre-reading cannot be realized. Therefore, the web page read-ahead method according to the present invention can be applied to a wider range of scenes.
  • the link identifier of the current picture is considered to be pre-read, and the link of the picture is directed to the next browse page, so that the pre-read can be implemented without relying on the pre-read keyword.
  • the pre-reading identifier is included in the comment, such as when searching for the linked webpage source code, if a link comment having the following content is found in the comment portion of the webpage source code
  • the link is considered to be pre-read, so that browser read-ahead can be implemented without relying on keywords.
  • the pre-reading identifier is included in the network access request response message (usually in the network return header), such as when searching for the linked webpage source code, if the network access request response message is found in the webpage source code, a link with the following content,
  • the pre-reading identifier Pre-Read is added to the network return header, and after the browser recognizes the pre-reading identifiers, the elements on the page are pre-read according to the ID.
  • the website developer is required to include a pre-reading identifier in the source code of the webpage for the link that needs to be pre-read, thereby being accurate Controls whether the link requires read-ahead.
  • the web page pre-reading method of the present invention can accurately control whether the link requires pre-reading, thereby improving the browsing experience of the web page.
  • FIG. 3 shows a block schematic diagram of a browser 10 having a web page pre-reading device 200 in accordance with the present invention.
  • the browser 10 has a web page pre-reading device 200 in accordance with the present invention.
  • the web page pre-reading apparatus 200 included may also be variously modified without departing from the scope of the invention.
  • FIG. 4 shows a block schematic diagram of a mobile terminal 20 having a browser 10 in accordance with the present invention.
  • the mobile terminal 30 may also include only the web page pre-reading device 200.
  • the mobile terminal of the present invention can be a variety of handheld terminal devices, such as mobile phones, personal digital assistants (PDAs), etc., and thus the scope of protection of the present invention should not be limited to a particular type of mobile terminal.
  • PDAs personal digital assistants
  • the method according to the invention can also be implemented as a computer program executed by a CPU.
  • the computer program is executed by the CPU, the above-described functions defined in the method of the present invention are performed.
  • the above method steps and system units may also utilize a controller (eg, a processor) And a computer readable storage device implementation for storing a computer program that causes the controller to implement the steps or unit functions described above.
  • a controller eg, a processor
  • a computer readable storage device implementation for storing a computer program that causes the controller to implement the steps or unit functions described above.
  • non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash.
  • ROM read only memory
  • PROM programmable ROM
  • EPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • flash flash.
  • Volatile memory can include random access memory (RAM), which can act as external cache memory.
  • RAM can be obtained in a variety of forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Storage devices of the disclosed aspects of synchronous link DRAM (SLDRAM) and direct Rambus RAM (DRRAM) o are intended to include, but are not limited to, these and other suitable types of memory.
  • DRAM synchronous RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous link DRAM
  • DRRAM direct Rambus RAM
  • DSP digital signal processor
  • ASIC dedicated An integrated circuit
  • FPGA field programmable gate array
  • a general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller or state machine.
  • the processor can also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
  • the steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two.
  • Software modules can reside in RAM storage , flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor, such that the processor can read information from or write information to the storage medium.
  • the storage medium can be integrated with a processor.
  • the processor and the storage medium can reside in an ASIC.
  • the ASIC can reside in the user terminal.
  • the processor and the storage medium may reside as a discrete component in the user terminal.
  • the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted as one or more instructions or code on a computer readable medium.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a general purpose or special purpose computer.
  • the computer readable medium may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage device, disk storage device or other magnetic storage device, or may be used for carrying or storing a form of instructions Or the required program code of the data structure and any other medium that can be accessed by a general purpose or special purpose computer or a general purpose or special purpose processor. Also, any connection is properly termed a computer-readable medium.
  • a magnetic disk and an optical disk include a compact disk (CD), a laser disk, an optical disk, a digital versatile disk (DVD), a floppy disk, a Blu-ray disk, in which a disk generally reproduces data magnetically, and an optical disk optically reproduces data using a laser. . Combinations of the above should also be included in the scope of computer readable media.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明提供了一种网页预读方法,包括:获取当前显示的网页上的至少一个链接的网页源代码,其中,在当前网页上的链接需要预读时,在该链接的网页源代码或者所述网络访问请求应答消息中预先包含用于指示该链接需要预读的预读标识;在所述获取的网页源代码中搜索具有预读标识的链接;以及在搜索出具有预读标识的链接后,对所述搜索出的链接进行预读。利用该方法,可以不依赖于链接的文本或者统计服务器,从而可以使得网页预读的应用场景更广。此外,利用该方法还可以准确控制链接是否需要预读,由此提高网页的浏览体验。

Description

网页预读方法、 网页预读装置、 浏览器和移动终端
技术领域
本发明涉及移动通信领域, 更加具体地, 涉及一种网页预读方法、 网页 预读装置、 具有该网页预读装置的浏览器以及移动终端。 背景技术
目前, 人们越来越习惯于通过移动终端来进行网页浏览。 为了提高网页 的阅读速度, 通常在移动终端的浏览器 (例如手机浏览器) 上使用预读技术, 所述预读技术是指在浏览当前网页内容时, 预先读取期望浏览的下一网页的 网页内容并缓存在移动终端的缓存器中, 以便在浏览完当前网页后从缓存器 中读出来进行显示, 从而加快该下一网页的显示速度。
目前的手机浏览器在进行预读时, 通常使用两种方法来判断当前浏览的 网页上的链接是否需要预读。 一种方法是判断该链接文本是否包含有预读关 键字, 例如 "下一页"、 ">>"等。 如果存在预读关键字, 则对该链接进行预 读。 另一种方法是采用统计方法来统计各个链接的点击率, 从而找出点击率 最高或较高的链接来进行预读。 例如, 从所述各个链接中找出点击率最高的 链接来进行预读, 或者从所述各个链接中找出点击率高于预设阈值的链接来 进行预读。
然而, 上述两种方法依赖于特定的网页内容, 预读关键字判断方法和数 据统计方法, 缺少统一标准, 从而导致网站开发者 (即, 网页内容提供者) 无法准确地控制链接预读。 发明内容
鉴于上述问题, 本发明的目的是提供一种通过识别网页源代码中的预读 标识来进行网页预读的网页预读方法和网页预读装置。
此外, 本发明的另一目的是提供一种具有上述网页预读装置的浏览器、 具有上述浏览器的移动终端以及具有上述网页预读装置的移动终端。 根据本发明的一个方面, 提供了一种网页预读方法, 包括: 从目标服务 器获取当前显示的网页上的至少一个链接的网页源代码或者与该当前显示的 网页的网页访问请求对应的网络访问请求应答消息, 其中, 在当前网页上的 链接需要预读时, 在该链接的网页源代码或者所述网络访问请求应答消息中 预先包含用于指示该链接需要预读的预读标识; 在所述获取的网页源代码或 者所述网络访问请求应答消息中搜索具有预读标识的链接; 以及在搜索出具 有预读标识的链接后, 对所述搜索出的链接进行预读。
在上述方面的一个或多个示例中, 所述预读标识被作为所述链接的属性 包含在所述链接的网页源代码中。
在上述方面的一个或多个示例中, 所述预读标识作为所述链接的注释内 容包含在所述链接的网页源代码中。
根据本发明的另一方面, 提供了一种网页预读装置, 包括: 获取单元, 用于从目标服务器获取当前显示的网页上的至少一个链接的网页源代码或者 与该当前显示的网页的网页访问请求对应的网络访问请求应答消息, 其中, 在当前网页上的链接需要预读时, 在该链接的网页源代码或者所述网络访问 请求应答消息中预先包含用于指示该链接需要预读的预读标识; 搜索单元, 用于在所述获取的网页源代码或所述网络访问请求应答消息中搜索具有预读 标识的链接; 以及预读单元, 用于在搜索出具有预读标识的链接后, 对所述 搜索出的链接进行预读。
在上述方面的一个或多个示例中, 所述预读标识被作为所述链接的属性 包含在所述链接的网页源代码中。
在上述方面的一个或多个示例中, 所述预读标识作为所述链接的注释内 容包含在所述链接的网页源代码中。
根据本发明的另一方面, 提供了一种浏览器, 包括如上所述的网页预读 装置。
根据本发明的另一方面, 提供了一种移动终端, 包括如上所述的浏览器。 根据本发明的另一方面, 提供了一种移动终端, 包括如上所述的网页预 读装置。
利用上述根据本发明的网页预读方法和网页预读装置, 可以不依赖于链 接的文本或者统计服务器。 此外, 在预读标识作为一种通用标准被网站开发 者使用后, 规定网站开发者在网页源代码中针对需要预读的链接必须包含预 读标识, 从而使得利用本发明的网页预读方法, 可以准确控制链接是否需要 预读, 由此提高了网页的浏览体验。
为了实现上述以及相关目的, 本发明的一个或多个方面包括后面将详细 说明并在权利要求中特别指出的特征。 下面的说明以及附图详细说明了本发 明的某些示例性方面。 然而, 这些方面指示的仅仅是可使用本发明的原理的 各种方式中的一些方式。 此外, 本发明旨在包括所有这些方面以及它们的等 同物。 附图说明
根据下述参照附图进行的详细描述, 本发明的上述和其他目的、 特征和 优点将变得更加显而易见。 在附图中:
图 1示出了根据本发明的实施例的网页预读方法的流程图;
图 2示出了根据本发明的实施例的网页预读装置的方框示意图; 图 3示出了具有根据本发明的网页预读装置的浏览器的方框示意图; 图 4示出了具有根据本发明的浏览器的移动终端的方框示意图; 和 图 5示出了具有根据本发明的网页预读装置的移动终端的方框示意图。 在所有附图中相同的标号指示相似或相应的特征或功能。 具体实施方式
以下将结合附图对本发明的具体实施例进行详细描述。
图 1示出了根据本发明的实施例的网页预读方法的流程图。
如图 1所示, 在步骤 S110中, 在用户在移动终端上阅读从目标网页服务 器获取的网页内容时, 从目标服务器获取当前显示的网页上的至少一个链接 (例如, 部分或全部链接) 的网页源代码或者与该当前显示的网页的网页访 问请求对应的网络访问请求应答消息。 这里, 所述链接也称为超级链接, 是 指从一个网页指向一个目标对象的连接关系, 它包含两个部分, 即链接源和 链接目标, 链接源就是通常鼠标放在上面变成小手的网页元素, 它可以是文 档内任何地方的任何文本、 图象或图像的某个部分, 还可以是 FLASH动画、 FLASH文本、 FLASH按钮、 普通按钮、 鼠标经过图像、 导航栏等。 链接目标 就是链接所指向的网页、 网页的某个位置、 图象、 多媒体文件、 电子邮件或 可下载软件、 WORD文档、 EXECL文档等。所述链接的作用是把一个网站的 网页或多个网站连接起来, 点击链接时从一个网页跳转到另一个网页, 或者 跳转到页面指定的位置。 此外, 在网页上具有多个链接时, 可以获取该多个 链接的网页源代码。
所述源代码是指未编译的按照一定的程序设计语言规范书写的文本文 件。 源代码通常是一系列可读的计算机语言指令。 在现代程序语言中, 源代 码的常用格式是文本文件。 网页源代码是用于描述网页的源代码, 它由一大 堆的源代码组成, 可以被 IE浏览器 (或服务器) 翻译成网页上显示的内容。 网页源代码分为两种, 一种是动态源码, 比如 ASP, PHP, JSP, .NET, CGI 等, 一种是静态源码, 比如 HTML等。
所述网络访问请求应答消息是指在移动终端通过 http协议向服务器请求 访问页面时, 服务器向移动终端返回的应答消息。
在根据本发明的网页源代码中, 在进行网页源代码编写时, 针对需要预 读的链接, 规定必须在该链接的源代码部分中增加预读标识, 所述预读标识 指示该链接需要预读。 或者, 在根据本发明的网络访问请求应答消息中, 还 包含从当前网页的网页源代码中提取的用于指示该链接需要预读的预读标 识。 也就是说, 在形成所述网络访问请求应答消息时, 包含用于指示链接需 要预读的预读标识, 由此, 在得到所述网络访问请求应答消息后, 可以基于 所包含的预读标识, 确定出当前网页上的哪些链接需要预读。 通常, 所述预 读标识被包含在网络访问请求应答消息的首部中, gp, 包含在网络返回头中。
所述预读标识可以采用多种形式包含在该链接的网页源代码或者所述网 络访问请求应答消息中。在一个示例中, 可以将所述预读标识作为该链接(链 接标签)的增加属性包含在该链接的网页源代码中。例如, <a href= ^读链接 " preread="tme">链接文本或者图片 </a> , 其中 preread=tme表示该链接需要 预读, preread=false或者无该属性表示不需要预读。 在上述示例中, 采用布尔 值方式来表示是否需要进行预读, gP,当 preread值为真时表示需要进行预读, 而在 preread值为假时表示不进行预读。 在本发明的另一示例中, 也可以采用 取值方式来表示该链接是否需要预读。 例如, 假设 preread的取值被设置为 1 或 01时表示进行预读,而 preread的取值被设置为 0或 00时表示不进行预读。 此外, 也可以通过对该链接的原有属性重新定义来作为预读标识表示该 链接是否需要预读。 例如, 假设该链接的原有属性的取值被定义为在取值为
00时有效, 那么通过将该属性的取值增加为在取值为 01时也有效, 并且表示 该链接需要进行预读, 可以在不改变该链接的原有属性数目的情况下实现预 读标识表示。
或者, 在另一示例中, 可以将所述预读标识作为该链接的注释内容包含 在该链接的网页源代码中。 例如,
< !~preread_begin~>
<a href= "预读链接" >链接文本或者图片 </a>
< !~preread_end~>
在该链接的注释中, 注释中间的链接表示需要预读。
很显然, 所述预读标识也可以采用其它方式包含在该链接的网页源代码 中。
在如上获取所述当前网页上包含的至少一个链接的网页源代码或者网络 访问请求应答消息后, 在步骤 S120, 在所述获取的网页源代码或者网络访问 请求应答消息中搜索预读标识。 例如, 针对每个链接的网页源代码或者网络 访问请求应答消息, 搜索是否存在预读标识。 如果存在预读标识, 则认为该 链接需要预读。 否则, 则认为不需要预读。 在进行上述搜索过程后, 如果找 到具有预读标识的链接, 则进行到步骤 S130。 否则, 流程结束。
在步骤 S130, 对所搜索出的具有预读标识的链接进行预读。 即从目标服 务器获取具有预读标识的链接所对应的网页将其缓存在客户端中, 并可以提 前对该网页进行排版和渲染预处理, 使得当该网页在命中用户预读选择的时 候更快地在显示屏上进行显示。 如何针对搜索出的链接进行预读, 可以采用 本领域的各种公知技术或者已经公开的其它技术进行。
如上参照图 1 描述了根据本发明的网页预读方法。 本发明的上述网页预 读方法, 可以采用软件实现, 也可以采用硬件实现, 或采用软件和硬件组合 的方式实现。
图 2示出了根据本发明的实施例的网页预读装置 200的方框示意图。 如图 2所示, 根据本发明的网页预读装置 200包括获取单元 210、搜索单 元 220以及预读单元 230。 当在移动终端上显示网页内容时, 所述获取单元 210获取当前显示的网 页上的至少一个链接的网页源代码或者与该当前显示的网页的网页访问请求 对应的网络访问请求应答消息, 其中, 在当前网页上的链接需要预读时, 在 该链接的网页源代码或者所述网络访问请求应答消息中预先包含用于指示该 链接需要预读的预读标识。 这里, 如果链接需要预读, 则在编写该链接的网 页源代码时, 规定必须在该链接的网页源代码中包含用于指示该链接需要预 读的预读标识。 或者, 在形成所述网络访问请求应答消息时, 包含上述预读 标识。 所述预读标识可以采用多种形式包含在该链接的网页源代码或所述网 络访问请求应答消息中, 例如采用上述的两种方式包含在网页源代码中。 当 然, 也可以采用其它合适的方式。
在获取链接的网页源代码或所述网络访问请求应答消息后, 所述搜索单 元 220在所述获取的网页源代码或者网络访问请求应答消息中搜索具有预读 标识的链接。 如果找到具有预读标识的链接, 则所述预读单元 230对所述搜 索出的链接进行预读。 如果没有找到具有预读标识的链接, 则不进行预读。
利用本发明的网页预读方法和网页预读装置, 可以不依赖链接的文本和 统计服务器来进行网页预读判断, 例如, 可以判断是否预读图片链接。 由于 识别图片上的文字是非常困难, 因此按照目前现有的方法, 无法判断是否预 读图片链接, 从而不能实现图片链接预读。 因此, 根据本发明的网页预读方 法可以应用的场景更广。
例如, 在图片链接预读的情况下, 比如在搜索链接的网页源代码时, 发 现存在具有下述内容的链接
<a href= "下一个浏览页面的 url" preread="true">
<img src= "当前图片 "></img>
</a>
则在这种情况下, 认为该当前图片的链接标识为可预读, 同时将图片的 链接指向下一个浏览页面, 从而可以在不依赖预读关键字的情况下实现预读。
此外, 在预读标识包含在注释中的情况下, 比如在搜索链接的网页源代 码时, 如果在网页源代码的注释部分中发现存在具有下述内容的链接注释
< !~preread_begin~>
<a href= "预读链接" >链接文本或者图片 </a> < !~preread_end~>
则在这种情况下, 认为该链接是需要预读的, 从而可以在不依赖关键字 的情况下实现浏览器预读。
此外, 在预读标识包含在网络访问请求应答消息 (通常是在网络返回头 中) 的情况下, 比如在搜索链接的网页源代码时, 如果在网页源代码的网络 访问请求应答消息中发现存在具有下述内容的链接,
HTTP/1.1 200 OK
Cache-Control no-store, no-cache, must-revalidate
Connection Keep- Alive
Content- Type text/html;charset=GB2312
Pre-Read linkid;imgid
则在这种情况下, 可以认为在网络返回头中增加预读标识 Pre-Read, 浏 览器在识别了这些预读标识后, 根据 ID对页面上的元素进行预读。
此外, 在根据本发明的预读标识作为一个通用的标准 (或者 uc浏览器的 标准) 使用后, 规定网站开发者在网页源代码中针对需要预读的链接必须包 含预读标识, 从而可以准确控制链接是否需要预读。 换言之, 利用本发明的 网页预读方法可以准确地控制链接是否需要预读, 从而提高了网页的浏览体 验。
图 3示出了具有根据本发明的网页预读装置 200的浏览器 10的方框示意 图。如图 3所示, 所述浏览器 10具有根据本发明的网页预读装置 200。 这里, 所包含的网页预读装置 200也可以在不背离本发明的范围的情况下进行各种 变型。
图 4示出了具有根据本发明的浏览器 10的移动终端 20的方框示意图。 当然, 如图 5所示, 移动终端 30也可以仅仅包括网页预读装置 200。
此外, 典型地, 本发明所述的移动终端可为各种手持终端设备, 例如手 机、 个人数字助理 (PDA) 等, 因此本发明的保护范围不应限定为某种特定 类型的移动终端。
此外, 根据本发明的方法还可以被实现为由 CPU执行的计算机程序。 在 该计算机程序被 CPU执行时, 执行本发明的方法中限定的上述功能。
此外, 上述方法步骤以及系统单元也可以利用控制器 (例如, 处理器) 以及用于存储使得控制器实现上述步骤或单元功能的计算机程序的计算机可 读存储设备实现。
此外, 应该明白的是, 本文所述的计算机可读存储设备 (例如, 存储器) 可以是易失性存储器或非易失性存储器, 或者可以包括易失性存储器和非易 失性存储器两者。 作为例子而非限制性的, 非易失性存储器可以包括只读存 储器 (ROM)、 可编程 ROM (PROM), 电可编程 ROM (EPROM)、 电可擦 写可编程 ROM (EEPROM)或快闪存储器。 易失性存储器可以包括随机存取 存储器(RAM), 该 RAM可以充当外部高速缓存存储器。 作为例子而非限制 性的, RAM 可以以多种形式获得, 比如同步 RAM (DRAM), 动态 RAM (DRAM), 同步 DRAM (SDRAM), 双数据速率 SDRAM (DDR SDRAM )、 增强 SDRAM (ESDRAM)、 同步链路 DRAM (SLDRAM) 以及直接 Rambus RAM (DRRAM)o 所公开的方面的存储设备意在包括但不限于这些和其它合 适类型的存储器。
本领域技术人员还将明白的是, 结合这里的公开所描述的各种示例性逻 辑块、 模块、 电路和算法步骤可以被实现为电子硬件、 计算机软件或两者的 组合。 为了清楚地说明硬件和软件的这种可互换性, 已经就各种示意性组件、 方块、 模块、 电路和步骤的功能对其进行了一般性的描述。 这种功能是被实 现为软件还是被实现为硬件取决于具体应用以及施加给整个系统的设计约 束。 本领域技术人员可以针对每种具体应用以各种方式来实现所述的功能, 但是这种实现决定不应被解释为导致脱离本发明的范围。
结合这里的公开所描述的各种示例性逻辑块、 模块和电路可以利用被设 计成用于执行这里所述功能的下列部件来实现或执行: 通用处理器、 数字信 号处理器 (DSP)、 专用集成电路 (ASIC)、 现场可编程门阵列 (FPGA) 或其 它可编程逻辑器件、 分立门或晶体管逻辑、 分立的硬件组件或者这些部件的 任何组合。 通用处理器可以是微处理器, 但是可替换地, 处理器可以是任何 传统处理器、 控制器、 微控制器或状态机。 处理器也可以被实现为计算设备 的组合, 例如, DSP 和微处理器的组合、 多个微处理器、 一个或多个微处理 器结合 DSP核、 或任何其它这种配置。
结合这里的公开所描述的方法或算法的步骤可以直接包含在硬件中、 由 处理器执行的软件模块中或这两者的组合中。软件模块可以驻留在 RAM存储 器、 快闪存储器、 ROM存储器、 EPROM存储器、 EEPROM存储器、 寄存器、 硬盘、 可移动盘、 CD-ROM、 或本领域已知的任何其它形式的存储介质中。 示例性的存储介质被耦合到处理器, 使得处理器能够从该存储介质中读取信 息或向该存储介质写入信息。 在一个替换方案中, 所述存储介质可以与处理 器集成在一起。 处理器和存储介质可以驻留在 ASIC中。 ASIC可以驻留在用 户终端中。 在一个替换方案中, 处理器和存储介质可以作为分立组件驻留在 用户终端中。
在一个或多个示例性设计中, 所述功能可以在硬件、 软件、 固件或其任 意组合中实现。 如果在软件中实现, 则可以将所述功能作为一个或多个指令 或代码存储在计算机可读介质上或通过计算机可读介质来传送。 计算机可读 介质包括计算机存储介质和通信介质, 该通信介质包括有助于将计算机程序 从一个位置传送到另一个位置的任何介质。 存储介质可以是能够被通用或专 用计算机访问的任何可用介质。 作为例子而非限制性的, 该计算机可读介质 可以包括 RAM、 ROM, EEPROM, CD-ROM或其它光盘存储设备、 磁盘存 储设备或其它磁性存储设备, 或者是可以用于携带或存储形式为指令或数据 结构的所需程序代码并且能够被通用或专用计算机或者通用或专用处理器访 问的任何其它介质。 此外, 任何连接都可以适当地称为计算机可读介质。 例 如, 如果使用同轴线缆、 光纤线缆、 双绞线、 数字用户线路(DSL)或诸如红 外线、 无线电和微波的无线技术来从网站、 服务器或其它远程源发送软件, 则上述同轴线缆、 光纤线缆、 双绞线、 DSL或诸如红外先、 无线电和微波的 无线技术均包括在介质的定义。 如这里所使用的, 磁盘和光盘包括压缩盘 (CD), 激光盘、 光盘、 数字多功能盘 (DVD)、 软盘、 蓝光盘, 其中磁盘通 常磁性地再现数据, 而光盘利用激光光学地再现数据。 上述内容的组合也应 当包括在计算机可读介质的范围内。
如上参照附图以示例的方式描述根据本发明的实施例。 但是, 本领域技 术人员应当理解, 对于本发明的上述实施例, 还可以在不脱离本发明内容的 基础上做出各种改进。 因此, 本发明的保护范围应当由所附的权利要求书的 内容确定。

Claims

权 利 要 求 书
1、 一种网页预读方法, 包括:
从目标服务器获取当前显示的网页上的至少一个链接的网页源代码或者 与该当前显示的网页的网页访问请求对应的网络访问请求应答消息, 其中, 在当前网页上的链接需要预读时, 在该链接的网页源代码或者所述网络访问 请求应答消息中预先包含用于指示该链接需要预读的预读标识;
在所述获取的网页源代码或者所述网络访问请求应答消息中搜索具有预 读标识的链接; 以及
在搜索出具有预读标识的链接后, 对所述搜索出的链接进行预读。
2、 如权利要求 1所述的网页预读方法, 其中, 所述预读标识被作为所述 链接的属性包含在所述链接的网页源代码中。
3、 如权利要求 1所述的网页预读方法, 其中, 所述预读标识作为所述链 接的注释内容包含在所述链接的网页源代码中。
4、 一种网页预读装置, 包括:
获取单元, 用于从目标服务器获取当前显示的网页上的至少一个链接的 网页源代码或者与该当前显示的网页的网页访问请求对应的网络访问请求应 答消息, 其中, 在当前网页上的链接需要预读时, 在该链接的网页源代码或 者所述网络访问请求应答消息中预先包含用于指示该链接需要预读的预读标 识;
搜索单元, 用于在所述获取的网页源代码或者所述网络访问请求应答消 息中搜索具有预读标识的链接; 以及
预读单元, 用于在搜索出具有预读标识的链接后, 对所述搜索出的链接 进行预读。
5、 如权利要求 4所述的网页预读装置, 其中, 所述预读标识被作为所述 链接的属性包含在所述链接的网页源代码中。
6、 如权利要求 4所述的网页预读装置, 其中, 所述预读标识作为所述链 接的注释内容包含在所述链接的网页源代码中。
7、一种浏览器,包括如权利要求 4到 6中任何一个所述的网页预读装置。
8、 一种移动终端, 包括如权利要求 7所述的浏览器。
9、 一种移动终端, 包括如权利要求 4到 6中任何一个所述的网页预读装 置。
PCT/CN2011/084803 2011-12-28 2011-12-28 网页预读方法、网页预读装置、浏览器和移动终端 WO2013097107A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2011/084803 WO2013097107A1 (zh) 2011-12-28 2011-12-28 网页预读方法、网页预读装置、浏览器和移动终端
CN201180076021.6A CN104025082A (zh) 2011-12-28 2011-12-28 网页预读方法、网页预读装置、浏览器和移动终端

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/084803 WO2013097107A1 (zh) 2011-12-28 2011-12-28 网页预读方法、网页预读装置、浏览器和移动终端

Publications (1)

Publication Number Publication Date
WO2013097107A1 true WO2013097107A1 (zh) 2013-07-04

Family

ID=48696196

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/084803 WO2013097107A1 (zh) 2011-12-28 2011-12-28 网页预读方法、网页预读装置、浏览器和移动终端

Country Status (2)

Country Link
CN (1) CN104025082A (zh)
WO (1) WO2013097107A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193819A (zh) * 2016-03-14 2017-09-22 广州市动景计算机科技有限公司 用于网页预读的方法、设备、浏览器及客户端设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101539911A (zh) * 2008-03-18 2009-09-23 盛大计算机(上海)有限公司 加快浏览器网页显示的装置及方法
US20110029641A1 (en) * 2009-08-03 2011-02-03 FasterWeb, Ltd. Systems and Methods Thereto for Acceleration of Web Pages Access Using Next Page Optimization, Caching and Pre-Fetching Techniques
CN102033935A (zh) * 2010-12-20 2011-04-27 深圳市五巨科技有限公司 一种移动终端浏览器预加载的方法、装置和系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101539911A (zh) * 2008-03-18 2009-09-23 盛大计算机(上海)有限公司 加快浏览器网页显示的装置及方法
US20110029641A1 (en) * 2009-08-03 2011-02-03 FasterWeb, Ltd. Systems and Methods Thereto for Acceleration of Web Pages Access Using Next Page Optimization, Caching and Pre-Fetching Techniques
CN102033935A (zh) * 2010-12-20 2011-04-27 深圳市五巨科技有限公司 一种移动终端浏览器预加载的方法、装置和系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193819A (zh) * 2016-03-14 2017-09-22 广州市动景计算机科技有限公司 用于网页预读的方法、设备、浏览器及客户端设备

Also Published As

Publication number Publication date
CN104025082A (zh) 2014-09-03

Similar Documents

Publication Publication Date Title
US10372778B2 (en) Speculative actions based on user dwell time over selectable content
US10389826B2 (en) Webpage pre-reading method, apparatus and smart terminal device
KR101578991B1 (ko) Dom-기반 동형을 이용하여 웹-브라우징 연산을 메모라이징
US8375107B2 (en) Webpage pre-reading method, transfer server and webpage pre-reading system
US10515142B2 (en) Method and apparatus for extracting webpage information
US9916285B2 (en) Generating a preview of a web page for a mobile terminal
WO2017088405A1 (zh) 一种app开启广告预加载方法、装置和系统
KR102151457B1 (ko) 통신 시스템에서 페이지 로딩 시간 단축 방법 및 장치
US20170046023A1 (en) Method and apparatus for processing managing multimedia content
WO2013149455A1 (zh) 对网页进行换肤处理的方法和装置以及移动终端
WO2013097667A1 (zh) 网页内容加载控制方法及装置
US9152322B2 (en) Facilitating navigation of a webpage on computer device
WO2017202255A1 (zh) 页面展示方法、装置和客户端设备
US9411786B2 (en) Method and apparatus for determining the relevancy of hyperlinks
CN102681996B (zh) 预读方法和装置
WO2012159360A1 (zh) 网页预取的方法及装置
WO2015154270A1 (zh) 一种信息搜索的方法以及装置
US20140331117A1 (en) Application-based dependency graph
CN104933045A (zh) 网络信息浏览方法及网络信息浏览装置
CN109002557B (zh) 基于浏览器缓存机制优化网页加载速度的方法、电子设备
WO2013097107A1 (zh) 网页预读方法、网页预读装置、浏览器和移动终端
US9542373B2 (en) Method and apparatus for compressing webpage text
KR101325195B1 (ko) 검색 수행 시간 단축을 위한 장치, 방법 및 컴퓨터 판독 가능한 기록 매체
KR20100008466A (ko) 중복 웹페이지 제거 장치 및 방법
KR20120016335A (ko) 오프라인 실행을 위한 웹 페이지 사전 캐싱 시스템 및 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11879017

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 15/12/2014)

122 Ep: pct application non-entry in european phase

Ref document number: 11879017

Country of ref document: EP

Kind code of ref document: A1