CN104063510A - Method and software for increasing page reaction speed - Google Patents

Method and software for increasing page reaction speed Download PDF

Info

Publication number
CN104063510A
CN104063510A CN 201410325091 CN201410325091A CN104063510A CN 104063510 A CN104063510 A CN 104063510A CN 201410325091 CN201410325091 CN 201410325091 CN 201410325091 A CN201410325091 A CN 201410325091A CN 104063510 A CN104063510 A CN 104063510A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
page
html
html data
corresponding
display
Prior art date
Application number
CN 201410325091
Other languages
Chinese (zh)
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

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/30Information retrieval; Database structures therefor ; File system structures therefor
    • G06F17/30861Retrieval from the Internet, e.g. browsers
    • G06F17/30899Browsing optimisation
    • G06F17/30902Browsing optimisation of access to content, e.g. by caching

Abstract

The embodiment of the invention provides a method and software for increasing page reaction speed. In the method, display software obtains HTML data corresponding to a page request input by a user and received by the display software, wherein the HTML data comprise HTML data corresponding to text labels achieving the hyperlink function; after the obtained HTML data are analyzed, a page corresponding to the page request is displayed. The display software does not analyze the HTML data corresponding to hyperlink labels such as <a> labels but analyzes the HTML data replaced by the text labels, and accordingly as is known from tests related to the display software, analyzing of the HTML data of the text labels through the display software is quicker than analyzing of the HTML data corresponding to the <a> labels, so that speed of responding to the display page of the display software is increased, and user experiment is further improved.

Description

一种提高页面反应速度的方法及软件 Method for improving the response speed of the page and software

技术领域 FIELD

[0001] 本发明涉及一种提高页面反应速度的方法及软件。 [0001] The present invention relates to a method and software for improving the reaction rate of the page.

背景技术 Background technique

[0002] 随着网络技术及页面设计的发展,页面的内容越来越丰富,并且通常采用采用超文本标记语言(Hyper Text Mark-up Language, HTML)格式来体现,HTML文本是由TML命令组成的描述性文本,HTML命令可以说明文字、图形、动画、声音、表格、链接等。 [0002] With the development of network technology and page design, increasingly rich content of the page, and usually using HTML (Hyper Text Mark-up Language, HTML) format to reflect, HTML text is composed by the TML command descriptive text, HTML commands can be descriptive text, graphics, animation, sound, tables, links and so on. HTML的结构包括头部(Head),主体(Body)两大部分,其中,头部描述浏览器所需的信息,而主体则包含所要说明的具体内容。 HTML structure comprising a head (Head), the body (Body) two parts, wherein the header information required to describe the browser, while the body is to be explained in the specific content comprises. HTML语言的基本构成单元是标签,例如超链接<a>标签(又称锚点标签,代表不同页面之间的链接关系)、<br>标签(代表换行)等。 The fundamental unit of language is HTML tags, such as hyperlinks <a> label (also known as anchor tags, on behalf of the link relationship between different pages), <br> label (on behalf of line breaks) and so on.

[0003] 在现有的技术中,用户需要浏览页面时,通常是利用浏览器来实现的,通过浏览器可以显示在万维网或局域网内的文字、影像及其他资讯,具体的实现流程为:浏览器在接收到用户输入的页面请求例如Web页面请求时,从Web服务器下载此Web页面请求对应的HTML数据,并在下载完毕后,解析相关HTML数据,建立标签元素组成的树结构,并计算建立的树结构中各标签的位置,最后,根据各标签的位置进行排版后显示Web页面请求对应的页面。 [0003] In the conventional technique, the user needs to browse the page, usually using a browser to achieve, can display text in a local area network or the World Wide Web, video and other information through a browser, the specific implementation process: Browse in upon receiving the page requesting user input, such as Web page request, downloaded from the Web server the Web page requested HTML data corresponding to, and after the download is complete, the tree structure analysis related HTML data, to create a label elements, and calculates the establishment the position of each label in the tree structure, and finally, a position of each tag is displayed the Web page corresponding to the request after the page layout.

[0004] 在上述页面浏览流程中,如果用户输入的页面请求对应的HTML数据是由大量的<a>标签构成,而此类标签后续需要浏览器花费较长时间进行解析,这就导致浏览器显示此Web页面的速度较慢,进而使得用户体验较低。 [0004] In the page browsing process, HTML page data if the user input request is made corresponding to a large number of <a> label, such labels require subsequent browser parses takes a long time, which causes the browser this Web page is displayed slower, thus making the user experience low.

发明内容 SUMMARY

[0005] 本发明实施例提供了一种提高页面反应速度的方法及软件,用以解决现有显示软件显示页面较慢使得用户体验较低的问题。 Example [0005] The present invention provides a method and software for improving the reaction rate of the page, to solve the conventional slow display software display page such that a user experiences the problem of low.

[0006] 基于上述问题,本发明实施例提供的一种提高页面反应速度的方法,包括: 显示软件获取自身接收的用户输入的页面请求对应的HTML数据,所述HTML数据包括用于实现超链接功能的文本标签对应的HTML数据; 对获取到的HTML数据进行解析后,显示所述页面请求对应的页面。 [0006] Based on the above problems, for improving the reaction speed of the page according to an embodiment of the method of the present invention, comprises: a display page HTML data acquisition software user input corresponding to the received request itself, for realizing the HTML data includes hyperlinks text feature corresponding to HTML data; obtained after parsing HTML data, display a page corresponding to the page request.

[0007] 本发明实施例提供的一种显示软件,包括: 接收模块,用于接收用户输入的页面请求; 获取模块,用于在所述接收模块接收到所述页面请求时,获取所述页面请求对应的HTML数据,所述HTML数据包括用于实现超链接功能的文本标签对应的HTML数据; 解析显示模块,用于对所述获取模块获取到的HTML数据进行解析后,显示所述页面请求对应的页面。 [0007] An embodiment of the present invention provides display software, comprising: receiving means for receiving a page request input by a user; obtaining module, for receiving the page request when the receiving module to obtain the page HTML data corresponding to the request, including the HTML data for implementing hyperlinks HTML data corresponding to the text label; parsing a display module, the acquisition module for acquiring the HTML data parsing the page display request the corresponding page.

[0008] 本发明实施例的有益效果包括: 本发明实施例提供的一种提高页面反应速度的方法及软件,在该方法中,显示软件获取自身接收的用户输入的页面请求对应的HTML数据,此HTML数据包括用于实现超链接功能的文本标签对应的HTML数据;然后,对获取到的HTML数据进行解析后,显示页面请求对应的页面。 [0008] Advantageous effects of the embodiments of the present invention comprises: a method and software provided for improving the reaction rate of the page of the present embodiment of the invention, in the method, the software acquires the page itself displays a user input received HTML data corresponding to the request, this HTML data includes hyperlinks implement HTML data corresponding to the tag of the text; then, after the HTML data acquired by analyzing display the requested page corresponding to the page. 在本发明实施例中,显示软件在解析用户输入的页面请求对应的HTML数据时, 不再解析超链接标签例如<a>标签对应的HTML数据,而是解析由文本标签替代的HTML数据,这样一来,经过对显示软件的相关测试得知,显示软件解析文本标签的HTML数据,相对于解析<a>标签对应的HTML数据较快,因此,上述这种处理方式,提高了显示软件反应显示页面的速度,进一步提高了用户体验。 In an embodiment of the present invention, the display software when parsing HTML page requesting user input data corresponding to the tag is no longer parsing HTML hyperlink tags corresponding to data <a> example, but alternative parse HTML tags from the text data, so As a result, after the relevant software testing show that, HTML data display software parsing text labels, with respect to parse the HTML data corresponding to the tag <a> fast, therefore, the above-described embodiment of this process, reaction is shown to improve the display software the speed of the page, to further improve the user experience.

附图说明 BRIEF DESCRIPTION

[0009] 图1为本发明实施例提供的一种提高页面反应速度的方法的流程图; 图2为本发明实施例提供的一种显示软件的结构示意图。 [0009] FIG. 1 is a flowchart of a method for improving the reaction speed of the page according to an embodiment of the present invention; FIG. 2 is a schematic view of one kind of structure of the software provides a display of the present embodiment of the invention.

具体实施方式 Detailed ways

[0010] 下面结合说明书附图,对本发明实施例提供的一种提高页面反应速度的方法及软件的具体实施方式进行说明。 [0010] the following description in conjunction with the accompanying drawings, the present invention will be described specific embodiment a method for improving the reaction speed of the page according to an embodiment and software.

[0011] 本发明实施例提供的一种提高页面反应速度的方法,如图1所示,具体包括以下步骤: 511 :显示软件获取自身接收的用户输入的页面请求对应的HTML数据; 在这里,上述HTML数据中包括有用于实现超链接功能的文本标签对应的HTML数据,显示软件在后续解析这种文本标签对应的HTML数据时,相对于解析超链接标签例如<a>标签对应的的HTML事件而言,解析的速度较快,这个结论是对显示软件解析相关HTML数据的不断测试得到的; 512 :对获取到的HTML数据进行解析后,显示页面请求对应的页面。 [0011] A method for improving the response speed of the page according to an embodiment of the present invention, shown in Figure 1, includes the following steps: 511: obtaining the page itself display software user input received HTML data corresponding to the request; here, the above-mentioned HTML data includes a text label for implementing the hyperlinks corresponding to the HTML data, display software at the time of this subsequent parse the HTML data corresponding to the text labels, the label with respect to parse hyperlinks <a> e.g. an HTML tag corresponding to the event , the parsing is faster, this conclusion is constantly analyzing software to display the relevant test data obtained HTML; 512: after obtaining HTML data parsing, display the requested page corresponding to the page.

[0012] 优选的,在上述步骤S11中,显示软件可从Web服务器侧获取相应的HTML数据。 [0012] Preferably, in step S11, the display software corresponding to the HTML data acquired from a Web server side. 在这里,对于Web服务器来说,它可利用JavaScript脚本语言来编写上述文本标签对应的HTML代码。 Here, a Web server, it can be written in HTML code for the text label corresponding with JavaScript scripting language. 例如,文本标签可为〈label〉标签,当然,文本标签还可以是其他标签,在此不再歹丨J举。 For example, a text label may be a <label> tag, of course, it may be other text label tag, which is not bad Shu J lift.

[0013] 需要说明的是,对于Web服务器来说,将某个<a>标签对应的HTML事件,利用JavaScript脚本语言编写成〈label〉标签对应的HTML数据,整个编写过程为现有技术,在此不再详述。 [0013] It should be noted that, for a Web server, it will be a corresponding HTML tags <a> events, JavaScript scripting language to use <label> tags corresponding to the HTML data, the whole process of preparing for the prior art, this not elaborate.

[0014] 例如,假设某个<a>标签对应的HTML事件为:用户点击该标签时,需要跳转到相应的目标页面(例如target_url. html),同时在此页面上,当用户的鼠标停留在此标签上时标签需要展示A样式,鼠标移开时展示B样式,双击该标签时触发页面事件(如跳出提示信息)。 [0014] For example, suppose a <a> corresponding HTML tags for the event: when the user clicks on the label, you need to jump to the corresponding target page (for example target_url html), while on this page, when a user's mouse hovers on this tab you need to show the label style A, B show style mouse-out, triggering a page, double-click event when the label (eg bounce message). 基于上述HTML事件,对应的HTML数据可如下所示: Based on the HTML event corresponds to the HTML data can be shown as follows:

[0015] 在上述<a>标签对应的HTML数据中link定义为已访问的链接样式;visited定义为未访问的链接样式;hover定义为当有鼠标悬停在链接上时的样式;href定义为单击此"链接"时,跳转的URL地址为target_url. html这个页面。 [0015] In the above-mentioned HTML data corresponding to the link <a> tag link defined as style visited; visited link style defined as unvisited; hover defined as the styles have hover on a link; is defined as the href click on this "link", the jump URL address target_url. html this page.

[0016] 对于Web服务器来说,如果将上述<a>标签对应的HTML数据,利用JavaScript脚本语言编写成〈label〉标签对应的HTML数据的话,具体的HTML数据如下; [0016] For a Web server, if the above-mentioned HTML data corresponding to the tag <a>, can use JavaScript language to <label> HTML data corresponding to the tag, then, the following specific HTML data;

ondblclick=〃invokeDbEvent () 〃> 链接〈/label〉 ....../7(均使用label标签,由label标签"代替"并实现a标签的功能) 〈/body〉 在上述〈label〉标签对应的HTML数据中,对于显示软件来说,它在解析这些HTML数据时,首先会执行〈body〉标签的onload事件,此事件中mountEvent函数的作用就是对label 标签挂载相应的html事件:通过HTML DOM的Docment对象获取页面中所有的label标签对象,由于上述<a>标签对应的HTML事件中需要实现相应的"单击跳转"事件(<a>标签href属性)以及相应的各类样式(visited、hover等),因此,在上述〈label〉标签对应的HTML数据中,需要在mountEvent函数中获取的所有label标签对象分别挂载html标准的onmouseover (鼠标停留此标签是触发)及onmouseout (鼠标离开此标签时触发)事件,这些事件定义为此label标签的样式,由此实现与<a>标签的样式相同的功能,与此同时,还将label ondblclick = 〃invokeDbEvent () 〃> Link </ label> ...... / 7 (both using the label tag, "instead of" implement the functions of a label and tag label) </ body> In the <label> tag corresponding to the HTML data, the software for the display, it while parsing the HTML data, first executes onload event <body> tag, the role of this function is the event mountEvent mounted on the corresponding html tag label events: by HTML DOM object is to get all of Docment the label label objects on the page, since the event <a> HTML tags corresponding to the need to implement the corresponding "click Jump" event (<a> tag href attribute) and the corresponding Stylist (visited, hover, etc.), and therefore, in the <label> tag in the HTML data corresponding to the required function acquires mountEvent tag label all objects are mounted the onmouseover html standard (this label is hovering trigger) and onmouseout ( triggered when the mouse leaves the label) of events defined for this tag style label, thereby achieving the same style <a> label function, meanwhile, will also label 标签的onclick事件实现为单击跳转功能(跳转功能可以通过HTML D0M的Windows 对象的Location对象实现)。 onclick event tag implemented as click Jump function (jump function can be achieved by Location object HTML D0M of Windows objects).

[0017] 这样一来,采用〈label〉标签对应的HTML数据替代<a>标签对应的HTML数据,后续显示软件解析起来,解析的速度较快,这就提高了反应显示页面的速度,进而提高了用户体验。 [0017] Thus, the use of <label> tags corresponding to the HTML data corresponding to the tag <a> alternative HTML data, parsing up subsequent display software, parsing faster, which increases the speed of the reaction the displayed page, thereby improving the user experience.

[0018] 另外,在本发明实施例中,显示软件可为IE浏览器、火狐(Firefox)浏览器、 Google浏览器和Opera浏览器其中之一。 [0018] Further, in the embodiment of the present invention, the display may be a software IE, Firefox (Firefox) browser, Google Chrome and one Opera browser therein. 也就是说,对于不同类型的显示软件来说,均可执行上述流程,以提高显示页面的速度,进而提高用户体验。 That is, for different types of display software, can perform the above processes to improve speed display page, thus improving the user experience.

[0019] 基于同一发明构思,本发明实施例还提供了一种显示软件,由于该装置所解决问题的原理与前述一种提高页面反应速度的方法相似,因此该装置的实施可以参见前述方法的实施,重复之处不再赘述。 [0019] Based on the same inventive concept, an embodiment of the present invention further provides a display software, since the principle of the device is similar to the problem with the preceding page for improving the reaction rate process, implementation of the apparatus may refer to the aforementioned method embodiment, repeated description of which will not be repeated.

[0020] 本发明实施例提供的一种显示软件,如图2所示,具体包括: 接收模块21,用于接收用户输入的页面请求; 获取模块22,用于在接收模块21接收到页面请求时,获取页面对应的HTML数据; 在这里,上述HTML数据中包括有用于实现超链接功能的文本标签对应的HTML数据; 解析显示模块23,用于对获取模块22获取到的HTML数据进行解析后,显示页面请求对应的页面。 [0020] An embodiment of the present invention provide a display software embodiment, shown in Figure 2, comprises: a receiving module 21, a user input for receiving the page request; obtaining module 22, configured to receiving module 21 receives the page request when acquiring HTML data corresponding to the page; here, the HTML data includes text data for the HTML tag corresponding to achieve hyperlink functions; parsing a display module 23, after obtaining module is used to parse the HTML data 22 , display the requested page corresponding to the page.

[0021] 优选地,上述获取模块22获取的HTML数据中文本标签对应的HTML数据是利用JavaScript脚本语言编写的HTML代码。 [0021] Preferably, the acquisition module 22 acquires the HTML data corresponding to the tag of the present Chinese data using JavaScript HTML scripting language HTML code.

[0022] 优选地,上述获取模块22获取的文本标签为Label标签。 [0022] Preferably, the acquisition module 22 acquires a text label Label Label.

[0023] 优选地,上述装置可为IE浏览器、Firefox浏览器、Google浏览器和Opera浏览器其中之一。 [0023] Preferably, the apparatus may be a browser IE, Firefox browser, one of Google Chrome and wherein the Opera browser.

[0024] 显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神范围。 [0024] Obviously, those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the present invention. 这样,倘若本发明的这些修改和变型属于本发明权利要求书及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 Thus, if these modifications and variations of the present invention as claimed in the present invention belong within the scope of claims and equivalents thereof, the present invention intends to include these modifications and variations.

Claims (7)

  1. 1. 一种提高页面反应速度的方法,其特征在于,包括:显示软件获取自身接收的用户输入的页面请求对应的超文本标记语言HTML数据,所述HTML数据中包括用于实现超链接功能的文本标签对应的HTML数据;对获取到的HTML数据进行解析后,显示所述页面请求对应的页面。 1. A method of increasing the reaction rate of the page, characterized in that, comprising: a display software acquiring HTML page HTML data itself inputted by the user corresponding to the received request, the HTML data includes functions for implementing hyperlinks the HTML text label data; obtained after parsing HTML data, display a page corresponding to the page request.
  2. 2. 如权利要求1所述的一种提高页面反应速度的方法,其特征在于,所述文本标签对应的HTML数据为利用JavaScript脚本语言编写的HTML代码。 2. An A method according to claim 1 page increase the reaction rate, wherein said text data corresponding to the tag using JavaScript HTML scripting language HTML code.
  3. 3. 如权利要求1或2所述的一种提高页面反应速度的方法,其特征在于,所述文本标签为Label标签。 3. The one or the method of claim 1, the reaction rate increases the page, wherein the text label Label Label.
  4. 4. 如权利要求3所述的一种提高页面反应速度的方法,其特征在于,所述显示软件为IE浏览器、Firefox浏览器、Google浏览器和Opera浏览器其中之一。 4. A method for improving the reaction speed of the page to claim 3, wherein the display software is IE, one Firefox browser, Google and Opera browser therein.
  5. 5. -种显示软件,其特征在于,包括:接收模块,用于接收用户输入的页面请求;获取模块,用于在所述接收模块接收到所述页面请求时,获取所述页面请求对应的超文本标记语言HTML数据,所述HTML数据中包括有用于实现超链接功能的文本标签对应的HTML数据;解析显示模块,用于对所述获取模块获取到的HTML数据进行解析后,显示所述页面请求对应的页面。 5. - kinds of display software, characterized by comprising: receiving means for receiving a page request input by a user; obtaining module, configured to receive the page request receiving module, corresponding to the request to acquire the page Hypertext Markup language HTML data, the HTML data includes text data for the HTML tag corresponding to achieve hyperlink functions; parsed display module, for acquiring module acquires the HTML data by analyzing the display page corresponding to the page request.
  6. 6. 如权利要求5所述的一种显示软件,其特征在于,所述获取模块获取的HTML数据中文本标签对应的HTML数据利用JavaScript脚本语言编写的HTML代码。 6. An claimed in claim 5, wherein the display software, wherein, the acquiring module acquires HTML data corresponding to the tag of the present Chinese HTML data can use JavaScript language HTML code.
  7. 7. 如权利要求5或6所述的一种显示软件,其特征在于,所述获取模块获取的文本标签为Label标签。 7. An claim 5 or claim 6 display software, wherein the obtaining module obtains a text label Label Label.
CN 201410325091 2014-07-09 2014-07-09 Method and software for increasing page reaction speed CN104063510A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201410325091 CN104063510A (en) 2014-07-09 2014-07-09 Method and software for increasing page reaction speed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201410325091 CN104063510A (en) 2014-07-09 2014-07-09 Method and software for increasing page reaction speed

Publications (1)

Publication Number Publication Date
CN104063510A true true CN104063510A (en) 2014-09-24

Family

ID=51551224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201410325091 CN104063510A (en) 2014-07-09 2014-07-09 Method and software for increasing page reaction speed

Country Status (1)

Country Link
CN (1) CN104063510A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257538A (en) * 2008-03-25 2008-09-03 华为技术有限公司 Method and apparatus for processing request in browsers
CN103164201A (en) * 2011-12-15 2013-06-19 航天信息软件技术有限公司 Web page generating method
US20140149397A1 (en) * 2005-09-19 2014-05-29 Google Inc. Customized Data Retrieval Applications for Mobile Devices Providing Interpretation of Markup Language Data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140149397A1 (en) * 2005-09-19 2014-05-29 Google Inc. Customized Data Retrieval Applications for Mobile Devices Providing Interpretation of Markup Language Data
CN101257538A (en) * 2008-03-25 2008-09-03 华为技术有限公司 Method and apparatus for processing request in browsers
CN103164201A (en) * 2011-12-15 2013-06-19 航天信息软件技术有限公司 Web page generating method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李彦刚等: "基于HTMLParser的Web信息抽取系统的设计与实现", 《辽宁石油化工大学学报》 *

Similar Documents

Publication Publication Date Title
US20120011430A1 (en) Infinite Scrolling
US20080120538A1 (en) Visual web page authoring tool for multi-context web pages
US7921353B1 (en) Method and system for providing client-server injection framework using asynchronous JavaScript and XML
US20110202854A1 (en) Metadata Capture for Screen Sharing
US20110015917A1 (en) Browser emulator system
US20130132833A1 (en) Systems and Methods For Remote Tracking And Replay Of User Interaction With A Webpage
US20030084115A1 (en) Facilitating contextual help in a browser environment
US7865544B2 (en) Method and system for providing XML-based asynchronous and interactive feeds for web applications
US20100174774A1 (en) Method for server-side logging of client browser state through markup language
US20080077855A1 (en) Generic website
US20130031457A1 (en) System for Creating and Editing Temporal Annotations of Documents
US8543668B1 (en) Click tracking using link styles
CN102156709A (en) Browser engine mode switching method
US20150088968A1 (en) Systems and methods for managing loading priority or sequencing of fragmants of a web object
CN101075880A (en) Method for navigating address of browser
CN101082917A (en) Method and apparatus for rapid previewing summary of web page content
CN103164300A (en) Mobile terminal touch screen automatic testing method and device
US20120173967A1 (en) Method and device for cascading style sheet (css) selector matching
US20140132571A1 (en) Automated testing of gesture-based applications
CN102200971A (en) Method and equipment for realizing webpage content previewing
US20130263023A1 (en) Graphical Overlay Related To Data Mining and Analytics
US20120192063A1 (en) On-the-fly transformation of graphical representation of content
CN101515300A (en) Method and system for grabbing Ajax webpage content
US20110191431A1 (en) Method and system for updating display screens
US20100192071A1 (en) Client program, terminal, method, server system and server program

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
WD01