CN103699535B - Web page loading method and a terminal device - Google Patents

Web page loading method and a terminal device Download PDF

Info

Publication number
CN103699535B
CN103699535B CN 201210365938 CN201210365938A CN103699535B CN 103699535 B CN103699535 B CN 103699535B CN 201210365938 CN201210365938 CN 201210365938 CN 201210365938 A CN201210365938 A CN 201210365938A CN 103699535 B CN103699535 B CN 103699535B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
thread
data
page
portion
processing
Prior art date
Application number
CN 201210365938
Other languages
Chinese (zh)
Other versions
CN103699535A (en )
Inventor
袁晓勇
Original Assignee
联想(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Grant date

Links

Abstract

提供了一种网页加载方法及终端设备。 There is provided a method for loading a web page and a terminal device. 所述网页加载方法包括:浏览器向服务器请求网页;浏览器从服务器接收所请求网页的网页数据,所述网页数据包括第一数据部分,所述第一数据部分用于实现第一功能;以及浏览器通过第一线程进行所述第一数据部分的至少部分处理,通过第二线程进行所请求网页的呈现。 The method comprises loading the page: web browser request to the server; web browser receives the requested data from the web server, the web page data comprises a first data portion, the first portion of data for realizing a first function; and browser via a first thread portion of the at least a first data processing portion, rendering the page requested by the second thread. 所述网页加载方法及终端设备通过第一线程对需要大量计算/处理资源的任务进行至少部分处理,而通过第二线程进行网页呈现,从而使得包含需要大量计算/处理资源的数据的网页的呈现更加流畅。 The method and the page is loaded by a first terminal device requires a lot of computing thread / task processing resources at least part of the processing, the page presentation is performed by the second thread, so that a page containing require significant computing / processing resources data presented more smoothly.

Description

网页加载方法及终端设备 Web page loading method and a terminal device

技术领域 FIELD

[0001] 本发明涉及网页加载,并且更具体地涉及一种网页加载方法及终端设备。 [0001] The present invention relates to the page loads, and, more particularly, to a method for loading a web page and a terminal device.

背景技术 Background technique

[0002] 随着浏览器与网页技术的飞速发展,JavaScript正在扮演着越发重要的角色,很多Web App (网页应用)的业务逻辑和算法都通过JavaScript实现。 [0002] With the rapid development of technology and web browsers, JavaScript is playing an increasingly important role in many Web App (web applications) business logic and algorithms are achieved through JavaScript. 目前,基于http架构B/S 协议的Web App或网页都以明文传递数据和资源,然而如果这些JavaScript程序的源码都以明文暴露,则必然会产生泄漏核心技术的风险。 Currently, Web App or Web page http-based architecture B / S protocols are passed in clear text data and resources, but if these source JavaScript programs are exposed in clear text, it would have a risk of leakage of core technology.

[0003] 通常可以将程序源码进行混淆压缩以增加阅读分析难度,从而实现对程序源码的保护。 [0003] The program source code can often be confused with compression to increase the difficulty of reading the analysis, in order to achieve the protection of program source code. 然而,这在本质上也只是增加了分析程序源码的难度并相应地延长了分析时间而已, 不能从实质上起到保护程序源码的作用。 However, this is in essence only increases the difficulty of program source code analysis and accordingly extended the analysis time only, can not play the role of source protection program in essence.

[0004] 作为另一种手段,可以采用加密传输程序源码的方案,然而由于程序源码的解密所需的资源消耗量相当庞大,而传统的JavaScript又是单线程的,因此可能导致浏览器的用户界面冻结,大大降低了网页流畅程度。 [0004] As another means can be used to encrypt the transmission of program source code program, however, due to the consumption of resources required for the program source code decryption it is enormous, and the traditional JavaScript is single-threaded, which may cause the user's browser freeze interface, greatly reducing the page fluency.

[0005] 因此,希望存在一种网页加载方法及终端设备,其能够流畅地运行/呈现需要大量计算/处理资源消耗的网页。 [0005] Accordingly, there is a desirable method for loading a web page and a terminal apparatus, which is capable of smoothly running / presentation requires a lot of computing / processing the page resource consumption.

发明内容 SUMMARY

[0006] 考虑到上述问题而做出了本发明。 [0006] In view of the above problems and made the present invention. 本发明旨在提供一种网页加载方法及终端设备,其通过利用第一线程来执行需要大量计算/处理资源消耗的任务、并且利用第二线程来进行网页呈现,从而能够流畅地运行/呈现需要大量计算/处理资源消耗的网页。 The present invention aims to provide a method for loading a web page and a terminal device that performs computationally intensive / processing resources consumed by the task using the first thread, and with a second thread to render the page, it is possible to run smoothly / presentation requires a large number of computing / processing web resource consumption.

[0007] 根据本发明的一方面,提供了一种网页加载方法,其应用于终端设备,所述方法包括:浏览器向服务器请求网页;浏览器从服务器接收所请求网页的网页数据,所述网页数据包括第一数据部分,所述第一数据部分用于实现第一功能;以及浏览器通过第一线程进行所述第一数据部分的至少部分处理,通过第二线程进行所请求网页的呈现。 [0007] According to an aspect of the present invention, there is provided a method of loading the page, which is applied to a terminal device, the method comprising: a web browser request to a server; web browser receives the requested data from the web server, the web page data includes a first data portion, the first portion of data for realizing a first function; and browser via a first thread portion of the at least a first data processing portion performs the requested web page presented by the second thread .

[0008] 优选地,对所述第一数据部分进行处理需要大量计算/处理资源,S卩,所述第一数据部分处理是需要大量计算/处理资源消耗的任务。 [0008] Preferably, the first data processing portion requires a lot of computing / processing resources, S Jie, the first portion of data is computationally intensive process / task resource consumption.

[0009] 优选地,所述第一线程是通过浏览器调用web worker而开启的,所述第二线程是浏览器的固有线程。 [0009] Preferably, the first thread is turned on by the browser web worker calls, the second thread is a thread of the browser inherent.

[0010] 优选地,在所述网页加载方法中,浏览器通过第一线程进行所述第一数据部分的至少部分处理可以包括:识别所述第一数据部分;将所述第一数据部分加载到所述第一线程中;在所述第一线程中运行第一算法,以便利用该第一算法对所述第一数据部分进行处理。 [0010] Preferably, the method of loading the page, the browser first thread through at least a portion of said first data processing section may include: identifying the first data portion; a first data portion of the load to the first thread; and a first algorithm running in the first thread, so that using the first algorithm for processing the first data portion.

[0011] 优选地,在所述网页加载方法中,浏览器通过第二线程进行所请求网页的呈现可以包括:所述第一线程在对所述第一数据部分进行处理之后,将处理结果传送到所述第二线程;以及所述第二线程至少根据所述第一线程的处理结果,来呈现所请求网页。 The first thread after processing the first data portion, the processing result: [0011] Preferably, the method of loading the page, the page requested by the second thread can include a browser rendering by to the second thread; and the second thread based at least on the processing result of the first thread to render the requested web page.

[0012]优选地,所述第一数据部分是加密数据,通过所述第一线程进行所述第一数据部分的解密,并且所述第二线程根据所述第一线程的处理结果,来呈现所请求网页。 [0012] Preferably, the first portion of the data is encrypted data, decrypting said first data portion by the first thread and the second thread according to processing results of the first thread to render the requested page.

[0013]优选地,在所述第一线程中运行解密算法,以便利用该解密算法对所述第一数据部分进行解密处理。 [0013] Preferably, the decryption algorithm running in the first thread, so that the decryption algorithm using the first data portion is decrypted.

[0014] 优选地,所述网页数据还包括第二数据部分,所述第二线程根据所述第一线程的处理结果和所述第二数据部分来呈现所请求的网页,并且所述第一线程对所述第一数据部分的处理与所述第二线程的网页呈现处理中的至少一部分是并行进行的。 [0014] Preferably, the web page data further comprises a second data portion, said second thread to render the requested web page according to the processing result of the first thread and the second data portion, and the first processing the first data portion of the thread of the second thread web exhibits at least part of the processing is performed in parallel.

[0015] 根据本发明的另一方面,提供了一种终端设备,所述终端设备具有浏览器,所述终端设备包括:请求部件,用于基于浏览器的访问请求向服务器请求网页;接收部件,用于从服务器接收所请求网页的网页数据,所述网页数据第一数据部分,所述第一数据部分用于实现第一功能;第一线程处理部件,用于通过第一线程进行所述第一数据部分的至少部分处理;以及第二线程处理部件,用于通过第二线程进行所请求网页的呈现。 [0015] According to another aspect of the present invention, there is provided a terminal device, the terminal device has a browser, the terminal apparatus comprising: request means for requesting access to a browser-based web page request to a server; receiving means , for receiving web page data from the server the requested web page, the page data of the first data portion, the first portion of data for realizing a first function; a first thread processing means for performing a first thread through the at least partially processing the first data portion; and the second thread processing means for rendering the web page requested by a second thread.

[0016] 优选地,所述终端设备还包括:数据识别部分,用于识别所述网页数据中的所述第一数据部分,并且将所述第一数据部分加载到所述第一线程中,所述第一线程处理部件在所述第一线程中运行第一算法,用于通过第一线程进行所述第一数据部分的至少部分处理。 [0016] Preferably, the terminal apparatus further comprising: a data identifying part for identifying the web page data in the first data portion and the first portion of data is loaded into the first thread, processing the first thread member in the first operation of the first algorithm thread, for at least a portion of said first data processing section by the first thread.

[0017] 优选地,在所述终端设备中,所述第一线程处理部件在对所述第一数据部分进行处理之后,将处理结果传送到所述第二线程处理部件,所述第二线程处理部件至少根据所述第一线程的处理结果,来呈现所请求网页。 [0017] Preferably, in the terminal device, the first thread processing means after processing the first data portion, the processing result is transmitted to the second thread processing means, said second thread processing means at least according to processing results of the first thread to render the requested web page.

[0018] 优选地,在所述终端设备中,所述网页数据还包括第二数据部分,所述第二线程处理部件根据所述第一线程处理部件的处理结果和所述第二数据部分来呈现所请求的网页, 所述第一线程处理部件对所述第一数据部分的处理与所述第二线程处理部件的网页呈现处理中的至少一部分是并行进行的。 [0018] Preferably, in the terminal device, the web page data further comprises a second data portion, said second thread portion to processing means according to the processing result of processing the first thread member and the second data render the requested web page, the first thread processing means processing the first data portion and the second thread web page rendering processing means at least part of the processing is performed in parallel.

[0019] 根据本发明的网页加载方法及终端设备,通过第一线程对需要大量计算/处理资源的任务进行至少部分处理,而通过第二线程进行网页呈现,从而使得包含需要大量计算/ 处理资源的数据的网页的呈现更加流畅。 [0019] The page loading method and a terminal apparatus according to the present invention, by a first thread of the computationally intensive tasks / processing resources at least part of the processing, performed by the second thread web page presentation, comprising computationally intensive so that / processing resources web page data rendered more smoothly.

[0020] 根据本发明的又一方面,提供了一种网页加载方法,其应用于终端设备,所述方法包括:浏览器向服务器请求网页;浏览器从服务器接收所请求网页的网页数据,所述网页数据包括加密数据;以及浏览器通过第一线程进行所述加密数据的解密,通过第二线程进行所请求网页的呈现。 [0020] According to another aspect of the present invention, there is provided a method of loading the page, which is applied to a terminal device, the method comprising: a web browser request to a server; web browser receives the requested data from the web server, the said web page data includes encrypted data; browser decrypting said encrypted data by a first thread, the requested web page rendering by a second thread.

[0021] 优选地,所述第一线程是通过调用web worker而开启的,所述第二线程是浏览器的固有线程。 [0021] Preferably, the first thread by calling the web worker turned on, the second thread is a thread of the browser inherent.

[0022] 优选地,在所述网页加载方法中,通过第一线程进行所述加密数据的解密包括:识别所述加密数据;将所述加密数据加载到所述第一线程中;在所述第一线程中运行解密算法,以便对所述加密数据进行解密。 [0022] Preferably, the page load process, the encrypted data is decrypted by the first thread comprises: identifying the encrypted data; loading the encrypted data to the first thread; the running a first thread decryption algorithm to decrypt the encrypted data.

[0023] 优选地,在所述网页加载方法中,通过第二线程进行所请求网页的呈现包括:所述第一线程在对所述加密数据进行解密之后,将解密后的数据传送到所述第二线程;以及所述第二线程根据解密后的数据来进行所请求网页的呈现。 [0023] Preferably, in the method of loading the page, the page is requested for presentation by the second thread comprises: the first thread after decrypting the encrypted data, transmits the decrypted data to the a second thread; and the second thread performs the requested web page based on the decrypted data presentation.

[0024] 优选地,在所述网页加载方法中,在所述第一线程完成所述加密数据的解密之后, 辅助所述第二线程来进行所请求的网页的呈现。 After [0024] Preferably, the page load process, decrypting the encrypted data is completed in the first thread, the second thread to assist the requested web page presentation.

[0025] 优选地,在所述网页加载方法中,所述浏览器在向所述服务器请求所述网页时,还向所述服务器发送所述终端设备的设备信息以供所述服务器进行验证;并且所述浏览器还从所述服务器接收验证成功的通知消息,所述通知消息中包括用于所述加密数据的解密的密钥。 [0025] Preferably, the method of loading the page, the browser requesting the web server to the further transmitting device information of the terminal device to the server for the authentication server; and said browser receives notification of successful authentication message from the server, the notification message comprising a decryption key for the encrypted data.

[0026] 优选地,在所述网页加载方法中,用于所述加密数据的解密的密钥被保存在终端设备中,但在终端设备本地无法直接读取所述密钥。 [0026] Preferably, the page load process, the key used for decrypting the encrypted data is stored in the terminal device, the local terminal device but the key can not be read directly.

[0027] 优选地,在所述网页加载方法中,所述密钥以证书的形式保存在终端设备,所述证书是所述服务器或所述网页拥有者颁发给所述终端设备或所述终端设备的用户的。 [0027] Preferably, the method of loading the page, the key is stored in the form of a certificate of the terminal device, the server or the certificate is the owner of the web page presented to the terminal device or the terminal the user's device.

[0028] 优选地,在所述网页加载方法中,所述密钥存储在硬件中,在所述硬件与所述终端设备连接时,所述终端设备从所述硬件读取所述密钥,所述硬件是所述网页拥有者颁发给所述终端设备或所述终端设备的用户的。 [0028] Preferably, the method of loading the page, the key is stored in hardware, while the hardware is connected to the terminal device, the terminal device reads the key from the hardware, the hardware is the owner of the web page presented to the user terminal device or the terminal device.

[0029] 优选地,在所述网页加载方法中,所述浏览器在向所述服务器请求所述网页时,还向所述服务器发送所述终端设备的设备信息以供所述服务器进行验证;所述浏览器还从所述服务器接收验证成功的通知消息,所述通知消息包括读取所述密钥所需的关键数据;并且所述浏览器利用所述关键数据读取所述密钥。 [0029] Preferably, the method of loading the page, the browser requesting the web server to the further transmitting device information of the terminal device to the server for the authentication server; the browser receives from said server authentication success notification message, the notification message comprises key data required for reading the key; and the browser using the key data of the read key.

[0030] 根据本发明的再一方面,提供了一种终端设备,所述终端设备具有浏览器,所述终端设备包括:请求部件,用于基于浏览器的访问请求向服务器请求网页;接收部件,用于从服务器接收所请求网页的网页数据,所述网页数据包括加密数据;第一线程处理部件,用于通过第一线程进行所述加密数据的解密;以及第二线程处理部件,用于通过第二线程进行所请求网页的呈现。 [0030] According to another aspect of the present invention, there is provided a terminal device, the terminal device has a browser, the terminal apparatus comprising: request means for requesting access to a browser-based web page request to a server; receiving means , a web page for data from the server receives the requested web page, the web page data includes encrypted data; a first thread processing means, for decrypting said encrypted data is performed by a first thread; and a second thread processing means for the second thread presented by the requested web page.

[0031] 优选地,所述终端设备还包括:加密数据识别部件,用于识别所述网页数据中的所述加密数据,并将所述加密数据加载到所述第一线程中,所述第一线程处理部件在所述第一线程中运行解密算法,以便对所述加密数据进行解密。 [0031] Preferably, the terminal apparatus further comprising: encrypting data identifying means for identifying the encrypted data of the webpage data, and the encrypted data is loaded into the first thread, the first a threading member decryption algorithm running in the first thread in order to decrypt the encrypted data.

[0032] 优选地,在所述终端设备中,所述第一线程处理部件在对所述加密数据进行解密之后,将解密后的数据传送到所述第二线程处理部件,所述第二线程处理部件根据解密后的数据来进行所请求网页的呈现。 [0032] Preferably, in the terminal device, the first thread processing means, after decrypting the encrypted data, the decrypted data to said second thread processing means, said second thread processing means for rendering the requested web page based on the decrypted data.

[0033] 根据本发明的网页加载方法及终端设备,通过第一线程对加密数据进行解密,而通过第二线程进行网页呈现,从而使得包含加密数据的网页的呈现更加流畅。 [0033] The page loading method and a terminal apparatus according to the present invention, the first thread of decrypting the encrypted data, and the page rendered by the second thread, so that the encrypted data containing the page rendering more smoothly.

附图说明 BRIEF DESCRIPTION

[0034] 通过参考附图描述根据本发明实施例,本发明实施例的各种特征和优点将更明显,并且也更容易被理解,在附图中: [0034] understood that the drawings are described with reference to embodiments of the present invention, various features and advantages of embodiments of the present invention will become apparent and more readily in the accompanying drawings in which:

[0035]图1示出了根据本发明第一实施例的网页加载方法的流程图; [0035] FIG. 1 shows a flowchart of a method for loading a page of the first embodiment of the present invention;

[0036]图2示出了根据本发明第一实施例的网页加载方法中的双线程处理步骤的流程图; [0036] FIG. 2 shows a flow chart of a method for loading a page of the first embodiment of the present invention, the dual-threaded processing steps;

[0037]图3示出了根据本发明第二实施例的网页加载方法的流程图; [0037] FIG. 3 shows a flowchart of a method of loading the page to the second embodiment of the present invention;

[0038]图4示出了根据本发明第二实施例的网页加载方法中的双线程处理步骤的流程图; L⑻抑」图5不出J很聒本友明第一实施例的终端设备的示意性框图;以及[0040]图6示出了根据本发明第二实施例的终端设备的示意性框图: [0038] FIG. 4 shows a flowchart of processing two threads step loading method of the second embodiment of the web embodiment of the present invention; L⑻ suppression "FIG. 5 is not Mighty J Friends of the first embodiment according to the present embodiment is a terminal device a schematic block diagram; and [0040] FIG. 6 shows a schematic block diagram of a terminal apparatus of the second embodiment of the present invention:

[0041] 具体实现方式 [0041] The specific implementation

[0042]下面将参考附图来描述根据本发明实施例的网页加载方法。 [0042] will be described below with reference to load the page according to an embodiment of the method of the present invention, the accompanying drawings.

[0043]首先将参考图1来描述根据本发明第一实施例的网页加载方法100。 The method of loading the page [0043] First will be described with reference to FIG. 1 according to a first embodiment of the present invention 100. 根据本发明第一实施例的网页加载方法100应用于终端设备,并且在步骤S101开始。 According to a first embodiment of the present invention, a method embodiment 100 of the page load is applied to the terminal device, and starts at step S101.

[0044] 在步骤S110,所述终端设备通过浏览器向服务器请求网页。 [0044] In step S110, the terminal device requests the server to the web browser. 所述服务器可以是任何类型的数据服务器、网站服务器、云端服务器等等,所述网页可以是任何类型的网页,并且可以包括用javascript编写的程序、css文件、以及html文件。 The server can be any type of data servers, web servers, cloud server and so on, the web page can be any type of web page, and can include procedures written in javascript, css files, and html files.

[0045] 在步骤S120,所述终端设备通过浏览器从服务器接收所请求网页的网页数据,所述网页数据包括第一数据部分,所述第一数据部分用于实现第一功能。 [0045] In step S120, the terminal device receives the page from a server through a browser the requested web page data, said page data comprises a first data portion, the first portion of data for realizing a first function.

[0046]例如,所述第一数据部分可以包括用javascript编写的程序的源代码或者加密后的源代码,并且所述第一数据部分的处理需要大量计算/处理资源消耗。 [0046] For example, the first data portion may comprise javascript with programs written in source code or encrypted source code, and processing the first data portion requires a lot of computing / processing resource consumption. 例如,加密数据的解码需要消耗大量计算/处理资源(CPU资源),用javascript程序编写的网页应用的执行可能需要消耗大量计算/处理资源(CPU资源)。 For example, the decoding of the encrypted data requires large amounts of computing / processing resources (CPU resource), execution of the web application program may be written in javascript it requires considerable computing / processing resources (CPU resources).

[0047]根据实际情况,所述第一功能可以是网页应用功能或者可以是加密保护功能等等。 [0047] According to the actual situation, the first function may be a web application may be an encryption function or a protective function and the like.

[0048]如果采用浏览器的固有线程既执行所述第一数据部分的处理又呈现所述网页,则可能会使得网页的呈现显得迟滞。 [0048] If the browser inherent thread performs both processing the first data portion and presentation of the web page, you may make page rendering seems sluggish.

[0049]此外,所述第一数据部分也可以是css文件或者html文件的加密数据。 [0049] In addition, the first portion may be a data file or the encrypted data css html files.

[0050]在步骤S130,所述终端设备的浏览器通过第一线程进行所述第一数据部分的至少部分处理,通过第二线程进行所请求网页的呈现。 [0050] In step S130, the browser of the terminal device by the first thread at least a portion of the first data processing portion, rendering the second thread by the requested page.

[0051]例如,通过浏览器调用web worker而开启所述第一线程,而通过浏览器的固有线程来进行所请求网页的呈现。 [0051] For example, the first thread turned on by the browser to call web worker, and for rendering the web page requested by the inherent thread of the browser. 为了描述方便,将浏览器的固有线程称为第二线程,以区别于所述第一线程。 For convenience of description, the inherent thread of the browser as a second thread, to distinguish it from the first thread.

[0052]本发明的实施例中所述第一线程和第二线程为并行工作的两个进程。 The first thread and the second thread for the two processes operate in parallel Example [0052] the present invention.

[0053]例如,在所述第一数据部分是需要大量计算资源的网页应用的情况下,通过所述第一线程进行所述网页应用的计算,并且所述第二线程根据所述第一线程的处理结果来呈现所请求网页。 [0053] For example, when the moiety is a web application requires a lot of computing resources in the first data, calculates the web application by the first thread and the second thread according to the first thread the result of the processing to render the requested page.

[0054] 例如,在所述第一数据部分是加密数据的情况下,通过所述第一线程进行所述第一数据部分的解密,并且所述第二线程根据所述第一线程的处理结果,来呈现所请求网页。 [0054] For example, in the case where the first data portion is encrypted data, decrypting said first data portion by the first thread and the second thread according to the processing result of the first thread to render the requested page. [0055] 而且,所述第一数据部分可以是网页应用的加密数据,可以通过所述第一线程进行所述第一数据部分的解密并且通过第二线程来运行解密后的网页应用并呈现所请求网页,也可以通过所述第一线程进行所述第一数据部分的解密并运行解密后的网页应用,而通过第二线程呈现所请求网页。 [0055] Further, the first data portion may be a web application encrypted data can be decrypted by the first data portion by the first thread and the second thread web application to run and presenting the decrypted web page request may be performed by the first thread decrypting said first data portion and the decrypted application running web, while presenting the thread requested by the second web.

[0056] 在步骤S199,根据本发明第一实施例的网页加载方法100结束处理。 [0056] In step S199, the loading method according to a first embodiment of the page of the present invention, process 100 ends.

[0057]下面将参考图2详细描述根据本发明第一实施例的网页加载方法100中的步骤S130。 [0057] will be described in detail with reference to FIG loading a web page 100 according to a first embodiment of the method of the present invention step S130.

[0058] 如前所述,在步骤S130,所述终端设备的浏览器通过第一线程进行所述第一数据部分的至少部分处理,通过第二线程进行所请求网页的呈现。 [0058] As described above, in step S130, the browser of the terminal device by the first thread at least a portion of the first data processing portion, rendering the page requested by the second thread.

[00591 在步骤Sl:310,识别所述网页数据中的所述第一数据部分。 [00591 In step Sl: 310, the web page data identifying said first data portion.

[0060] 例如,在所述网页数据中可以包括用于标识所述第一数据部分的标识数据。 [0060] For example, the web page data may include identification data for identifying said first data portion.

[0061] 例如,在所述第一数据部分是网页应用的情况下,所述网页数据中还可以包括用于标识所述第一数据部分的标识数据。 [0061] For example, in the case where the first data portion is a web application, the web page data may further include identification data identifying the first data portion. 所述标识数据也可以被看作所述第一数据部分的一部分,在此情况下,所述第一数据部分可以包括所述标识数据和所述网页应用数据。 The identification data may also be seen as a portion of said first data portion, in this case, the first data portion may comprise data and the identification data of the web application. 应注意,也可以不将所述标识数据看作所述第一数据部分的一部分,而仅仅看作独立于所述第一数据部分的标识数据部分、或者作为除所述第一数据部分之外的第二数据部分的一部分。 It should be noted, may not be considered part of the identification data of said first data portion, but merely as data independent of the first portion of the identification data portion, or a portion other than the first data data portion of the second portion.

[0062] 例如,在所述第一数据部分是加密数据的情况下,所述网页数据不仅可以包括用于标识所述加密数据的标识数据,而且还可以包括用于对所述加密数据进行解密的解密算法数据。 [0062] For example, in the case where the first data portion is encrypted data, the webpage data may include not only identification data for identifying the encrypted data, but may also include decrypting the encrypted data decryption algorithm data. 在此情况下,所述标识数据和所述解密算法数据也可以被看作所述第一数据部分的一部分,而仅仅看作独立于所述第一数据部分的标识数据部分和解密算法数据部分、或者作为除所述第一数据部分之外的第二数据部分的一部分。 In this case, the identification data and the data decryption algorithm may also be considered part of the first portion of data, but merely as independent of the first data portion and the data portion of the decryption algorithm identification data portion , or as a second data portion other than the portion of the first data portion.

[0063] 在步骤SIMO,将所述第一数据部分加载到所述第一线程中。 [0063] In step SIMO, the first portion of data is loaded into the first thread.

[0064] 在步骤Sl33〇,在所述第一线程中运行第一算法,以便对所述第一数据部分进行处理。 [0064], operation of the first algorithm in the first thread in the step Sl33〇 for processing the first data portion.

[0065] 例如,在所述第一数据部分包括网页应用的情况下,所述第一算法即为所述网页应用本身,在所述第一线程中运行该网页应用,以便对所述第一数据部分进行处理,例如对该网页应用进行加载处理。 [0065] For example, in the case where the first data portion includes a web application, the web of the first algorithm is the application itself, the web application running in the first thread, so that the first a data processing portion, for example, the web application load process.

[0066]例如,在所述第一数据部分包括加密数据的情况下,所述第一算法可以为解密算法,在所述第一线程中运行该解密算法,以便对所述第一数据部分进行处理,例如对所述加密数据进行解密处理。 [0066] For example, the first algorithm may be run in the first case portion includes a data encryption algorithm decryption of data in the first thread in the decryption algorithm, for the first data portion processing, for example processing the encrypted data is decrypted.

[0067] 在步骤S1340,所述第一线程在对所述第一数据部分进行处理之后,将处理结果传送到所述第二线程。 [0067] transmitted to the second thread in a step S1340, the first thread after processing the first data portion, the processing result.

[0068] 在步骤S135〇,所述第二线程至少根据所述第一线程的处理结果,来呈现所请求网页。 [0068] In step S135〇, at least the second thread according to processing results of the first thread to render the requested Web page.

[0069]例如,在所述第一数据部分包括网页应用的情况下,在所述第一线程中运行该网页应用,在所述第一线程执行完该网页应用的加载处理之后,所述第二线程(即浏览器的固有线程)根据所述第一线程的执行结果来进行所请求网页的呈现。 [0069] For example, in the case where the first data portion includes a web application, the web application running in the first thread, the first thread after loading the web application process is executed, the first two threads (i.e., thread inherent browser) to render the requested web page based on the execution result of the first thread.

[0070] 例如,在所述第一数据部分包括加密数据的情况下,在所述第一线程中运行该解密算法,在所述第一线程完成所述加密数据的解密处理之后,所述第二线程(即浏览器的固有线程)根据所述第一线程的执行结果来进行所请求网页的呈现。 After [0070] For example, in the case where the first data includes encrypted data portion, the first thread runs the decryption algorithm, the decryption process of the encrypted data is completed in the first thread, the second two threads (i.e., thread inherent browser) to render the requested web page based on the execution result of the first thread.

[0071] 优选地,所述网页数据还包括第二数据部分,所述第二线程根据所述第一线程的处理结果和所述第二数据部分来呈现所请求的网页。 [0071] Preferably, the web page data further comprises a second data portion, said second thread to render the requested web page according to the processing result of the first thread and the second data portion.

[0072] 优选地,所述第一线程对所述第一数据部分的处理与所述第二线程的网页呈现处理中的至少一部分是并行进行的。 [0072] Preferably, the first thread processing the first data portion and the second thread web page at least a part of the process is performed in parallel rendering. 例如,所述第一线程在对所述第一数据部分进行处理的同时,所述第二线程利用所述第二数据部分中的至少一部分来呈现所请求网页,并且在所述第一线程完成对所述第一数据部分的处理之后,所述第二线程利用所述第一线程的执行结果来呈现所请求网页。 For example, the first thread while the first processed data portion, using at least a portion of the second thread of the second data portion to render the requested page, and completes in the first thread after processing the data of the first portion, the second thread with the result of the first execution thread to render the requested web page.

[0073] 根据本发明第一实施例的网页加载方法100,通过第一线程对需要大量计算/处理资源的任务进行至少部分处理,而通过第二线程进行网页呈现,从而使得包含需要大量计算/处理资源的数据的网页的呈现更加流畅。 [0073] The method for loading a page of the first embodiment 100 of the present invention, by a first thread of task requiring extensive computation / processing resources at least part of the processing, performed by the second thread web page presentation, comprising computationally demanding such that / page of data processing resources presented more smoothly.

[0074] 接下来,将参考图5来说明根据本发明第一实施例的终端设备500,该终端设备500 具有浏览器,在该终端设备500中执行根据本发明第一实施例的网页加载方法1〇〇。 [0074] Next, will be described with reference to FIG. 5 according to the present invention, the terminal apparatus 500 of the first embodiment, the terminal device 500 has a browser, the method performs page loads embodiment of the present invention in a first embodiment of the terminal device 500 1〇〇.

[0075] 如图5所示,根据本发明第一实施例的终端设备500包括:请求部件510、接收部件520、第一线程处理部件530、以及第二线程处理部件540。 [0075] 5, the terminal apparatus according to a first embodiment of the present invention 500 comprising: a request component 510, receiving component 520, a first thread processing means 530, processing means 540 and the second thread.

[0076] 请求部件510基于浏览器的访问请求向服务器请求网页。 [0076] The request unit 510 requests the browser-based access to the requested web server. 如前所述,所述服务器可以是任何类型的数据服务器、网站服务器、云端服务器等等,所述网页可以是任何类型的网页,并且可以包括用javascript编写的程序、css文件、以及html文件。 As described above, the server may be any type of data server, web server, etc. cloud server, the web page may be of any type, and may include program written using javascript, css files, html files as well.

[0077] 接收部件520从服务器接收所请求网页的网页数据,所述网页数据第一数据部分, 所述第一数据部分用于实现第一功能。 [0077] The receiving means 520 receives the data from the web server the requested web page, the page data of the first data portion, the first portion of data for realizing a first function.

[0078] 如前所述,所述第一数据部分的处理需要大量计算/处理资源消耗,并且所述第一功能可以是网页应用功能或者可以是加密保护功能等等。 [0078] As described above, the first data processing portion requires a lot of computing / processing resource consumption, and the first function may be a web application may be an encryption function or a protective function and the like.

[0079] 第一线程处理部件530通过第一线程进行所述第一数据部分的至少部分处理。 [0079] The first processing member 530 first thread of the thread at least in part by processing the first data portion. 第二线程处理部件540通过第二线程进行所请求网页的呈现。 Threading the second member 540 of the second thread web page as requested by the presentation.

[0080] 例如,通过浏览器调用web worker而开启所述第一线程,而通过浏览器的固有线程来进行所请求网页的呈现。 [0080] For example, the first thread turned on by the browser to call web worker, and for rendering the web page requested by the inherent thread of the browser. 为了描述方便,将浏览器的固有线程称为第二线程,以区别于所述第一线程。 For convenience of description, the inherent thread of the browser as a second thread, to distinguish it from the first thread.

[0081]例如,在所述第一数据部分是需要大量计算资源的网页应用的情况下,第一线程处理部件530通过所述第一线程进行所述网页应用的计算,并且第二线程处理部件540根据第一线程处理部件530的处理结果来呈现所请求网页。 [0081] For example, when the moiety is a web application requires a lot of computing resources in the first data, a first thread processing means 530 calculates the web application by the first thread and the second thread processing means 540 to render the requested page based on the processing result of the first processing member 530 thread.

[0082] 例如,在所述第一数据部分是加密数据的情况下,第一线程处理部件530通过所述第一线程进行所述第一数据部分的解密,并且第二线程处理部件540根据第一线程处理部件530的处理结果来呈现所请求网页。 [0082] For example, in the case where the first data portion is encrypted data, a first processing member 530 thread decrypting said first data portion by the first thread and the second thread member 540 in accordance with the processing section threading a result of the processing member 530 to render the requested web page.

[0083] 所述终端设备500还可以包括数据识别部分550 (未示出)。 [0083] The terminal device 500 may also include data identifying part 550 (not shown). 数据识别部分550识别所述网页数据中的所述第一数据部分,并且将所述第一数据部分加载到所述第一线程中, 所述第一线程处理部件530在所述第一线程中运行第一算法,用于通过第一线程进行所述第一数据部分的至少部分处理。 The web page 550 identifying the data in the first data portion identification section, and the first portion of data is loaded into the first thread, the first thread of the first processing member 530 in the thread operation of the first algorithm for a first thread through at least a portion of said first data processing section.

[0084] 例如,在所述第一数据部分包括网页应用的情况下,所述第一算法即为所述网页应用本身,所述第一线程处理部件530在所述第一线程中运行该网页应用,以便对所述第一数据部分进行处理,例如对该网页应用进行加载处理。 [0084] For example, in the case where the first data portion includes a web application, the web of the first algorithm is the application itself, the first thread 530 to run that page processing means in said first thread application for processing the first data portion, for example, the web application load process.

[0085] 例如,在所述第一数据部分包括加密数据的情况下,所述第一算法可以为解密算法,所述第一线程处理部件530在所述第一线程中运行该解密算法,以便对所述第一数据部分进行处理,例如对所述加密数据进行解密处理。 [0085] For example, the first algorithm, the first processing member 530 to run the thread decryption algorithm, in the first case where the data portion includes the encrypted data to the decryption algorithm to the first thread processing the first data portion, for example, the encrypted data is decrypted processing.

[0086] 在所述终端设备中,所述第一线程处理部件530在对所述第一数据部分进行处理之后,将处理结果传送到所述第二线程处理部件540,所述第二线程处理部件f540至少根据所述第一线程处理部件530的处理结果,来呈现所请求网页。 [0086] In the terminal device, the first thread processing means 530 after processing the first data portion, the processing result is transmitted to the second processing member 540 thread, the second thread processing f540 member according to at least the first thread processing means 530 of the processing result, to render the requested web page.

[0087] 所述网页数据还可以包括第二数据部分,所述第二线程处理部件540根据所述第一线程处理部件530的处理结果和所述第二数据部分来呈现所请求的网页,所述第一线程处理部件530对所述第一数据部分的处理与所述第二线程处理部件540的网页呈现处理中的至少一部分是并行进行的。 [0087] The data page may further include a second data portion, the second thread processing means 540 to render the requested web page according to the processing result of processing the first thread member 530 and the second data portion, the threading said first processing member 530 to the second thread processing means to the first page data portion 540 of the rendering process at least a portion parallel.

[0088] 根据本发明第一实施例的终端设备500,通过第一线程对需要大量计算/处理资源的任务进行至少部分处理,而通过第二线程进行网页呈现,从而使得包含需要大量计算/处理资源的数据的网页的呈现更加流畅。 [0088] The terminal apparatus according to the first embodiment of the present invention 500, through a first thread requires a lot of computing tasks / processing resources at least part of the processing, performed by the second thread web page presentation, comprising computationally demanding so that / processing web page resource data showing more smoothly.

[0089] 接下来,将参考图3来说明根据本发明第二实施例的网页加载方法300。 [0089] Next, will be described with reference to FIG. 3 according to a second embodiment of method for loading a web embodiment 300 of the present invention. 根据本发明第二实施例的网页加载方法300应用于终端设备,并且在步骤S301开始。 The second embodiment of the method of loading the page of the present invention is applied to a terminal apparatus 300, and starts at step S301.

[0090] 在步骤S310,所述终端设备通过浏览器向服务器请求网页。 [0090] In step S310, the terminal device requests the server to the web browser. 所述服务器可以是任何类型的数据服务器、网站服务器、云端服务器等等,所述网页可以是任何类型的网页,并且可以包括用javascript编写的程序、css文件、以及html文件。 The server can be any type of data servers, web servers, cloud server and so on, the web page can be any type of web page, and can include procedures written in javascript, css files, and html files.

[0091] 在步骤S320,所述终端设备通过浏览器从服务器接收所请求网页的网页数据,所述网页数据包括加密数据。 [0091] In step S320, the terminal device receives the browser from the server through the web page data requested web page, the web page data comprises encrypted data.

[0092] 所述加密数据可以是javascript程序编写的网页应用的加密数据、或者可以是css文件或html文件的加密数据。 The [0092] The encrypted data may be encrypted data written in javascript web application program, or the data may be encrypted or css file html files.

[0093] 在步骤S330,所述终端设备的浏览器通过第一线程进行所述加密数据的解密,通过第二线程进行所请求网页的呈现。 [0093] In step S330, the browser of the terminal device by decrypting the encrypted data of the first thread, the second thread by presenting a requested web page.

[0094] 例如,通过浏览器调用web worker而开启所述第一线程,而通过浏览器的固有线程来进行所请求网页的呈现。 [0094] For example, the first thread turned on by the browser to call web worker, and for rendering the web page requested by the inherent thread of the browser. 为了描述方便,将浏览器的固有线程称为第二线程,以区别于所述第一线程。 For convenience of description, the inherent thread of the browser as a second thread, to distinguish it from the first thread.

[0095] 在步骤S399,根据本发明第二实施例的网页加载方法300结束处理。 [0095] In step S399, according to the loading page 300 of the second embodiment of the method of the present invention, the process ends.

[0096] 下面将参考图3详细描述根据本发明第二实施例的网页加载方法300中的步骤S330。 [0096] will be described in detail in accordance with step 300 the method loads the page to a second embodiment of the present invention with reference to S330 of FIG.

[0097] 如前所述,在步骤S330,所述终端设备的浏览器通过第一线程进行所述加密数据的解密,通过第二线程进行所请求网页的呈现。 [0097] As described above, in step S330, the browser of the terminal device decrypts the encrypted data by a first thread, the requested web page rendering by a second thread.

[0098] 在步骤S3310,识别所述网页数据中的所述加密数据。 [0098] In step S3310, the encrypted data for identifying said web page data.

[0099] 例如,在所述网页数据中可以包括用于标识所述加密数据的标识数据。 [0099] For example, the web page data may include identification data for identifying the encrypted data. 当然,所述标识数据不是所述网页数据中的必要数据,在通过其它手段可以识别出所述加密数据的情况下,可以无需包含所述标识数据。 Of course, the necessary data is not the identification data of the web page data, in a case where other means can be identified by the encrypted data, the identification data may not need to contain.

[0100] 例如,所述网页数据还可以包括用于对所述加密数据进行解密的解密算法数据。 [0100] For example, the webpage data may include further data decryption algorithm for decrypting said encrypted data. 当然,在所述终端设备己经预先知道用于对来自所述服务器的加密数据进行解密的解密算法的情况下,例如所述终端设备己经通过向所述服务器注册/付费等手段而预先下载了专用于所述服务器的网页的解密算法的情况下,可以不在所述网页数据中包括用于对所述加密数据进行解密的解密算法数据。 Of course, in the previously known for the encrypted data from the server is decrypted decryption algorithm of the terminal device has the case, for example, the terminal apparatus has previously registered to the server by downloading / charge other means dedicated to the case where the web server decryption algorithm, data may not be included in the web page for data decryption algorithm for decrypting said encrypted data.

[0101] 在所述网页数据包括所述标识数据和所述解密算法数据至少一个的情况下,所述至少一个可以被看作独立于所述加密数据的标识数据部分和解密算法数据部分、或者作为除所述加密数据之外的第二数据部分的一部分。 [0101] In the page data comprises a decryption algorithm and said data of said identification data of at least one case, at least one may be considered independently of the encrypted data portion and a data decryption algorithm identification data section, or as part of the encrypted data other than the second data portion.

[0102] 在步骤S3320,将所述加密数据加载到所述第一线程中。 [0102] In step S3320, the encrypted data is loaded into the first thread.

[0103] 在步骤S3330,在所述第一线程中运行解密算法,以便对所述加密数据进行解密。 [0103], decryption algorithm running in the first thread in the step S3330, in order to decrypt the encrypted data.

[0104] 在步骤S3340,所述第一线程在对所述加密数据进行解密之后,将解密后的数据传送到所述第二线程。 [0104] In step S3340, the first thread after decrypting the encrypted data, the decrypted data to said second thread.

[0105] 在步骤S3350,所述第二线程根据解密后的数据来进行所请求网页的呈现。 [0105] In step S3350, the second thread to render the requested Web page based on the decrypted data.

[0106] 优选地,在步骤S3350中,所述第一线程在完成所述加密数据的解密之后,还辅助所述第二线程来进行所请求的网页的呈现。 [0106] Preferably, in step S3350, after completion of the first thread decrypting the encrypted data, the second thread further to assist the requested web page presentation.

[0107] 下面将描述在所述终端设备中如何在第一线程中运行解密算法。 [0107] The following will describe how the decryption algorithm running in a first thread in the terminal equipment.

[0108] 如上所述,在步骤S332〇将所述加密数据加载到所述第一线程中,以及在步骤S3330在所述第一线程中运行解密算法以便对所述加密数据进行解密。 [0108] As described above, at step S332〇 the encrypted data is loaded into the first thread, and a decryption algorithm running in the first thread in the step S3330 in order to decrypt the encrypted data.

[0109] 公知的是,在运行解密算法时需要利用密钥来进行加密数据的解密。 [0109] is well known that when running a decryption algorithm with the key needed to decrypt the encrypted data. 在根据本发明第二实施例的网页加载方法中,可以通过多种方式来得到所述密钥。 Loading the page according to a second embodiment of the method of the present invention, the key may be obtained by a variety of ways.

[0110] 第一示例 [0110] First example

[0111] 所述终端设备可以预先从所述服务器取得用于所述加密数据的解密的密钥。 [0111] The terminal device may be obtained in advance for decrypting said encrypted data from the server. 例如,所述密钥可以直接以文件形式存储。 For example, the key may be stored in a file format directly.

[0112] 优选地,所述终端设备本地无法直接读取该密钥文件。 [0112] Preferably, the local terminal device can not read the key file directly. 当所述终端设备从所述服务器请求网页数据时,所述终端设备从所述服务器接收特定数据,并且通过浏览器利用该特定数据才能读取该密钥文件,从而直接将所述密钥用于所述第一线程的解密处理。 When the terminal device requests data from the web server, the terminal device receives the specific data from the server, and can read the key file by using a browser to the specific data, thereby directly with the key to the decryption processing of the first thread.

[0113] 例如,所述密钥可以以文件证书的形式保存在终端设备,所述证书是所述服务器或所述网页拥有者颁发给所述终端设备或所述终端设备的用户的。 [0113] For example, the keys can be stored as a file in the certificate of the terminal device, the server or the certificate is the owner of the web page presented to the user terminal device or the terminal device.

[0114] 第二示例 [0114] The second exemplary

[0115] 所述密钥存储在硬件中,在所述硬件与所述终端设备连接时,所述终端设备从所述硬件读取所述密钥,所述硬件是所述网页拥有者颁发给所述终端设备或所述终端设备的用户的。 [0115] The key is stored in hardware, while the hardware is connected to the terminal device, the terminal device reads the key from the hardware, the hardware is issued to the owner of the web the user terminal device or the terminal device.

[0116] 此外,尽管在根据本发明第一实施例和第二实施例的网页加载方法的上述描述中未明确示出,然而根据本发明第一实施例和第二实施例的网页加载方法还可以包括验证步骤。 [0116] Further, although in the above described method of loading the page to the first embodiment and the second embodiment of the present invention, not explicitly shown, but also to load the page according to the method of the first embodiment and the second embodiment of the present invention It may include a verification step.

[0117] 下面将描述根据本发明第一实施例和第二实施例的网页加载方法100/200中的验证步骤。 [0117] The following verification step 100/200 page loading method according to the first embodiment and the second embodiment of the present invention will be described.

[0118] 在上述步骤S110或S310中,在所述终端设备通过浏览器向服务器请求网页时,还向所述服务器发送所述终端设备的设备信息或者所述终端设备的用户的用户信息以供所述服务器进行验证。 [0118] In the step S110 or S310, when the terminal device requests to a web server through a browser, the server further transmits to the user terminal device information of the terminal device or user information for the server for authentication. 即,所述终端设备通过浏览器向服务器请求网页,在所述请求中可以包括所述终端设备的设备信息或所述终端设备的用户的用户信息,以供所述服务器进行所述终端设备或所述终端设备的用户的验证。 That is, the terminal device requests a page through the browser to the server, the request may include a user terminal device information of the device or the user terminal device information for the server or the terminal device the verification of the user's terminal device.

[0119] 然后,在所述服务器成功验证所述终端设备或者所述终端设备的用户之后,所述浏览器从所述服务器接收验证成功的通知消息。 After [0119] Then, the server successfully authenticate the user of the terminal device or the terminal device, the browser receives notification of successful authentication message from the server.

[0120] 例如,在所述终端设备以文件形式存储密钥、并且所述终端设备本地无法直接读取该密钥文件的情况下,在所述通知消息中可以包括读取所述密钥所需的关键数据。 The [0120] For example, in the terminal equipment stored in the key file, the local terminal device and the key file can not read directly the case, the notification message may include reading the said key the key data required. 所述浏览器可以利用所述关键数据读取所述密钥文件中所包含的密钥。 The browser can read the key data using the key of the key contained in the file. 类似地,该方式也适用于所述密钥存储在硬件中的情况。 Similarly, the embodiment is also applicable to the case where the key is stored in hardware.

[0121] 替代地,所述通知消息中可以直接包括用于所述加密数据的解密的密钥。 [0121] Alternatively, the notification message may include a key for decrypting said encrypted data directly.

[0122] 根据本发明第二实施例的网页加载方法3〇〇,通过第一线程对加密数据进行解密, 而通过第二线程进行网页呈现,从而使得包含加密数据的网页的呈现更加流畅。 [0122] 3〇〇, a first thread through the encrypted data is decrypted, and the second thread web page load presented method of the second embodiment according to the embodiment of the present invention, so that the encrypted data containing the page rendering more smoothly.

[0123] 接下来,将参考图6来描述根据本发明第二实施例的终端设备600,该终端设备600 具有浏览器,在该终端设备600中执行根据本发明第二实施例的网页加载方法300。 [0123] Next, will be described with reference to FIG. 6 according to a second embodiment of the terminal device 600 of the present invention, the terminal device 600 has a browser, performs page load According to a second embodiment of the present invention, in the terminal device 600 300.

[0124] 如图6所示,根据本发明第一实施例的终端设备600包括:请求部件610、接收部件620、第一线程处理部件630、以及第二线程处理部件640。 [0124] As shown in FIG 6, the terminal device according to a first embodiment of the present invention 600 comprising: a request component 610, receiving component 620, a first thread processing means 630, processing means 640 and the second thread.

[0125] 请求部件610基于浏览器的访问请求向服务器请求网页。 [0125] component 610 requests access request based on the browser request to the web server. 如前所述,所述服务器可以是任何类型的数据服务器、网站服务器、云端服务器等等,所述网页可以是任何类型的网页,并且可以包括用javascript编写的程序、css文件、以及html文件。 As described above, the server may be any type of data server, web server, etc. cloud server, the web page may be of any type, and may include program written using javascript, css files, html files as well.

[0126] 接收部件620从服务器接收所请求网页的网页数据,所述网页数据包括加密数据。 [0126] 620 receives the requested web page data from the server receiving member, the webpage data comprises encrypted data.

[0127] 第一线程处理部件630通过第一线程进行所述加密数据的解密。 [0127] The first thread processing means 630 decrypts the encrypted data by the first thread. 第二线程处理部件640通过第二线程进行所请求网页的呈现。 The second processing member 640 of the second thread of the thread requested by the page rendering.

[0128] 此外,所述终端设备还可以包括加密数据识别部件650 (未示出)。 [0128] Further, the terminal device may further include an encryption identification means 650 (not shown). 该加密数据识别部件650识别所述网页数据中的所述加密数据,并将所述加密数据加载到所述第一线程中。 Encrypting the encrypted data of the data identifying part 650 identifies the web page data, and said encrypted data is loaded into the first thread. 所述第一线程处理部件630在所述第一线程中运行解密算法,以便对所述加密数据进行解密。 The first thread processing means 630 runs a decryption algorithm on the first thread in order to decrypt the encrypted data.

[0129] 在所述终端设备中,所述第一线程处理部件630在对所述加密数据进行解密之后, 将解密后的数据传送到所述第二线程处理部件640,所述第二线程处理部件640根据解密后的数据来进行所请求网页的呈现。 [0129] In the terminal device, the first thread processing means 630 after decrypting the encrypted data, the decrypted data to said second processing means thread 640, the second thread processing member 640 to render the requested web page based on the decrypted data.

[0130] 根据本发明第二实施例的终端设备600,通过第一线程对加密数据进行解密,而通过第二线程进行网页呈现,从而使得包含加密数据的网页的呈现更加流畅。 [0130] According to 600, the first thread of decrypting the encrypted data, the page presentation is performed by a second thread, so that the Web page that contains the encrypted data smoother presentation terminal apparatus of the second embodiment of the present invention will.

[0131] 上面己经参考附图描述了根据本发明实施例的网页加载方法。 [0131] The above has been described with reference to the accompanying drawings page loading method according to embodiments of the present invention. 本领域技术人员应了解,本发明不限于上面描述的实施例,在不偏离本发明的精神的情况下可以作出各种修改,所述修改也应包含在本发明的范围之内。 Those skilled in the art will appreciate, embodiments of the present invention is not limited to the embodiments described above, various modifications may be made without departing from the spirit of the present invention, the modification should also be included within the scope of the present invention. 本发明的范围应由所附权利要求及其等同物来限定。 Scope of the invention by the appended claims and equivalents thereof.

Claims (20)

  1. 1. 一种网页加载方法,其应用于终端设备,所述方法包括: 浏览器向服务器请求网页; 浏览器从服务器接收所请求网页的网页数据,所述网页数据包括加密数据;以及浏览器通过第一线程进行所述加密数据的解密,通过第二线程进行所请求网页的呈现,其中在所述第一线程完成所述加密数据的解密之后,辅助所述第二线程来进行所请求的网页的呈现; 其中,所述第一线程对所述第一数据部分的处理与所述第二线程的网页呈现处理中的至少一部分是并行进行的;所述第一线程在对所述第一数据部分进行处理的同时,所述第二线程利用第二数据部分中的至少一部分来呈现所请求网页,并且在所述第一线程完成对所述第一数据部分的处理之后,所述第二线程利用所述第一线程的执行结果来呈现所请求网页。 CLAIMS 1. A method for loading a web page, which is applied to a terminal device, the method comprising: a web browser request to the server; web browser receives the requested data from the web server, the web page data includes encrypted data; Browser by after the first thread decrypting the encrypted data, the requested web page for presentation by the second thread, wherein decrypting the encrypted data is completed in the first thread, the second thread to assist the requested webpage presentation; wherein the first thread processing the first data portion and the second thread web page rendering processing are performed in parallel at least a part; the first thread in the first data after partially simultaneously processed, the second thread with a second portion of data to render at least a portion of the requested page, and completes the processing the first data portion in the first thread, the second thread using the result of the execution of the first thread to render the requested web page.
  2. 2. 如权利要求1所述的网页加载方法,其中, 所述第一线程是通过调用web worker而开启的。 2. The method of claim 1 page load claim, wherein the first thread is turned on by calling the web worker.
  3. 3. 如权利要求1所述的网页加载方法,其中,通过第一线程进行所述加密数据的解密包括: 识别所述网页数据中的所述加密数据; 将所述加密数据加载到所述第一线程中; 在所述第一线程中运行解密算法,以便对所述加密数据进行解密。 3. The method of claim 1 page load claim, wherein decrypting the encrypted data by a first thread comprises: encrypting said data for identifying said web page data; loading the encrypted data to the second a thread; decryption algorithm running in the first thread in order to decrypt the encrypted data.
  4. 4. 如权利要求1所述的网页加载方法,其中,通过第二线程进行所请求网页的呈现包括: 所述第一线程在对所述加密数据进行解密之后,将解密后的数据传送到所述第二线程;以及所述第二线程根据解密后的数据来进行所请求网页的呈现。 4. The method of claim 1 page load claim, wherein, for presenting the web page requested by a second thread comprises: data transfer after the first thread after decrypting the encrypted data, the decryption to said second thread; and the second thread performs the requested web page based on the decrypted data presentation.
  5. 5. 如权利要求1所述的网页加载方法,其中, 所述浏览器在向所述服务器请求所述网页时,还向所述服务器发送所述终端设备的设备信息以供所述服务器进行验证;并且所述浏览器还从所述服务器接收验证成功的通知消息,所述通知消息中包括用于所述加密数据的解密的密钥。 5. The method of claim 1 page load claim, wherein, when the browser requests the web server to the further transmitting device information of the terminal device to the server for the server to authenticate ; and the browser receives notification of successful authentication message from the server, the notification message comprising a decryption key for the encrypted data.
  6. 6. 如权利要求1所述的网页加载方法,其中,用于所述加密数据的解密的密钥被保存在终端设备中,但在所述终端设备本地无法直接读取所述密钥。 6. The method of claim 1 page load claim, wherein the key used for decrypting the encrypted data is stored in the terminal device, but in the local terminal device can not read directly the key.
  7. 7. 如权利要求6所述的网页加载方法,其中,所述密钥以证书的形式保存在终端设备, 所述证书是所述服务器或所述网页拥有者颁发给所述终端设备或所述终端设备的用户的。 7. The method of claim 6 page load claim, wherein the key stored in the terminal device in the form of a certificate, the certificate is the owner of the web server or the terminal device or issued to the user's terminal equipment.
  8. 8. 如权利要求6所述的网页加载方法,其中,所述密钥存储在硬件中,在所述硬件与所述终端设备连接时,所述终端设备从所述硬件读取所述密钥,所述硬件是所述网页拥有者颁发给所述终端设备或所述终端设备的用户的。 8. The method of claim 6 page load claim, wherein said key is stored in hardware, while the hardware is connected to the terminal device, the terminal device reads the key from the hardware the hardware is the owner of the web page presented to the user terminal device or the terminal device.
  9. 9. 如权利要求7或8所述的网页加载方法,其中,所述浏览器在向所述服务器请求所述网页时,还向所述服务器发送所述终端设备的设备信息以供所述服务器进行验证; 所述浏览器还从所述服务器接收验证成功的通知消息,所述通知消息包括读取所述密钥所需的关键数据;并且所述浏览器利用所述关键数据读取所述密钥。 9. The method of loading the page 7 or claim 8, wherein, said browser when the web request to the server, the terminal also transmits the device information to the server device for use by the server verify; the browser from the server receives a notification of successful authentication message, the notification message comprising data required for reading the key key; and the browser using the key of the data read key.
  10. 10. —种终端设备,所述终端设备具有浏览器,所述终端设备包括: 请求部件,用于基于浏览器的访问请求向服务器请求网页; 接收部件,用于从服务器接收所请求网页的网页数据,所述网页数据包括加密数据; 第一线程处理部件,用于通过第一线程进行所述加密数据的解密;以及第二线程处理部件,用于通过第二线程进行所请求网页的呈现,其中在所述第一线程完成所述加密数据的解密之后,辅助所述第二线程来进行所请求的网页的呈现; 其中,所述第一线程对所述第一数据部分的处理与所述第二线程的网页呈现处理中的至少一部分是并行进行的;所述第一线程在对所述第一数据部分进行处理的同时,所述第二线程利用第二数据部分中的至少一部分来呈现所请求网页,并且在所述第一线程完成对所述第一数据部分的处理之后,所述第二线程利用 10. - kind of terminal device, the terminal device has a browser, the terminal apparatus comprising: request means for requesting access to a browser-based web page request to a server; receiving means for receiving the requested web page from the server data, said page data including the encrypted data; a first thread processing means, through a first thread for decrypting the encrypted data; and the second thread processing means, for presenting the request for the page by the second thread, after completion of decrypting the encrypted data wherein in the first thread, a second thread to assist the requested web page presentation; wherein the first thread of the processing the first data portion the second thread web page rendering processing are performed in parallel at least a part; the first thread while the first processed data portion, using at least the second thread portion of the second data portion to render after the requested page, and completes the processing the first data portion in the first thread, the second thread using 述第一线程的执行结果来呈现所请求网页。 Execution result of said first thread to render the requested Web page.
  11. 11. 如权利要求10所述的终端设备,还包括: 加密数据识别部件,用于识别所述网页数据中的所述加密数据,并将所述加密数据加载到所述第一线程中, 其中,所述第一线程处理部件在所述第一线程中运行解密算法,以便对所述加密数据进行解密。 11. The terminal apparatus according to claim 10, further comprising: encrypting data identifying means for identifying the encrypted data of the webpage data, and the encrypted data is loaded into the first thread, wherein , the first thread processing means running a decryption algorithm on the first thread in order to decrypt the encrypted data.
  12. 12. 如权利要求10所述的终端设备,其中, 所述第一线程处理部件在对所述加密数据进行解密之后,将解密后的数据传送到所述第二线程处理部件, 所述第二线程处理部件根据解密后的数据来进行所请求网页的呈现。 12. The terminal apparatus according to claim 10, wherein the first thread processing means, after decrypting the encrypted data, transmits the decrypted data to the second thread processing means, said second threading member to render the requested web page based on the decrypted data.
  13. 13. —种网页加载方法,其应用于终端设备,所述方法包括: 浏览器向服务器请求网页; 浏览器从服务器接收所请求网页的网页数据,所述网页数据包括第一数据部分,所述第一数据部分用于实现第一功能;以及浏览器通过第一线程进行所述第一数据部分的至少部分处理,通过第二线程进行所请求网页的呈现,所述第一数据部分是加密数据,通过所述第一线程进行所述第一数据部分的解密;所述第二线程根据所述第一线程的处理结果,来呈现所请求网页,其中,在所述第一线程完成所述加密数据的解密之后,辅助所述第二线程来进行所请求的网页的呈现。 13. - The method of page loads species, which is applied to a terminal device, the method comprising: a web browser request to the server; web browser receives the requested data from the web server, the web page data comprises a first data portion, said a first data portion for realizing a first function; and browser via a first thread portion of the at least a first data processing portion, the requested web page for presentation by a second thread, said first portion of data is encrypted data by decrypting the first thread of the first data portion; and the second thread according to processing results of the first thread to render the requested page, wherein the first thread is completed in the encryption after decryption of data, the second thread to assist the requested web page presentation.
  14. 14. 如权利要求13所述的网页加载方法,其中, 所述第一线程是通过浏览器调用web worker而开启的,所述第二线程是浏览器的固有线程。 14. The method of claim 13 page load claim, wherein the first thread is turned on to call web worker through the browser, the second thread is a thread of the browser inherent.
  15. 15. 如权利要求13所述的网页加载方法,通过第一线程进行所述第一数据部分的至少部分处理包括: 识别所述网页数据中的所述第一数据部分; 将所述第一数据部分加载到所述第一线程中;以及在所述第一线程中运行第一算法,以便对所述第一数据部分进行处理。 At least partially loading the page 15. A method of treatment according to claim 13, for the first data portion by the first thread comprises: the web page data identifying said first data portion; the first data loaded into the first thread portion; and a first algorithm running in the first thread for processing the first data portion.
  16. 16. 如权利要求13所述的网页加载方法,通过第二线程进行所请求网页的呈现包括: 所述第一线程在对所述第一数据部分进行处理之后,将处理结果传送到所述第二线程;以及所述第二线程至少根据所述第一线程的处理结果,来呈现所请求网页。 16. The method of claim 13 page load claim, rendering the web page requested by a second thread comprising: the first thread after processing the first data portion, the processing result is transmitted to the first two threads; and the second thread based at least on the processing result of the first thread to render the requested web page.
  17. 17. 如权利要求13所述的网页加载方法,其中, 所述网页数据还包括第二数据部分,所述第二线程根据所述第一线程的处理结果和所述第二数据部分来呈现所请求的网页, 所述第一线程对所述第一数据部分的处理与所述第二线程的网页呈现处理中的至少一部分是并行进行的。 17. The method of claim 13 page load claim, wherein said web page data further comprises a second data portion, the second thread being presented according to processing results of the first thread and the second data portion the requested page, the first thread processing the first data portion and the second thread web exhibits at least part of the processing is performed in parallel.
  18. 18. —种终端设备,所述终端设备具有浏览器,所述终端设备包括: 请求部件,用于基于浏览器的访问请求向服务器请求网页; 接收部件,用于从服务器接收所请求网页的网页数据,所述网页数据第一数据部分,所述第一数据部分用于实现第一功能; 第一线程处理部件,用于通过第一线程进行所述第一数据部分的至少部分处理;以及第二线程处理部件,用于通过第二线程进行所请求网页的呈现,所述第一数据部分是加密数据,通过所述第一线程进行所述第一数据部分的解密;所述第二线程根据所述第一线程的处理结果,来呈现所请求网页,其中,在所述第一线程完成所述加密数据的解密之后,辅助所述第二线程来进行所请求的网页的呈现; 其中,所述第一线程对所述第一数据部分的处理与所述第二线程的网页呈现处理中的至少一部分是并行进行的 18. - kind of terminal device, the terminal device has a browser, the terminal apparatus comprising: request means for requesting access to a browser-based web page request to a server; receiving means for receiving the requested web page from the server data, the first data web portion, the first portion of data for realizing a first function; a first thread processing means for at least partially processing the first data portion by a first thread; and a two threading means for presenting the second thread of the requested web page, the first portion of the data is encrypted data, decrypting said first data portion by the first thread; according to the second thread after the processing result of the first thread to render the requested page, wherein decrypting the encrypted data is completed in the first thread, the second thread auxiliary rendering the page to the request; wherein the threading said first portion of the first data and the second thread web page presenting at least part of the processing is performed in parallel 所述第一线程在对所述第一数据部分进行处理的同时,所述第二线程利用第二数据部分中的至少一部分来呈现所请求网页,并且在所述第一线程完成对所述第一数据部分的处理之后,所述第二线程利用所述第一线程的执行结果来呈现所请求网页。 The first thread while the first processed data portion, using at least the second thread portion of the second data portion to render the requested page, and completes the first thread in the first after processing a data portion, the second thread with the result of the first execution thread to render the requested web page.
  19. 19. 如权利要求18所述的终端设备,还包括: 数据识别部分,用于识别所述网页数据中的所述第一数据部分,并且将所述第一数据部分加载到所述第一线程中, 所述第一线程处理部件在所述第一线程中运行第一算法,用于通过第一线程进行所述第一数据部分的至少部分处理。 19. The terminal apparatus according to claim 18, further comprising: a data identification section for identifying the web page data in the first data portion and the first portion of data is loaded into the first thread in the first thread processing means running in a first algorithm in the first thread, at least in part by a first thread processing the first data portion.
  20. 20. 如权利要求18所述的终端设备,其中, 所述网页数据还包括第二数据部分,所述第二线程处理部件根据所述第一线程处理部件的处理结果和所述第二数据部分来呈现所请求的网页, 所述第一线程处理部件对所述第一数据部分的处理与所述第二线程处理部件的网页呈现处理中的至少一部分是并行进行的。 20. The terminal device of claim 18, the second thread processing means according to the processing result of processing the first thread member and the second data portion, wherein said web page data further comprises a second data portion, to render the requested web page, the first thread processing means processing the first data portion and the second thread web page rendering processing means at least part of the processing is performed in parallel.
CN 201210365938 2012-09-27 2012-09-27 Web page loading method and a terminal device CN103699535B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210365938 CN103699535B (en) 2012-09-27 2012-09-27 Web page loading method and a terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210365938 CN103699535B (en) 2012-09-27 2012-09-27 Web page loading method and a terminal device

Publications (2)

Publication Number Publication Date
CN103699535A true CN103699535A (en) 2014-04-02
CN103699535B true CN103699535B (en) 2017-06-27

Family

ID=50361066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210365938 CN103699535B (en) 2012-09-27 2012-09-27 Web page loading method and a terminal device

Country Status (1)

Country Link
CN (1) CN103699535B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268229B (en) * 2014-09-26 2018-01-19 北京金山安全软件有限公司 A resource-based multi-process browser method and apparatus for obtaining

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267299A (en) * 2007-03-14 2008-09-17 阿里巴巴集团控股有限公司 A method and system for securely display data on the webpage

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1462940A (en) * 2002-05-29 2003-12-24 明日工作室股份有限公司 Deciphering system and method for a browser
CN1967553A (en) * 2005-11-17 2007-05-23 翁仁滉 Method and system for encrypting web
US8010897B2 (en) * 2006-07-25 2011-08-30 Paxson Dana W Method and apparatus for presenting electronic literary macramés on handheld computer systems
CN101635622B (en) * 2008-07-24 2013-06-12 阿里巴巴集团控股有限公司 Method, system and equipment for encrypting and decrypting web page
CN102624931B (en) * 2012-04-21 2015-02-25 华为技术有限公司 Method, device and system for interaction between Web client and server

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267299A (en) * 2007-03-14 2008-09-17 阿里巴巴集团控股有限公司 A method and system for securely display data on the webpage

Also Published As

Publication number Publication date Type
CN103699535A (en) 2014-04-02 application

Similar Documents

Publication Publication Date Title
US20060179324A1 (en) Methods and apparatus for facilitating a secure session between a processor and an external device
US20130060905A1 (en) Accessing Hardware Devices Using Web Server Abstractions
US20120324552A1 (en) System and Method for Securing Embedded Media
US20130166906A1 (en) Methods and Apparatus for Integrating Digital Rights Management (DRM) Systems with Native HTTP Live Streaming
US20140208111A1 (en) Secure virtual machine migration
US20050154890A1 (en) Method for secure key exchange
CN102760219A (en) Android platform software protecting system, method and equipment
CN101908119A (en) Method and device for processing dynamic link library (DLL) file
US20100318784A1 (en) Client identification for transportation layer security sessions
US20130163758A1 (en) Methods and Apparatus for Key Delivery in HTTP Live Streaming
US20080060072A1 (en) Information processing system, information processing method, information processing program, computer readable medium and computer data signal
US20100115585A1 (en) Method and system for securing a third party communication with a hosting web page
US20100228982A1 (en) Fast-reconnection of negotiable authentication network clients
US20130283397A1 (en) Method and apparatus for provisioning a mobile application
JP2005071328A (en) Secure device, information processing terminal, integrated circuit, terminal application generation apparatus, application authentication method
CN101261664A (en) A method for realizing software protection based on the program code stored in the software protection device
US20120185695A1 (en) Methods and Systems for Scalable Distribution of Protected Content
CN1679066A (en) Network attached encryption
CN103218560A (en) Method of realizing card data management
CN104901951A (en) Mobile terminal based cipher data processing and interaction method in Web application
JP2006221634A (en) Method and device for executing secure processing shift of processor
CN101741826A (en) Method and system for realizing encryption unloading on virtualized platform
US8909933B2 (en) Decoupled cryptographic schemes using a visual channel
US20130227354A1 (en) Device, method, and system to enable secure distribution of javascripts
CN103109510A (en) Resource safety access method and device

Legal Events

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