CN103699535B - webpage loading method and terminal device - Google Patents

webpage loading method and terminal device Download PDF

Info

Publication number
CN103699535B
CN103699535B CN201210365938.4A CN201210365938A CN103699535B CN 103699535 B CN103699535 B CN 103699535B CN 201210365938 A CN201210365938 A CN 201210365938A CN 103699535 B CN103699535 B CN 103699535B
Authority
CN
China
Prior art keywords
thread
data
webpage
terminal device
data division
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210365938.4A
Other languages
Chinese (zh)
Other versions
CN103699535A (en
Inventor
袁晓勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210365938.4A priority Critical patent/CN103699535B/en
Publication of CN103699535A publication Critical patent/CN103699535A/en
Application granted granted Critical
Publication of CN103699535B publication Critical patent/CN103699535B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Abstract

There is provided a kind of webpage loading method and terminal device.The webpage loading method includes:Browser is to server request webpage;Browser receives the web data of institute's requested webpage from server, and the web data includes the first data division, and first data division is used to realize the first function;And browser carries out at least part for the treatment of of first data division by first thread, and the presentation of institute's requested webpage is carried out by the second thread.The webpage loading method and terminal device are at least partly processed the needing a large amount of calculating/process resources of the task by first thread, and passing through the second thread carries out webpage presentation, so that the presentation of the webpage comprising the data for needing a large amount of calculating/process resources is more smooth.

Description

Webpage loading method and terminal device
Technical field
The present invention relates to webpage loading, and relate more specifically to a kind of webpage loading method and terminal device.
Background technology
With developing rapidly for browser and web technologies, JavaScript is play role important all the more, very Many Web App(Web application)Service logic and algorithm all by JavaScript realize.At present, based on http frameworks B/S The Web App or webpage of agreement all with plaintext transmission data and resource, but if the source code of these JavaScript programs all Exposed with plaintext, then will necessarily produce the risk of leakage core technology.
Generally program's source code obscure compression to increase reading analysis difficulty, so as to realize to program's source code Protection.However, this also only increases the difficulty of analysis program source code and correspondingly extends analysis time in itself, Can not be from substantially playing a part of defence program source code.
As another means, can be using the scheme of encrypted transmission program's source code, yet with the decryption of program's source code Required consumed resource is quite huge, and traditional JavaScript is single thread, it is thus possible to cause browser User interface is freezed, and greatly reduces webpage smoothness degree.
Therefore, it is intended that there is a kind of webpage loading method and terminal device, it is a large amount of that it can glibly run/present needs The webpage of calculating/process resource consumption.
The content of the invention
The present invention is made that in view of above mentioned problem.The present invention is intended to provide a kind of webpage loading method and terminal set It is standby, its performed by using first thread task of needing a large amount of calculatings/process resources to consume and using the second thread come Carry out webpage presentation such that it is able to which operation/presentation glibly needs the webpage of a large amount of calculating/process resources consumption.
According to an aspect of the present invention, there is provided a kind of webpage loading method, it is applied to terminal device, methods described bag Include:Browser is to server request webpage;Browser receives the web data of institute's requested webpage, the web data from server Including the first data division, first data division is used to realize the first function;And browser is carried out by first thread At least part for the treatment of of first data division, the presentation of institute's requested webpage is carried out by the second thread.
Preferably, treatment is carried out to first data division needs a large amount of calculating/process resources, i.e. first number It is task of needing a large amount of calculating/process resources to consume according to part treatment.
Preferably, the first thread is called web worker and is opened by browser, and second thread is The intrinsic thread of browser.
Preferably, in the webpage loading method, browser carries out first data division by first thread At least partly treatment can include:Recognize first data division;First data division is loaded into the First Line Cheng Zhong;The first algorithm is run in the first thread, at using first algorithm to first data division Reason.
Preferably, in the webpage loading method, browser can by the presentation that the second thread carries out institute's requested webpage To include:Result is sent to described second by the first thread after processing first data division Thread;And second thread according at least to the first thread result to present requested webpage.
Preferably, first data division is encryption data, and first data portion is carried out by the first thread Point decryption, and second thread according to the result of the first thread to present requested webpage.
Preferably, decipherment algorithm is run in the first thread, to utilize the decipherment algorithm to first data Part is decrypted treatment.
Preferably, the web data also includes the second data division, and second thread is according to the first thread Result and second data division are presented asked webpage, and the first thread to first data portion At least a portion in the treatment and the webpage presentation treatment of second thread that divide is to carry out parallel.
According to another aspect of the present invention, there is provided a kind of terminal device, the terminal device has browser, the end End equipment includes:Requesting component, for the access request based on browser to server request webpage;Receiving part, for from Server receives the web data of institute's requested webpage, and the data division of the web data first, first data division is used for Realize the first function;First thread processing component, for carrying out at least part of of first data division by first thread Treatment;And the second thread process part, the presentation for carrying out institute's requested webpage by the second thread.
Preferably, the terminal device also includes:Data discrimination section, for recognizing described in the web data One data division, and first data division is loaded into the first thread, the first thread processing component exists The first algorithm is run in the first thread, at least part of place for carrying out first data division by first thread Reason.
Preferably, in the terminal device, the first thread processing component is carried out to first data division After treatment, result is sent to the second thread process part, the second thread process part is according at least to institute State the result of first thread to present requested webpage.
Preferably, in the terminal device, the web data also includes the second data division, at second thread Reason part is presented asked webpage according to the result and second data division of the first thread processing component, The first thread processing component is presented to the treatment of first data division with the webpage of the second thread process part At least a portion in treatment is to carry out parallel.
Webpage loading method of the invention and terminal device, by first thread to needing a large amount of calculating/treatment to provide The task in source is at least partly processed, and passing through the second thread carries out webpage presentation, so that comprising a large amount of calculating of needs/ The presentation of the webpage of the data of process resource is more smooth.
According to another aspect of the invention, there is provided a kind of webpage loading method, it is applied to terminal device, methods described Including:Browser is to server request webpage;Browser receives the web data of institute's requested webpage, the webpage number from server According to including encryption data;And browser carries out the decryption of the encryption data by first thread, carried out by the second thread The presentation of institute's requested webpage.
Preferably, the first thread is opened by calling web worker, and second thread is browser Intrinsic thread.
Preferably, in the webpage loading method, the decryption for carrying out the encryption data by first thread includes:Know Not described encryption data;The encryption data is loaded into the first thread;Decryption is run in the first thread to calculate Method, to be decrypted to the encryption data.
Preferably, in the webpage loading method, the presentation for carrying out institute's requested webpage by the second thread includes:It is described Data after decryption are sent to second thread by first thread after being decrypted to the encryption data;And institute The second thread is stated according to the data after decryption to carry out the presentation of institute's requested webpage.
Preferably, in the webpage loading method, after the decryption that the first thread completes the encryption data, Second thread is aided in carry out the presentation of asked webpage.
Preferably, in the webpage loading method, the browser is gone back when to webpage described in the server request The facility information of the terminal device is sent so that the server is verified to the server;And the browser is also The notification message being proved to be successful is received from the server, the notification message includes the decryption for the encryption data Key.
Preferably, in the webpage loading method, the key for the decryption of the encryption data is stored in terminal In equipment, but the key cannot be locally directly read in terminal device.
Preferably, in the webpage loading method, the key is stored in terminal device, the card in the form of certificate Book is the user that the server or the Web page owners are presented to the terminal device or the terminal device.
Preferably, in the webpage loading method, the key storage within hardware, in the hardware and the terminal When equipment is connected, the terminal device reads the key from the hardware, and the hardware is that the Web page owners are presented to The user's of the terminal device or the terminal device.
Preferably, in the webpage loading method, the browser is gone back when to webpage described in the server request The facility information of the terminal device is sent so that the server is verified to the server;The browser is also from institute State server and receive the notification message being proved to be successful, the notification message includes the critical data needed for reading the key;And And the browser reads the key using the critical data.
In accordance with a further aspect of the present invention, there is provided a kind of terminal device, the terminal device has browser, the end End equipment includes:Requesting component, for the access request based on browser to server request webpage;Receiving part, for from Server receives the web data of institute's requested webpage, and the web data includes encryption data;First thread processing component, is used for The decryption of the encryption data is carried out by first thread;And the second thread process part, for being carried out by the second thread The presentation of institute's requested webpage.
Preferably, the terminal device also includes:Encryption data identification component, for recognizing the institute in the web data Encryption data is stated, and the encryption data is loaded into the first thread, the first thread processing component is described Decipherment algorithm is run in one thread, to be decrypted to the encryption data.
Preferably, in the terminal device, the first thread processing component is decrypted to the encryption data Afterwards, the data after decryption are sent to the second thread process part, after the second thread process part is according to decryption Data carry out the presentation of institute's requested webpage.
Webpage loading method of the invention and terminal device, are decrypted by first thread to encryption data, and Webpage presentation is carried out by the second thread, so that the presentation of the webpage comprising encryption data is more smooth.
Brief description of the drawings
By reference to Description of Drawings according to embodiments of the present invention, the various features and advantage of the embodiment of the present invention will be brighter It is aobvious, and be also easier to be understood, in the accompanying drawings:
Fig. 1 shows the flow chart of webpage loading method according to a first embodiment of the present invention;
Fig. 2 shows the flow of the dual-thread process step in webpage loading method according to a first embodiment of the present invention Figure;
Fig. 3 shows the flow chart of webpage loading method according to a second embodiment of the present invention;
Fig. 4 shows the flow of the dual-thread process step in webpage loading method according to a second embodiment of the present invention Figure;
Fig. 5 shows the schematic block diagram of terminal device according to a first embodiment of the present invention;And
Fig. 6 shows the schematic block diagram of terminal device according to a second embodiment of the present invention.
Specific implementation
Webpage loading method according to embodiments of the present invention described below with reference to the accompanying drawings.
Webpage loading method 100 according to a first embodiment of the present invention will be described with reference to Figure 1 first.According to the present invention the The webpage loading method 100 of one embodiment is applied to terminal device, and starts in step S101.
In step S110, the terminal device is by browser to server request webpage.The server can be appointed Data server, Website server, cloud server of what type etc., the webpage can be any kind of webpage, and And program, css files and the html files write with javascript can be included.
In step S120, the terminal device receives the web data of institute's requested webpage, institute by browser from server Stating web data includes the first data division, and first data division is used to realize the first function.
For example, after first data division can include source code or the encryption of the program write with javascript Source code, and the treatment of first data division needs a large amount of calculatings/process resources to consume.For example, encryption data Decoding needs to consume a large amount of calculating/process resources(Cpu resource), can with the execution of the web application of javascript programmings Can need to consume a large amount of calculating/process resources(Cpu resource).
According to actual conditions, first function can be web application function or can be encipherment protection function etc. Deng.
If not only having performed the treatment of first data division using the intrinsic thread of browser but also the webpage being presented, May be such that the presentation of webpage seems sluggish.
Additionally, first data division can also be the encryption data of css files or html files.
In step S130, the browser of the terminal device carries out first data division at least by first thread Part is processed, and the presentation of institute's requested webpage is carried out by the second thread.
For example, calling web worker by browser and opening the first thread, and pass through the intrinsic line of browser Journey carries out the presentation of institute's requested webpage.For convenience, the intrinsic thread of browser is referred to as the second thread, to be different from The first thread.
First thread described in embodiments of the invention and the second thread are two processes of concurrent working.
For example, in the case where first data division is the web application for needing a large amount of computing resources, by described First thread carries out the calculating of the web application, and second thread is according to the result of the first thread Existing institute requested webpage.
For example, in the case where first data division is encryption data, described is carried out by the first thread The decryption of one data division, and second thread according to the result of the first thread to present requested webpage.
And, first data division can be the encryption data of web application, can be entered by the first thread The decryption of row first data division and asked net come the web application run after decryption and is presented by the second thread Page, it is also possible to the web application after the first thread carries out the decryption of first data division and runs decryption, and Institute's requested webpage is presented by the second thread.
In step S199, the end of webpage loading method 100 treatment according to a first embodiment of the present invention.
The step in webpage loading method 100 according to a first embodiment of the present invention is described in detail below with reference to Fig. 2 S130。
As it was previously stated, in step S130, the browser of the terminal device carries out first data by first thread Partial at least part for the treatment of, the presentation of institute's requested webpage is carried out by the second thread.
In step S1310, first data division in the web data is recognized.
For example, the mark data for identifying first data division can be included in the web data.
For example, can also include using in the case where first data division is web application, in the web data In the mark data for identifying first data division.The mark data can also be counted as the one of first data division Part, in the case, first data division can include the mark data and the web application data.Should note Meaning, it is also possible to which the mark data is not regarded as a part for first data division, and only it is viewed as independent of described the The mark data part of one data division or one as the second data division in addition to first data division Point.
For example, in the case where first data division is encryption data, the web data can not only include using In the mark data for identifying the encryption data, but also can include being calculated for the decryption for being decrypted the encryption data Method data.In the case, the mark data and the decipherment algorithm data can also be counted as first data division A part, and be only viewed as independent of first data division mark data part and decryption algorithm data part or Person as the second data division in addition to first data division a part.
In step S1320, first data division is loaded into the first thread.
In step S1330, the first algorithm is run in the first thread, to first data division Reason.
For example, in the case where first data division includes web application, first algorithm is the webpage Using itself, the web application is run in the first thread, it is to process first data division, such as right The web application carries out loading processing.
For example, in the case where first data division includes encryption data, first algorithm can be calculated for decryption Method, runs the decipherment algorithm in the first thread, to process first data division, for example, adds to described Ciphertext data is decrypted treatment.
In step S1340, the first thread passes result after processing first data division It is sent to second thread.
In step S1350, second thread is presented asked net according at least to the result of the first thread Page.
For example, in the case where first data division includes web application, the net is run in the first thread Page application, after the loading processing that the first thread has performed the web application, second thread(That is browser is consolidated There is thread)Implementing result according to the first thread carries out the presentation of institute's requested webpage.
For example, in the case where first data division includes encryption data, the solution is run in the first thread Close algorithm, after the decryption processing that the first thread completes the encryption data, second thread(That is browser is consolidated There is thread)Implementing result according to the first thread carries out the presentation of institute's requested webpage.
Preferably, the web data also includes the second data division, and second thread is according to the first thread Result and second data division are presented asked webpage.
Preferably, the first thread is at the treatment of first data division and the webpage presentation of second thread At least a portion in reason is to carry out parallel.For example, the first thread is being processed first data division Meanwhile, second thread using at least a portion in second data division to present requested webpage, and in institute After first thread completion is stated to the treatment of first data division, second thread utilizes the execution of the first thread Result requested webpage to present.
Webpage loading method 100 according to a first embodiment of the present invention, by first thread to needing a large amount of calculating/treatment The task of resource is at least partly processed, and passing through the second thread carries out webpage presentation, so that comprising the big gauge of needs The presentation of the webpage of the data of calculation/process resource is more smooth.
Next, reference Fig. 5 is illustrated into terminal device 500 according to a first embodiment of the present invention, the terminal device 500 With browser, webpage loading method 100 according to a first embodiment of the present invention is performed in the terminal device 500.
As shown in figure 5, terminal device 500 according to a first embodiment of the present invention includes:Requesting component 510, receiving part 520th, the thread process part 540 of first thread processing component 530 and second.
Requesting component 510 is based on the access request of browser to server request webpage.As it was previously stated, the server can To be any kind of data server, Website server, cloud server etc., the webpage can be any kind of net Page, and program, css files and the html files write with javascript can be included.
Receiving part 520 receives the web data of institute requested webpage from server, the data division of the web data first, First data division is used to realize the first function.
As it was previously stated, the treatment of first data division needs a large amount of calculating/process resource consumption, and described first Function can be web application function or can be encipherment protection function etc..
First thread processing component 530 carries out at least part for the treatment of of first data division by first thread.The Two thread processing components 540 carry out the presentation of institute's requested webpage by the second thread.
For example, calling web worker by browser and opening the first thread, and pass through the intrinsic line of browser Journey carries out the presentation of institute's requested webpage.For convenience, the intrinsic thread of browser is referred to as the second thread, to be different from The first thread.
For example, in the case where first data division is the web application for needing a large amount of computing resources, first thread Processing component 530 carries out the calculating of the web application, and the basis of the second thread process part 540 by the first thread The result of first thread processing component 530 requested webpage to present.
For example, in the case where first data division is encryption data, first thread processing component 530 is by described First thread carries out the decryption of first data division, and the second thread process part 540 according to first thread processing unit The result of part 530 requested webpage to present.
The terminal device 500 can also include data discrimination section 550(It is not shown).Data discrimination section 550 is recognized First data division in the web data, and first data division is loaded into the first thread, The first thread processing component 530 runs the first algorithm in the first thread, described for being carried out by first thread At least part for the treatment of of the first data division.
For example, in the case where first data division includes web application, first algorithm is the webpage Using itself, the first thread processing component 530 runs the web application in the first thread, so as to described first Data division is processed, for example, carry out loading processing to the web application.
For example, in the case where first data division includes encryption data, first algorithm can be calculated for decryption Method, the first thread processing component 530 runs the decipherment algorithm in the first thread, so as to first data portion Divide and processed, for example, treatment is decrypted to the encryption data.
In the terminal device, the first thread processing component 530 is processed to first data division Afterwards, result is sent to the second thread process part 540, the second thread process part 540 according at least to The result of the first thread processing component 530 requested webpage to present.
The web data can also include the second data division, and the second thread process part 540 is according to described the The result of one thread process part 530 and second data division are presented asked webpage, the first thread During the treatment of first data division of processing component 530 pairs is processed with the webpage presentation of the second thread process part 540 At least a portion be to carry out parallel.
Terminal device 500 according to a first embodiment of the present invention, by first thread to needing a large amount of calculating/process resources Task at least partly processed, and passing through the second thread carries out webpage presentation, so that comprising needing a large amount of to calculate/place The presentation for managing the webpage of the data of resource is more smooth.
Next, reference Fig. 3 is illustrated into webpage loading method 300 according to a second embodiment of the present invention.According to this hair The webpage loading method 300 of bright second embodiment is applied to terminal device, and starts in step S301.
In step S310, the terminal device is by browser to server request webpage.The server can be appointed Data server, Website server, cloud server of what type etc., the webpage can be any kind of webpage, and And program, css files and the html files write with javascript can be included.
In step S320, the terminal device receives the web data of institute's requested webpage, institute by browser from server Stating web data includes encryption data.
The encryption data can be the encryption data of the web application of javascript programmings or can be The encryption data of css files or html files.
In step S330, the browser of the terminal device carries out the decryption of the encryption data by first thread, leads to Crossing the second thread carries out the presentation of institute's requested webpage.
For example, calling web worker by browser and opening the first thread, and pass through the intrinsic line of browser Journey carries out the presentation of institute's requested webpage.For convenience, the intrinsic thread of browser is referred to as the second thread, to be different from The first thread.
In step S399, the end of webpage loading method 300 treatment according to a second embodiment of the present invention.
The step in webpage loading method 300 according to a second embodiment of the present invention is described in detail below with reference to Fig. 3 S330。
As it was previously stated, in step S330, the browser of the terminal device carries out the encryption data by first thread Decryption, the presentation of institute's requested webpage is carried out by the second thread.
In step S3310, the encryption data in the web data is recognized.
For example, the mark data for identifying the encryption data can be included in the web data.Certainly, it is described Mark data is not the necessary data in the web data, and the feelings of the encryption data can be being identified by other means Under condition, can be without comprising the mark data.
For example, the web data can also include the decipherment algorithm data for being decrypted to the encryption data. Certainly, it has been known a priori by being calculated for the decryption for being decrypted the encryption data from the server in the terminal device In the case of method, such as described terminal device has been downloaded specially in advance by means such as the server registration/payings For the webpage of the server decipherment algorithm in the case of, can not include being used for described in the web data plus The decipherment algorithm data that ciphertext data is decrypted.
It is described in the case where the web data includes the mark data and the decipherment algorithm data at least one At least one can be counted as mark data part and decryption algorithm data part or conduct independently of the encryption data A part for the second data division in addition to the encryption data.
In step S3320, the encryption data is loaded into the first thread.
In step S3330, decipherment algorithm is run in the first thread, to be decrypted to the encryption data.
In step S3340, the first thread passes the data after decryption after being decrypted to the encryption data It is sent to second thread.
In step S3350, second thread carries out the presentation of institute's requested webpage according to the data after decryption.
Preferably, in step S3350, the first thread is also aided in after the decryption for completing the encryption data Second thread carries out the presentation of asked webpage.
Will be described below how decipherment algorithm being run in first thread in the terminal device.
As described above, the encryption data is loaded into the first thread in step S3320, and in step S3330 runs decipherment algorithm to be decrypted to the encryption data in the first thread.
It is well known that, need to be encrypted the decryption of data using key when decipherment algorithm is run.According to this hair In the webpage loading method of bright second embodiment, the key can be in several ways obtained.
First example
The terminal device can obtain the key of the decryption for the encryption data from the server in advance.Example Such as, the key can be stored directly with document form.
Preferably, the terminal device cannot locally directly read the key file.When the terminal device from the clothes During business device requested webpage data, the terminal device receives specific data from the server, and should by browser utilization Specific data could read the key file, so as to the key to be directly used for the decryption processing of the first thread.
For example, the key can be stored in terminal device in the form of document certificate, the certificate is the server Or the Web page owners are presented to the user's of the terminal device or the terminal device.
Second example
Within hardware, when the hardware is connected with the terminal device, the terminal device is from institute for the key storage State hardware and read the key, the hardware is that the Web page owners are presented to the terminal device or the terminal device User's.
Although additionally, according to a first embodiment of the present invention with the foregoing description of the webpage loading method of second embodiment in It is not explicitly depicted, but can also includes that checking is walked with the webpage loading method of second embodiment according to a first embodiment of the present invention Suddenly.
Be described below according to a first embodiment of the present invention with the webpage loading method 100/200 of second embodiment in test Card step.
In above-mentioned steps S110 or S310, when the terminal device passes through browser to server request webpage, also The user profile of the facility information of the terminal device or the user of the terminal device is sent for institute to the server Server is stated to be verified.That is, described terminal device, to server request webpage, can be wrapped by browser in the request Include the user profile of the facility information of the terminal device or the user of the terminal device, for the server carry out it is described The checking of the user of terminal device or the terminal device.
Then, it is described after the user of terminal device or the terminal device described in the server good authentication Browser receives the notification message being proved to be successful from the server.
For example, store key and the terminal device with document form in the terminal device locally cannot directly read In the case of taking the key file, the critical data needed for can including reading the key in the notification message.It is described Browser can utilize the critical data to read the key included in the key file.Similarly, which is also suitable In key storage situation within hardware.
Alternatively, the key of the decryption for the encryption data can be directly included in the notification message.
Webpage loading method 300 according to a second embodiment of the present invention, is decrypted by first thread to encryption data, And passing through the second thread carries out webpage presentation, so that the presentation of the webpage comprising encryption data is more smooth.
Next, terminal device 600 according to a second embodiment of the present invention will be described with reference to Figure 6, the terminal device 600 With browser, webpage loading method 300 according to a second embodiment of the present invention is performed in the terminal device 600.
As shown in fig. 6, terminal device 600 according to a first embodiment of the present invention includes:Requesting component 610, receiving part 620th, the thread process part 640 of first thread processing component 630 and second.
Requesting component 610 is based on the access request of browser to server request webpage.As it was previously stated, the server can To be any kind of data server, Website server, cloud server etc., the webpage can be any kind of net Page, and program, css files and the html files write with javascript can be included.
Receiving part 620 receives the web data of institute's requested webpage from server, and the web data includes encryption data.
First thread processing component 630 carries out the decryption of the encryption data by first thread.Second thread process portion Part 640 carries out the presentation of institute's requested webpage by the second thread.
Additionally, the terminal device can also include encryption data identification component 650(It is not shown).The encryption data is recognized Part 650 recognizes the encryption data in the web data, and the encryption data is loaded into the first thread. The first thread processing component 630 runs decipherment algorithm in the first thread, to be solved to the encryption data It is close.
In the terminal device, the first thread processing component 630 after being decrypted to the encryption data, Data after decryption are sent to the second thread process part 640, after the second thread process part 640 is according to decryption Data carry out the presentation of institute's requested webpage.
Terminal device 600 according to a second embodiment of the present invention, is decrypted by first thread to encryption data, and is led to Crossing the second thread carries out webpage presentation, so that the presentation of the webpage comprising encryption data is more smooth.
The webpage loading method according to embodiments of the present invention by reference to Description of Drawings above.Those skilled in the art should Understand, the invention is not restricted to embodiment described above, various repairing can be made in the case of without departing from spirit of the invention Change, the modification should also be included within the scope of the present invention.The scope of the present invention should be by appended claims and its equivalent To limit.

Claims (20)

1. a kind of webpage loading method, it is applied to terminal device, and methods described includes:
Browser is to server request webpage;
Browser receives the web data of institute's requested webpage from server, and the web data includes encryption data;And
Browser carries out the decryption of the encryption data by first thread, is in by what the second thread carried out institute's requested webpage It is existing, wherein after the decryption that the first thread completes the encryption data, aiding in second thread asked Webpage presentation;
Wherein, during the first thread is processed the treatment of first data division with the webpage presentation of second thread At least a portion is carried out parallel;The first thread while processing first data division, described Two threads using at least a portion in the second data division to present requested webpage, and the first thread complete it is right After the treatment of first data division, second thread is presented using the implementing result of the first thread is asked Webpage.
2. webpage loading method as claimed in claim 1, wherein,
The first thread is opened by calling web worker.
3. webpage loading method as claimed in claim 1, wherein, the decrypted packet of the encryption data is carried out by first thread Include:
Recognize the encryption data in the web data;
The encryption data is loaded into the first thread;
Decipherment algorithm is run in the first thread, to be decrypted to the encryption data.
4. webpage loading method as claimed in claim 1, wherein, the presentation bag of institute's requested webpage is carried out by the second thread Include:
Data after decryption are sent to second line by the first thread after being decrypted to the encryption data Journey;And
Second thread carries out the presentation of institute's requested webpage according to the data after decryption.
5. webpage loading method as claimed in claim 1, wherein,
The browser also sends setting for the terminal device when to webpage described in the server request to the server Standby information is verified for the server;And
The browser also receives the notification message being proved to be successful from the server, and the notification message is included for described The key of the decryption of encryption data.
6. webpage loading method as claimed in claim 1, wherein, the key for the decryption of the encryption data is stored in In terminal device, but the key cannot be locally directly read in the terminal device.
7. webpage loading method as claimed in claim 6, wherein, the key is stored in terminal device in the form of certificate, The certificate is the user that the server or the Web page owners are presented to the terminal device or the terminal device.
8. webpage loading method as claimed in claim 6, wherein, the key storage within hardware, in the hardware and institute When stating terminal device connection, the terminal device reads the key from the hardware, and the hardware is the Web page owners It is presented to the user's of the terminal device or the terminal device.
9. webpage loading method as claimed in claim 7 or 8, wherein, the browser is to described in the server request During webpage, the facility information of the terminal device is also sent to the server so that the server is verified;
The browser also receives the notification message being proved to be successful from the server, and the notification message includes that reading is described close Critical data needed for key;And
The browser reads the key using the critical data.
10. a kind of terminal device, the terminal device has browser, and the terminal device includes:
Requesting component, for the access request based on browser to server request webpage;
Receiving part, the web data for receiving institute's requested webpage from server, the web data includes encryption data;
First thread processing component, the decryption for carrying out the encryption data by first thread;And
Second thread process part, the presentation for carrying out institute's requested webpage by the second thread, wherein in the first thread Complete after the decryption of the encryption data, aid in second thread to carry out the presentation of asked webpage;
Wherein, during the first thread is processed the treatment of first data division with the webpage presentation of second thread At least a portion is carried out parallel;The first thread while processing first data division, described Two threads using at least a portion in the second data division to present requested webpage, and the first thread complete it is right After the treatment of first data division, second thread is presented using the implementing result of the first thread is asked Webpage.
11. terminal devices as claimed in claim 10, also include:
Encryption data identification component, for recognizing the encryption data in the web data, and the encryption data is added It is downloaded in the first thread,
Wherein, the first thread processing component runs decipherment algorithm in the first thread, so as to the encryption data It is decrypted.
12. terminal devices as claimed in claim 10, wherein,
Be sent to for the data after decryption described by the first thread processing component after being decrypted to the encryption data Second thread process part,
The second thread process part carries out the presentation of institute's requested webpage according to the data after decryption.
A kind of 13. webpage loading methods, it is applied to terminal device, and methods described includes:
Browser is to server request webpage;
Browser receives the web data of institute's requested webpage from server, and the web data includes the first data division, described First data division is used to realize the first function;And
Browser carries out at least part for the treatment of of first data division by first thread, carries out asking by the second thread The presentation of webpage is asked, first data division is encryption data, first data division is carried out by the first thread Decryption;Second thread according to the result of the first thread to present requested webpage, wherein, described One thread is completed after the decryption of the encryption data, aids in second thread to carry out the presentation of asked webpage.
14. webpage loading methods as claimed in claim 13, wherein,
The first thread is called web worker and is opened by browser, and second thread is the intrinsic of browser Thread.
15. webpage loading methods as claimed in claim 13, first data division is carried out at least by first thread Part treatment includes:
Recognize first data division in the web data;
First data division is loaded into the first thread;And
The first algorithm is run in the first thread, to process first data division.
16. webpage loading methods as claimed in claim 13, the presentation for carrying out institute's requested webpage by the second thread includes:
Result is sent to second line by the first thread after processing first data division Journey;And
Second thread according at least to the first thread result to present requested webpage.
17. webpage loading methods as claimed in claim 13, wherein,
The web data also includes the second data division, result and institute of second thread according to the first thread The second data division is stated asked webpage is presented,
In webpage presentation treatment of the first thread to the treatment of first data division with second thread at least A part is to carry out parallel.
A kind of 18. terminal devices, the terminal device has browser, and the terminal device includes:
Requesting component, for the access request based on browser to server request webpage;
Receiving part, the web data for receiving institute's requested webpage from server, the data division of the web data first, institute The first data division is stated for realizing the first function;
First thread processing component, at least part for the treatment of for carrying out first data division by first thread;And
Second thread process part, the presentation for carrying out institute's requested webpage by the second thread, first data division is Encryption data, the decryption of first data division is carried out by the first thread;Second thread is according to described first The result of thread requested webpage to present, wherein, the first thread complete the encryption data decryption it Afterwards, second thread is aided in carry out the presentation of asked webpage;
Wherein, during the first thread is processed the treatment of first data division with the webpage presentation of second thread At least a portion is carried out parallel;The first thread while processing first data division, described Two threads using at least a portion in the second data division to present requested webpage, and the first thread complete it is right After the treatment of first data division, second thread is presented using the implementing result of the first thread is asked Webpage.
19. terminal devices as claimed in claim 18, also include:
Data discrimination section, for recognizing first data division in the web data, and by first data It is partially loaded into the first thread,
The first thread processing component runs the first algorithm in the first thread, described for being carried out by first thread At least part for the treatment of of the first data division.
20. terminal devices as claimed in claim 18, wherein,
The web data also includes the second data division, and the second thread process part is according to the first thread processing unit The result of part and second data division are presented asked webpage,
The first thread processing component is to the treatment of first data division and the webpage of the second thread process part At least a portion in presentation treatment is to carry out parallel.
CN201210365938.4A 2012-09-27 2012-09-27 webpage loading method and terminal device Active CN103699535B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210365938.4A CN103699535B (en) 2012-09-27 2012-09-27 webpage loading method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210365938.4A CN103699535B (en) 2012-09-27 2012-09-27 webpage loading method and terminal device

Publications (2)

Publication Number Publication Date
CN103699535A 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
CN201210365938.4A Active CN103699535B (en) 2012-09-27 2012-09-27 webpage loading method and terminal device

Country Status (1)

Country Link
CN (1) CN103699535B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268229B (en) * 2014-09-26 2018-01-19 北京金山安全软件有限公司 Resource obtaining method and device based on multi-process browser
CN109144599B (en) * 2017-06-27 2021-09-24 上海木鸡网络科技有限公司 Function loading method and device, computer readable storage medium and terminal
CN108235067B (en) * 2018-01-04 2020-09-08 武汉斗鱼网络科技有限公司 Authentication method and device for video stream address
CN113055309A (en) * 2019-12-28 2021-06-29 中移(成都)信息通信科技有限公司 Resource loading method, device, equipment and medium

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
CN103699535A (en) 2014-04-02

Similar Documents

Publication Publication Date Title
US11113412B2 (en) System and method for monitoring and verifying software behavior
JP5996804B2 (en) Device, method and system for controlling access to web objects of web pages or web browser applications
CN104113551B (en) A kind of platform authorization method, platform service end and applications client and system
CN103401957B (en) A kind of unique method identifying client machine under web environment
WO2016029595A1 (en) Method, device, and equipment for calling open platform and non-volatile computer storage medium
CN103581187B (en) Method and system for controlling access rights
JP2018501567A (en) Device verification method and equipment
TWI541669B (en) Detection systems and methods for static detection applications, and computer program products
CN103139182B (en) A kind of method that user of permission accesses, client, server and system
CN103699535B (en) webpage loading method and terminal device
CN105208041B (en) Cloud storage application encryption data packet crack method based on HOOK
CN103559221B (en) A kind of method, device and browser for carrying out multimedia-data procession
WO2018227798A1 (en) Custom system implementation method, computer device, and computer-readable storage medium
CN105187369B (en) A kind of data access method and device
CN106330817A (en) Webpage access method, device and terminal
CN110446075A (en) Encryption method and device, decryption method and device, electronic equipment
CN107454041B (en) Method and device for preventing server from being attacked
CN110213247A (en) A kind of method and system improving pushed information safety
CN107948186A (en) A kind of safety certifying method and device
CN104426657B (en) A kind of service authentication method, system and server
CN114726630B (en) License-based information security authorization method and device, electronic equipment and medium
CN108737328B (en) Browser user agent identification method, system and device
CN108235067B (en) Authentication method and device for video stream address
CN111585995A (en) Method and device for transmitting and processing safety wind control information, computer equipment and storage medium
CN106850519B (en) Application security authentication method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant