CN104462571A - Webpage loading method and device and browser client-side - Google Patents

Webpage loading method and device and browser client-side Download PDF

Info

Publication number
CN104462571A
CN104462571A CN201410836208.7A CN201410836208A CN104462571A CN 104462571 A CN104462571 A CN 104462571A CN 201410836208 A CN201410836208 A CN 201410836208A CN 104462571 A CN104462571 A CN 104462571A
Authority
CN
China
Prior art keywords
web
browser kernel
browser
data
webpage
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.)
Pending
Application number
CN201410836208.7A
Other languages
Chinese (zh)
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410836208.7A priority Critical patent/CN104462571A/en
Publication of CN104462571A publication Critical patent/CN104462571A/en
Pending legal-status Critical Current

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

Landscapes

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

Abstract

The invention provides a webpage loading method and device and a browser client-side. The webpage loading method comprises the steps of initiating a webpage request under a first browser kernel in the browser client-side, obtaining webpage data corresponding to the webpage request, judging whether webpage elements in the obtained webpage data conform to preset webpage element attribute or not and switching to a second browser kernel to load the obtained webpage data. By means of the webpage loading method and device and the browser client-side, the double-kernel browser can intelligently load and render webpage data and accordingly enables webpage data loading to be displayed normally.

Description

Carry out the method for webpage loading, device and browser client
Technical field
The invention belongs to browser technology field, particularly relate to a kind of method, device and the browser client that carry out webpage loading.
Background technology
Double-core browser is exactly that browser inside comprises two and plays up kernel.Such as, two kernels of double-core browser inside are IE kernel and WebKit kernel respectively, wherein, IE kernel is mainly used in compatible Web bank and public service website, and the non-IE browser of WebKit kernel can give play to display speed, better display effect, more excellent script execution performance faster, thus have increasing user.
Two kernels of double-core browser can not be that a webpage carries out playing up typesetting work simultaneously, but according to our needs, the kernel being more suitable for current web page among both selections carries out playing up typesetting, and selects the work of playing up kernel to be all generally that browser self " intelligence " completes.
If " intelligence " degree of browser is not high, that always can not select applicable current web page exactly plays up kernel, and so then webpage loaded and displayed is abnormal, and user can not normal browsing web data.
Therefore, need badly in prior art a kind of can in the technical scheme of the double-core browser of correct loaded and displayed webpage to solve the problem.
Summary of the invention
In view of the above problems, propose the present invention to provide a kind of to overcome the problems referred to above or the fundamental purpose of the present invention that solves the problem at least in part and be to provide a kind of method, device and the browser client that carry out webpage loading.
According to one aspect of the present invention, a kind of method of carrying out webpage loading is provided, comprises: in the first browser client in the first browser kernel issues web-page requests; Get the web data that described web-page requests is corresponding; Web page element in the web data got described in judging meets preset web page element attribute; Be switched to the web data got described in the second browser kernel loading.
Wherein, be switched to the step of the web data got described in the second browser kernel loading, also comprise: be switched to and again initiate web-page requests under the second browser kernel, and the web data obtaining correspondence load.
Wherein, also comprise: the attribute obtaining the browser kernel recorded in the meta field of web data, the browser kernel using this attribute to indicate carries out web data loading.
Wherein, meet preset web page element attribute described in comprise: the particular webpage element in web data, wherein this particular webpage element comprises the label in the non-html language of agreement.
Wherein, also comprise: the list of preserving the web page element of the predefined type pre-set in the first browser client, with corresponding with corresponding browser kernel.
Wherein, describedly be switched to the step that the second browser kernel loads the web data got, comprise: use the second browser client to use its second browser kernel to carry out loading the web data got, wherein the cache location of the web data of download is sent to described second browser client or again initiate web-page requests to obtain web data.
Wherein, also comprise: receive the switching command being switched to the second browser kernel from the first browser kernel; The second browser kernel is used to initiate the network response of the network request of the webpage of the first domain name and/or the webpage of reception the first domain name; Tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.
Wherein, the described step write operation for the Cookie data of the first domain name under described second browser kernel being redirected to accordingly the write operation of the Cookie data to the first domain name under described profile path, comprise: be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under.
Wherein, the described step read operation for the Cookie data of the first domain name under described second browser kernel being redirected to accordingly the read operation of the Cookie data to the first domain name under described profile path, comprise: receive the triggering command reading cookie information, utilization is kept at the mapping relations under profile path, and the cookie information that the webpage name lookup of the first domain name of the login of foundation under the second browser kernel is corresponding also reads.
Wherein, the intercept process of the read/write operation of the Cookie data for the first domain name under above-mentioned interception second browser kernel is carried out by browser Frame host process.
According to another aspect of the present invention, provide a kind of browser client, comprising: interface assembly, it is configured to described browser client and draws interactive interface, receives the information of input and/or output display and user interactions; Networking component, it is configured to pass interface assembly and triggers the network request of initiating; Browser kernel assembly, it is configured to process networking component and triggers the network request of initiating, and resolves that play up in rear formation web displaying window can the web data of loaded and displayed; Described browser kernel assembly comprises further: request initiate module, in the first browser client in the first browser kernel issues web-page requests; Obtain module, for getting web data corresponding to described web-page requests; Judge module, meet preset web page element attribute for the web page element in the web data that gets described in judging; Switch and load module, for being switched to the web data got described in the second browser kernel loading.
Wherein, described switching load module also for, be switched to and again initiate web-page requests under the second browser kernel, and obtain corresponding web data and load.
Wherein, described switching load module also for, obtain the attribute of the browser kernel recorded in the meta field of web data, the browser kernel using this attribute to indicate carries out web data loading.
Wherein, meet preset web page element attribute described in comprise: the particular webpage element in web data, wherein this particular webpage element comprises the label in the non-html language of agreement.
Wherein, described switching load module also for, in the first browser client, preserve the list of the web page element of the predefined type pre-set, with corresponding with corresponding browser kernel; Be switched to the browser kernel of answering with web page element Attribute Relative according to described list and load the web data got.
Wherein, described switching load module also for, use the second browser client to use its second browser kernel to carry out loading the web data got, wherein the cache location of the web data of download is sent to described second browser client or again initiate web-page requests to obtain web data.
Wherein, described browser kernel assembly also comprises: switching command receives module, for receiving the switching command being switched to the second browser kernel from the first browser kernel; Cookie data read/write operation module, for the network response using the second browser kernel to initiate the network request of the webpage of the first domain name and/or the webpage of reception the first domain name; Tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.
Wherein, described Cookie data read/write operation module also for, be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under.
Wherein, described Cookie data read/write operation module also for, receive the triggering command reading cookie information, utilization is kept at the mapping relations under profile path, and the cookie information that the webpage name lookup of the first domain name of the login of foundation under the second browser kernel is corresponding also reads.
According to another aspect of the invention, a kind of device carrying out webpage loading is provided, comprise: processor, in this processor, load operating has request to initiate module, obtains module, judges module, switches loading module, wherein: request initiate module, in the first browser client in the first browser kernel issues web-page requests; Obtain module, for getting web data corresponding to described web-page requests; Judge module, meet preset web page element attribute for the web page element in the web data that gets described in judging; Switch and load module, for being switched to the web data got described in the second browser kernel loading.
Wherein, described switching load module also for, be switched to and again initiate web-page requests under the second browser kernel, and obtain corresponding web data and load.
Wherein, described switching load module also for, obtain the attribute of the browser kernel recorded in the meta field of web data, the browser kernel using this attribute to indicate carries out web data loading.
Wherein, meet preset web page element attribute described in comprise: the particular webpage element in web data, wherein this particular webpage element comprises the label in the non-html language of agreement.
Wherein, described switching load module also for, in the first browser client, preserve the list of the web page element of the predefined type pre-set, with corresponding with corresponding browser kernel; Be switched to the browser kernel of answering with web page element Attribute Relative according to described list and load the web data got.
Wherein, described switching load module also for, use the second browser client to use its second browser kernel to carry out loading the web data got, wherein the cache location of the web data of download is sent to described second browser client or again initiate web-page requests to obtain web data.
Wherein, going back load operating in described processor has: switching command receives module, for receiving the switching command being switched to the second browser kernel from the first browser kernel; Cookie data read/write operation module, for the network response using the second browser kernel to initiate the network request of the webpage of the first domain name and/or the webpage of reception the first domain name; Tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.
Wherein, described Cookie data read/write operation module also for, be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under.
Wherein, described Cookie data read/write operation module also for, receive the triggering command reading cookie information, utilization is kept at the mapping relations under profile path, and the cookie information that the webpage name lookup of the first domain name of the login of foundation under the second browser kernel is corresponding also reads.
According to technical scheme of the present invention, by according to the web page element attribute in web data corresponding to the web-page requests initiated under the first browser kernel, be switched to the second corresponding browser kernel and load the web data got, achieve the loading of double-core browser intelligence and play up web data, thus make web data loaded and displayed normal.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 is the process flow diagram of the method for carrying out webpage loading according to an embodiment of the invention;
Fig. 2 is the process flow diagram of the method for carrying out webpage loading according to another embodiment of the present invention;
Fig. 3 is the structured flowchart carrying out the device of webpage loading according to the embodiment of the present invention;
Fig. 4 is the structured flowchart of the browser client according to the embodiment of the present invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
According to embodiments of the invention, provide a kind of method of carrying out webpage loading, the method is applied to the various clients with double-core browser, and this client-side is as being Web browser client.It should be noted that, above-mentioned client refers to corresponding with server, is arranged on for user provides the application program of service in terminal, e.g., is arranged on the application program on terminal or Intelligent sliding moved end equipment.
Fig. 1 is the process flow diagram of the method for carrying out webpage loading according to an embodiment of the invention.As shown in Figure 1, the method for carrying out webpage loading comprises:
Step S102, in the first browser client in the first browser kernel issues web-page requests.
Step S104, gets the web data that described web-page requests is corresponding.
Step S106, the web page element in the web data got described in judging meets preset web page element attribute.
Wherein, meet preset web page element attribute described in can comprise: the particular webpage element in web data, wherein this particular webpage element comprises the label in the non-html language of agreement.
Step S108, is switched to the web data got described in the second browser kernel loading.
Further, be switched to and again initiate web-page requests under the second browser kernel, and the web data obtaining correspondence loads.
In section Example of the present invention, step S108 can also be replaced with following steps: the attribute obtaining the browser kernel recorded in the meta field of web data, the browser kernel using this attribute to indicate carries out web data loading.
Such as, if the label recorded in the meta field of web data is:
<meta name=" renderer " content=" webkit "/>, then represent that browser kernel attribute is very fast core;
If the label recorded in the meta field of web data is:
<meta name=" renderer " content=" ie-comp "/>, then represent that browser kernel attribute is the compatible kernel of IE;
If the label recorded in the meta field of web data is:
<meta name=" renderer " content=" ie-stand "/>, then represent that browser kernel attribute is IE standard kernel.
In the application of reality, the browser kernel namely using " content " to indicate carries out the loading of web data.
In another embodiment of the invention, preserve the list of the web page element of the predefined type pre-set in the first browser client, in table, web page element type should with the browser kernel Attribute Relative loading it.After getting web data corresponding to described web-page requests, judge the web page element attribute in the web data got, and use the web data got described in corresponding browser kernel loading according to described list.
In section Example of the present invention, step S108 can also be replaced with following steps:
Use the second browser client to use its second browser kernel to carry out loading the web data got, wherein the cache location of the web data of download is sent to described second browser client or again initiate web-page requests to obtain web data.
Be the process flow diagram of the method for carrying out webpage loading according to another embodiment of the present invention below with reference to Fig. 2, Fig. 2, as shown in Figure 2, the method comprises:
Step S202, in the first browser client in the first browser kernel issues web-page requests.
Step S204, gets the web data that described web-page requests is corresponding.
Step S206, the web page element in the web data got described in judging meets preset web page element attribute.
Above-mentioned steps please refer to treatment scheme corresponding in Fig. 1, repeats no more herein.
Step S208, receives the switching command being switched to the second browser kernel from the first browser kernel.
Wherein, described switching command both can be that the second browser kernel be sent in this equipment carries out the webpage of loading first domain name or initiates the instruction of map network request, can also be that the second browser kernel be sent in other equipment carries out the webpage of loading first domain name or initiates the instruction of map network request.In section Example of the present invention, described first browser kernel is webkit kernel, and described second browser kernel is the kernel of IE browser.
Step S210, uses the second browser kernel to initiate the network response of the network request of the webpage of the first domain name and/or the webpage of reception the first domain name; Tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.
HTTP (Hyper Text Transfer Protocol) i.e. HTML (Hypertext Markup Language) is the puppy parc of current web-page transmission.Http protocol have employed request/response model, and browser or other clients send request, and server is given and response.In step S210, the read operation of the Cookie data for the first domain name under described interception second browser kernel is, the read operation carried out when being the cookie data of filling in the header of http message during network request, namely, when HTTP request sends, web server can be sent to together being kept at this request domain all cookie values under one's name; The write operation of the Cookie data for the first domain name under described interception second browser kernel is, is the write operation when cookie data in the header field of http message being written in cookie file, namely arranges HttpCookie during network response.In actual applications, the intercept process of the read/write operation of the Cookie data for the first domain name under above-mentioned interception second browser kernel is carried out by browser Frame host process.
Accordingly, above-mentioned redirect operation also comprises write operation and read operation.Wherein, write operation for the Cookie data of the first domain name under described second browser kernel is redirected to accordingly the step of the write operation of the Cookie data to the first domain name under described profile path, comprise: be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under; Receive the triggering command of preserving described cookie information, the cookie information that the webpage title of the first domain name of the login of acquisition user under the second browser kernel and this login are formed.
And, the described step read operation for the Cookie data of the first domain name under described second browser kernel being redirected to accordingly the read operation of the Cookie data to the first domain name under described profile path, comprise: receive the triggering command reading cookie information, utilization is kept at the mapping relations under profile path, and the cookie information that the webpage name lookup of the first domain name of the login of foundation under the second browser kernel is corresponding also reads.
Completed the switching being switched to the second browser kernel from the first browser kernel by above-mentioned processing procedure, thus the cookie data under the first browser kernel can be used under the second browser kernel to carry out loading the webpage of access first domain name.
Afterwards, if receive the switching command being switched to the first browser kernel from the second browser kernel, first the read/write operation of the Cookie data for the first domain name under interception second browser kernel is stopped, then directly carry out the read/write operation to the cookie data in described profile path under the first browser kernel, namely return to the webpage that use first browser kernel loads access first domain name.
Step S212, is switched to the web data got described in the second browser kernel loading.
According to embodiments of the invention, also provide a kind of device carrying out webpage loading.
With reference to figure 3, it is the structured flowchart of the device carrying out webpage loading according to an embodiment of the invention, as shown in Figure 3, the described device 300 carrying out Cookie data process includes a processor, in this processor, load operating has request to initiate module 310, obtains module 320, judges module 330, switches loading module 340, is described below in detail the 26S Proteasome Structure and Function of each module.
Request initiate module 310, in the first browser client in the first browser kernel issues web-page requests;
Obtain module 320, for getting web data corresponding to described web-page requests;
Judge module 330, meet preset web page element attribute for the web page element in the web data that gets described in judging; Wherein, meet preset web page element attribute described in comprise: the particular webpage element in web data, wherein this particular webpage element comprises the label in the non-html language of agreement.
Switch and load module 340, for being switched to the web data got described in the second browser kernel loading.
Further, described switching load module 340 also for, be switched to and again initiate web-page requests under the second browser kernel, and obtain corresponding web data and load.
Further, described switching load module 340 also for, obtain the attribute of the browser kernel recorded in the meta field of web data, the browser kernel using this attribute to indicate carries out web data loading.
Further, described switching load module 340 also for, the list of the web page element of the predefined type pre-set is preserved in the first browser client, with corresponding with corresponding browser kernel, be switched to the browser kernel of answering with web page element Attribute Relative according to described list and load the web data got.
Further, described switching load module 340 also for, use the second browser client to use its second browser kernel to carry out loading the web data got, wherein the cache location of the web data of download is sent to described second browser client or again initiate web-page requests to obtain web data.
In section Example of the present invention, describedly carry out going back load operating in the processor of the device 300 of Cookie data process and have: switching command receives module (not shown) and Cookie data read/write operation module (not shown), wherein:
Switching command receives module, for receiving the switching command being switched to the second browser kernel from the first browser kernel;
Cookie data read/write operation module, for the network response using the second browser kernel to initiate the network request of the webpage of the first domain name and/or the webpage of reception the first domain name; Tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.
Further, described Cookie data read/write operation module also for, be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under.
Further, described Cookie data read/write operation module also for, receive the triggering command reading cookie information, utilization is kept at the mapping relations under profile path, and the cookie information that the webpage name lookup of the first domain name of the login of foundation under the second browser kernel is corresponding also reads.
Device described above is corresponding with the process carrying out the method for webpage loading described before, therefore, about more detailed ins and outs, and can see the method described before.
According to embodiments of the invention, additionally provide a kind of browser client.
With reference to figure 4, be the structured flowchart of the browser client according to the embodiment of the present invention, as shown in Figure 4, described browser client 400 at least comprises: interface assembly 410, networking component 420, browser kernel assembly 430.
Wherein, interface assembly 410, it is configured to described browser client and draws interactive interface, receives the information of input and/or output display and user interactions; Networking component 420, it is configured to pass interface assembly and triggers the network request of initiating; Browser kernel assembly 430, it is configured to process networking component and triggers the network request of initiating, and resolves that play up in rear formation web displaying window can the web data of loaded and displayed;
Described browser kernel assembly 430 comprises further:
Request initiate module 431, in the first browser client in the first browser kernel issues web-page requests;
Obtain module 432, for getting web data corresponding to described web-page requests;
Judge module 433, meet preset web page element attribute for the web page element in the web data that gets described in judging; Wherein, meet preset web page element attribute described in comprise: the particular webpage element in web data, wherein this particular webpage element comprises the label in the non-html language of agreement.
Switch and load module 434, for being switched to the web data got described in the second browser kernel loading.
Further, described switching load module 434 also for, be switched to and again initiate web-page requests under the second browser kernel, and obtain corresponding web data and load.
Further, described switching load module 434 also for, obtain the attribute of the browser kernel recorded in the meta field of web data, the browser kernel using this attribute to indicate carries out web data loading.
Further, described switching load module 434 also for, in the first browser client, preserve the list of the web page element of the predefined type pre-set, with corresponding with corresponding browser kernel; Be switched to the browser kernel of answering with web page element Attribute Relative according to described list and load the web data got.
Further, described switching load module 434 also for, use the second browser client to use its second browser kernel to carry out loading the web data got, wherein the cache location of the web data of download is sent to described second browser client or again initiate web-page requests to obtain web data.
In section Example of the present invention, described browser kernel assembly 430 also comprises:
Switching command receives module (not shown), for receiving the switching command being switched to the second browser kernel from the first browser kernel;
Cookie data read/write operation module (not shown), for the network response using the second browser kernel to initiate the network request of the webpage of the first domain name and/or the webpage of reception the first domain name; Tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.
Further, described Cookie data read/write operation module also for, be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under.
Further, described Cookie data read/write operation module also for, receive the triggering command reading cookie information, utilization is kept at the mapping relations under profile path, and the cookie information that the webpage name lookup of the first domain name of the login of foundation under the second browser kernel is corresponding also reads.
Browser client described above is corresponding with the process carrying out the method for webpage loading described before, therefore, about more detailed ins and outs, and can see the method described before.
In sum, according to technique scheme of the present invention, by according to the web page element attribute in web data corresponding to the web-page requests initiated under the first browser kernel, be switched to the second corresponding browser kernel and load the web data got, achieve the loading of double-core browser intelligence and play up web data, thus make web data loaded and displayed normal.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions of carrying out the some or all parts in the device of webpage loading that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
Embodiments of the invention disclose A1, a kind of method of carrying out webpage loading, comprising: in the first browser client in the first browser kernel issues web-page requests; Get the web data that described web-page requests is corresponding; Web page element in the web data got described in judging meets preset web page element attribute; Be switched to the web data got described in the second browser kernel loading.A2, method according to A1, wherein, be switched to the second browser kernel load described in the step of web data that gets, also comprise: be switched to and again initiate web-page requests under the second browser kernel, and obtain corresponding web data and load.A3, method according to A1, wherein, also comprise: the attribute obtaining the browser kernel recorded in the meta field of web data, the browser kernel using this attribute to indicate carries out web data loading.A4, method according to A1, wherein, described in meet preset web page element attribute and comprise: the particular webpage element in web data, wherein this particular webpage element comprises the label in the non-html language of agreement.A5, method according to A1, wherein, also comprise: the list of preserving the web page element of the predefined type pre-set in the first browser client, with corresponding with corresponding browser kernel.A6, method according to A1, wherein, describedly be switched to the step that the second browser kernel loads the web data got, comprise: use the second browser client to use its second browser kernel to carry out loading the web data got, wherein the cache location of the web data of download is sent to described second browser client or again initiate web-page requests to obtain web data.A7, method according to A1, wherein, also comprise: receive the switching command being switched to the second browser kernel from the first browser kernel; The second browser kernel is used to initiate the network response of the network request of the webpage of the first domain name and/or the webpage of reception the first domain name; Tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.A8, method according to A7, wherein, the described step write operation for the Cookie data of the first domain name under described second browser kernel being redirected to accordingly the write operation of the Cookie data to the first domain name under described profile path, comprise: be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under.A9, method according to A8, wherein, the described step read operation for the Cookie data of the first domain name under described second browser kernel being redirected to accordingly the read operation of the Cookie data to the first domain name under described profile path, comprise: receive the triggering command reading cookie information, utilization is kept at the mapping relations under profile path, and the cookie information that the webpage name lookup of the first domain name of the login of foundation under the second browser kernel is corresponding also reads.A10, method according to any one of A7 to A9, wherein, carried out the intercept process of the read/write operation of the Cookie data for the first domain name under above-mentioned interception second browser kernel by browser Frame host process.
Embodiments of the invention further disclose B11, a kind of browser client, comprising: interface assembly, and it is configured to described browser client and draws interactive interface, receive the information of input and/or output display and user interactions; Networking component, it is configured to pass interface assembly and triggers the network request of initiating; Browser kernel assembly, it is configured to process networking component and triggers the network request of initiating, and resolves that play up in rear formation web displaying window can the web data of loaded and displayed; Described browser kernel assembly comprises further: request initiate module, in the first browser client in the first browser kernel issues web-page requests; Obtain module, for getting web data corresponding to described web-page requests; Judge module, meet preset web page element attribute for the web page element in the web data that gets described in judging; Switch and load module, for being switched to the web data got described in the second browser kernel loading.B12, browser client according to B11, wherein, described switching load module also for, be switched to and again initiate web-page requests under the second browser kernel, and obtain corresponding web data and load.B13, browser client according to B11, wherein, described switching load module also for, obtain the attribute of the browser kernel recorded in the meta field of web data, the browser kernel using this attribute to indicate carries out web data loading.B14, browser client according to B11, wherein, described in meet preset web page element attribute and comprise: the particular webpage element in web data, wherein this particular webpage element comprises the label in the non-html language of agreement.B15, browser client according to B11, wherein, described switching load module also for, in the first browser client, preserve the list of the web page element of the predefined type pre-set, with corresponding with corresponding browser kernel; Be switched to the browser kernel of answering with web page element Attribute Relative according to described list and load the web data got.B16, browser client according to B11, wherein, described switching load module also for, use the second browser client to use its second browser kernel to carry out loading the web data got, wherein the cache location of the web data of download is sent to described second browser client or again initiate web-page requests to obtain web data.B17, browser client according to B11, wherein, described browser kernel assembly also comprises: switching command receives module, for receiving the switching command being switched to the second browser kernel from the first browser kernel; Cookie data read/write operation module, for the network response using the second browser kernel to initiate the network request of the webpage of the first domain name and/or the webpage of reception the first domain name; Tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.B18, browser client according to B17, wherein, described Cookie data read/write operation module also for, be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under.B19, browser client according to B18, wherein, described Cookie data read/write operation module also for, receive the triggering command reading cookie information, utilization is kept at the mapping relations under profile path, and the cookie information that the webpage name lookup of the first domain name of the login of foundation under the second browser kernel is corresponding also reads.
Embodiments of the invention further disclose C20, a kind of device carrying out webpage loading, comprise: processor, in this processor, load operating has request to initiate module, obtains module, judges module, switches loading module, wherein: request initiate module, in the first browser client in the first browser kernel issues web-page requests; Obtain module, for getting web data corresponding to described web-page requests; Judge module, meet preset web page element attribute for the web page element in the web data that gets described in judging; Switch and load module, for being switched to the web data got described in the second browser kernel loading.C21, device according to C20, wherein, described switching load module also for, be switched to and again initiate web-page requests under the second browser kernel, and obtain corresponding web data and load.C22, device according to C20, wherein, described switching load module also for, obtain the attribute of the browser kernel recorded in the meta field of web data, the browser kernel using this attribute to indicate carries out web data loading.C23, device according to C20, wherein, described in meet preset web page element attribute and comprise: the particular webpage element in web data, wherein this particular webpage element comprises the label in the non-html language of agreement.C24, device according to C20, wherein, described switching load module also for, in the first browser client, preserve the list of the web page element of the predefined type pre-set, with corresponding with corresponding browser kernel; Be switched to the browser kernel of answering with web page element Attribute Relative according to described list and load the web data got.C25, device according to C20, wherein, described switching load module also for, use the second browser client to use its second browser kernel to carry out loading the web data got, wherein the cache location of the web data of download is sent to described second browser client or again initiate web-page requests to obtain web data.C26, device according to C20, wherein, going back load operating in described processor has: switching command receives module, for receiving the switching command being switched to the second browser kernel from the first browser kernel; Cookie data read/write operation module, for the network response using the second browser kernel to initiate the network request of the webpage of the first domain name and/or the webpage of reception the first domain name; Tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.C27, device according to C26, wherein, described Cookie data read/write operation module also for, be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under.C28, device according to C27, wherein, described Cookie data read/write operation module also for, receive the triggering command reading cookie information, utilization is kept at the mapping relations under profile path, and the cookie information that the webpage name lookup of the first domain name of the login of foundation under the second browser kernel is corresponding also reads.

Claims (10)

1. carry out a method for webpage loading, comprising:
In the first browser client in the first browser kernel issues web-page requests;
Get the web data that described web-page requests is corresponding;
Web page element in the web data got described in judging meets preset web page element attribute;
Be switched to the web data got described in the second browser kernel loading.
2. method according to claim 1, wherein, is switched to the step of the web data got described in the second browser kernel loading, also comprises:
Be switched to and again initiate web-page requests under the second browser kernel, and the web data obtaining correspondence loads.
3. method according to claim 1, wherein, also comprises:
Obtain the attribute of the browser kernel recorded in the meta field of web data, the browser kernel using this attribute to indicate carries out web data loading.
4. method according to claim 1, wherein, described in meet preset web page element attribute and comprise: the particular webpage element in web data, wherein this particular webpage element comprises the label in the non-html language of agreement.
5. method according to claim 1, wherein, also comprises:
The list of the web page element of the predefined type pre-set is preserved, with corresponding with corresponding browser kernel in the first browser client.
6. method according to claim 1, wherein, described in be switched to the step that the second browser kernel loads the web data got, comprising:
Use the second browser client to use its second browser kernel to carry out loading the web data got, wherein the cache location of the web data of download is sent to described second browser client or again initiate web-page requests to obtain web data.
7. method according to claim 1, wherein, also comprises:
Receive the switching command being switched to the second browser kernel from the first browser kernel;
The second browser kernel is used to initiate the network response of the network request of the webpage of the first domain name and/or the webpage of reception the first domain name; Tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.
8. method according to claim 7, wherein, the described step write operation for the Cookie data of the first domain name under described second browser kernel being redirected to accordingly the write operation of the Cookie data to the first domain name under described profile path, comprising:
Be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under.
9. a browser client, comprising:
Interface assembly, it is configured to described browser client and draws interactive interface, receives the information of input and/or output display and user interactions;
Networking component, it is configured to pass interface assembly and triggers the network request of initiating;
Browser kernel assembly, it is configured to process networking component and triggers the network request of initiating, and resolves that play up in rear formation web displaying window can the web data of loaded and displayed;
Described browser kernel assembly comprises further:
Request initiate module, in the first browser client in the first browser kernel issues web-page requests;
Obtain module, for getting web data corresponding to described web-page requests;
Judge module, meet preset web page element attribute for the web page element in the web data that gets described in judging;
Switch and load module, for being switched to the web data got described in the second browser kernel loading.
10. carry out a device for webpage loading, comprising:
Processor, in this processor, load operating has request to initiate module, obtains module, judges module, switches loading module, wherein:
Request initiate module, in the first browser client in the first browser kernel issues web-page requests;
Obtain module, for getting web data corresponding to described web-page requests;
Judge module, meet preset web page element attribute for the web page element in the web data that gets described in judging;
Switch and load module, for being switched to the web data got described in the second browser kernel loading.
CN201410836208.7A 2014-12-26 2014-12-26 Webpage loading method and device and browser client-side Pending CN104462571A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410836208.7A CN104462571A (en) 2014-12-26 2014-12-26 Webpage loading method and device and browser client-side

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410836208.7A CN104462571A (en) 2014-12-26 2014-12-26 Webpage loading method and device and browser client-side

Publications (1)

Publication Number Publication Date
CN104462571A true CN104462571A (en) 2015-03-25

Family

ID=52908606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410836208.7A Pending CN104462571A (en) 2014-12-26 2014-12-26 Webpage loading method and device and browser client-side

Country Status (1)

Country Link
CN (1) CN104462571A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105243134A (en) * 2015-09-30 2016-01-13 北京奇虎科技有限公司 Method and equipment for processing hijacked browser
CN105354337A (en) * 2015-12-08 2016-02-24 北京奇虎科技有限公司 Web crawler implementation method and web crawler system
WO2017120876A1 (en) * 2016-01-15 2017-07-20 杨瑛 Method for collecting data when restarting webpage, and electronic device
WO2017133499A1 (en) * 2016-02-05 2017-08-10 腾讯科技(深圳)有限公司 Webpage access method and device
CN107508903A (en) * 2017-09-07 2017-12-22 维沃移动通信有限公司 The access method and terminal device of a kind of web page contents
CN108279970A (en) * 2017-12-28 2018-07-13 北京海泰方圆科技股份有限公司 The switching method and apparatus of browser kernel
CN109857473A (en) * 2017-11-29 2019-06-07 北京京东尚科信息技术有限公司 A kind of loading method and device of page data
CN109960531A (en) * 2017-12-26 2019-07-02 中国移动通信集团浙江有限公司 A kind of page display method and device
CN110413931A (en) * 2019-07-31 2019-11-05 北京奇艺世纪科技有限公司 Data load method, device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232371A (en) * 2007-01-24 2008-07-30 中兴通讯股份有限公司 Verification method of digital signature under stream media business level networking architecture
CN102624891A (en) * 2012-03-08 2012-08-01 腾讯科技(深圳)有限公司 Method for switching kernel of browser and corresponding browser
CN102682080A (en) * 2012-03-31 2012-09-19 奇智软件(北京)有限公司 Cookie information sharing method and system
CN103500194A (en) * 2013-09-17 2014-01-08 北京奇虎科技有限公司 Method, device and browser for loading webpage
CN103618807A (en) * 2013-11-08 2014-03-05 北京奇虎科技有限公司 Method and device for processing cookie information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232371A (en) * 2007-01-24 2008-07-30 中兴通讯股份有限公司 Verification method of digital signature under stream media business level networking architecture
CN102624891A (en) * 2012-03-08 2012-08-01 腾讯科技(深圳)有限公司 Method for switching kernel of browser and corresponding browser
CN102682080A (en) * 2012-03-31 2012-09-19 奇智软件(北京)有限公司 Cookie information sharing method and system
CN103500194A (en) * 2013-09-17 2014-01-08 北京奇虎科技有限公司 Method, device and browser for loading webpage
CN103618807A (en) * 2013-11-08 2014-03-05 北京奇虎科技有限公司 Method and device for processing cookie information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ENET硅谷动力: "双核切换无需重复下载!搜狗浏览器双核共享缓存", 《HTTP://WWW.ENET.COM.CN/ARTICLE/2012/1016/A20121016175699.SHTML》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105243134A (en) * 2015-09-30 2016-01-13 北京奇虎科技有限公司 Method and equipment for processing hijacked browser
CN105354337A (en) * 2015-12-08 2016-02-24 北京奇虎科技有限公司 Web crawler implementation method and web crawler system
WO2017120876A1 (en) * 2016-01-15 2017-07-20 杨瑛 Method for collecting data when restarting webpage, and electronic device
WO2017133499A1 (en) * 2016-02-05 2017-08-10 腾讯科技(深圳)有限公司 Webpage access method and device
CN107045501A (en) * 2016-02-05 2017-08-15 腾讯科技(深圳)有限公司 A kind of Web access method and device
US10733259B2 (en) 2016-02-05 2020-08-04 Tencent Technology (Shenzhen) Company Limited Web page access method and apparatus
CN107508903A (en) * 2017-09-07 2017-12-22 维沃移动通信有限公司 The access method and terminal device of a kind of web page contents
CN107508903B (en) * 2017-09-07 2020-06-16 维沃移动通信有限公司 Webpage content access method and terminal equipment
CN109857473A (en) * 2017-11-29 2019-06-07 北京京东尚科信息技术有限公司 A kind of loading method and device of page data
CN109960531A (en) * 2017-12-26 2019-07-02 中国移动通信集团浙江有限公司 A kind of page display method and device
CN108279970A (en) * 2017-12-28 2018-07-13 北京海泰方圆科技股份有限公司 The switching method and apparatus of browser kernel
CN110413931A (en) * 2019-07-31 2019-11-05 北京奇艺世纪科技有限公司 Data load method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104462571A (en) Webpage loading method and device and browser client-side
US10289659B2 (en) Delivery and display of page previews using shadow DOM
US20190222667A1 (en) Speculative prefetch of resources across page loads
US8499099B1 (en) Converting data into addresses
CN104850602B (en) A kind of rendering refreshing implementation method and device based on internet web page
US9009334B1 (en) Remote browsing session management
JP2019520624A (en) Page component dynamic layout
JP6328233B2 (en) Computer program product, system and method for optimizing web page loading
CN104468834A (en) Method and device for processing Cookie data and browser client side
CN109032797A (en) For providing the method and apparatus of web page access
US9088461B2 (en) Common web accessible data store for client side page processing
CN103118081B (en) Server, client, the system and method for browsing pages in prestrain browser
US10205678B2 (en) Systems and methods for client-side dynamic information resource activation and deactivation
US9703460B2 (en) Intelligent rendering of webpages
US9740791B1 (en) Browser as a service
CN105260424B (en) The processing method and processing device that user browses web-page histories record and most frequentation is asked
CN105354337A (en) Web crawler implementation method and web crawler system
CN106126693A (en) The sending method of the related data of a kind of webpage and device
US9058399B2 (en) System and method for providing network resource identifier shortening service to computing devices
JP7538948B2 (en) Image processing method and apparatus, and computer-readable storage medium
CN104469528A (en) Method and device for loading video data and browser client side
US20130036193A1 (en) System and method for generating dynamic image sprites
US11477158B2 (en) Method and apparatus for advertisement anti-blocking
CN105095220B (en) A kind of browser implementation method, terminal and virtualization agent device
US10579229B2 (en) Customizable media player framework

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150325

RJ01 Rejection of invention patent application after publication