CN104809122A - Method and device for visiting web pages - Google Patents

Method and device for visiting web pages Download PDF

Info

Publication number
CN104809122A
CN104809122A CN201410036511.9A CN201410036511A CN104809122A CN 104809122 A CN104809122 A CN 104809122A CN 201410036511 A CN201410036511 A CN 201410036511A CN 104809122 A CN104809122 A CN 104809122A
Authority
CN
China
Prior art keywords
source code
submodule
play
target web
playing
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.)
Granted
Application number
CN201410036511.9A
Other languages
Chinese (zh)
Other versions
CN104809122B (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.)
Shell Internet Beijing Security Technology Co Ltd
Original Assignee
Shell Internet Beijing Security Technology 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 Shell Internet Beijing Security Technology Co Ltd filed Critical Shell Internet Beijing Security Technology Co Ltd
Priority to CN201410036511.9A priority Critical patent/CN104809122B/en
Publication of CN104809122A publication Critical patent/CN104809122A/en
Application granted granted Critical
Publication of CN104809122B publication Critical patent/CN104809122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a method for visiting web pages and a device for visiting the web pages. The method comprises the following steps: receiving access request messages aiming at objective web pages by host processes, generating rendering request messages aiming at the objective web pages according to the access request messages, and transmitting the rendering request messages to rendering processes; generating download request messages aiming at the objective web pages by the rendering processes according to the rendering request messages, and transmitting the download request messages to network processes; downloading source codes corresponding to the objective web pages by the network processes according to the download request messages, and providing the downloaded source codes to the rendering processes; resolving source codes corresponding to the objective web pages by the rendering processes, rendering the web pages according to resolved results, and transmitting the rendered results to the main processes; showing the rendered results by the main processes. In the embodiment, the web pages are visited in a multiple-process manner, when some web page which is being visited makes an error and quits the network process or the rendering process, the main process cannot quit so that the whole browser collapses; according to the method and the device, the experience effect of an user is improved.

Description

A kind of method of accessed web page and device
Technical field
The present invention relates to the application processing technology field of mobile terminal, particularly a kind of method of accessed web page and device.
Background technology
In recent years along with the fast development of hardware technology, the hardware configuration of mobile terminal is more and more higher, such as, and configuration multi-core CPU (Central Processing Unit, central processing unit), the internal memory of more than 1G etc., mobile terminals of these high configurations are enough to the operation supporting multi-process application.
But in prior art, the browser being applied to mobile terminal is one process mostly.During by one process browser access webpage, web data download, parsing, displaying, audio and video playing etc. are all carried out in same process, like this once accessing webpage is made mistakes, whole browser can be caused to collapse and exit, affect Consumer's Experience.
Summary of the invention
The embodiment of the invention discloses a kind of method of accessed web page, when the browser access webpage passing through to be applied to mobile terminal is made mistakes, whole browser can not be caused to collapse and exit, improve Consumer's Experience effect to make user.
For achieving the above object, the embodiment of the invention discloses a kind of method of accessed web page, described method comprises:
Host process receives the accessing request information for target web, generate according to described accessing request information and play up solicited message for target web, and play up solicited message described in sending to process of playing up, wherein, described accessing request information and play up in solicited message, all carries the network address of described target web;
Described play up process according to described in play up solicited message and generate for the download request information of target web, and send described download request information to network process, wherein, in described download request, carry the network address of described target web;
Described network process, according to described download request information, downloads the source code that described target web is corresponding, and plays up process described in being supplied to by downloaded source code;
Described process of playing up resolves source code corresponding to described target web, and carries out webpage according to analysis result and play up, and rendering result is sent to described host process;
Described host process shows described rendering result.
Preferably, described to play up process send described in play up solicited message, comprising:
Judge whether play up process starts;
If yes, then solicited message is played up to described playing up described in process transmission;
If NO, then play up process described in starting, and play up solicited message to described playing up described in process transmission.
Preferably, describedly send described download request information to network process, comprising:
Judge whether network process starts;
If yes, then described download request information is sent to described network process;
If NO, then send network process to described host process and start solicited message, and receiving network process that described host process sends after initiate notification message, send described download request information to described network process.
Preferably, described downloaded source code is supplied to described in play up process, comprising:
Source code corresponding for described target web is stored in default shared region, and download complete notification message to described process transmission source code of playing up, wherein, described source code is downloaded in complete notification message, carries the mark of source code corresponding to described target web;
Described process of playing up resolves source code corresponding to described target web, comprising:
Describedly play up the mark of process according to source code corresponding to the target web carried in the complete notification message of described download, determine at the shared region preset the source code that described target web is corresponding, this source code is resolved.
Preferably, describedly carry out webpage according to analysis result and play up, comprising:
Determine the resources to be downloaded comprised in the analysis result of the source code that described target web is corresponding, send to described network process and download resources to be downloaded solicited message, receive the source code of the resources to be downloaded that described network process sends, resolve the source code of described resources to be downloaded, carry out webpage according to the analysis result of the corresponding analysis result of source code of described target web and the source code of described resources to be downloaded and play up.
For achieving the above object, the embodiment of the invention discloses a kind of device of accessed web page, described device comprises:
Host process module, play up scheduler module and network process module;
Wherein, described host process module, comprising: request of access receives submodule, the request of playing up generates submodule, the request of playing up sends submodule and rendering result shows submodule;
Describedly play up scheduler module, comprising: download request generates submodule, download request sends submodule, source code analyzing sub-module, webpage play up submodule and rendering result sends submodule;
Described network process module, comprising: source code downloads submodule and source code provides submodule;
Described request of access receives submodule, for receiving the accessing request information for target web, in described accessing request information, carries the network address of described target web;
The described request of playing up generates submodule, plays up solicited message for generating according to described accessing request information for target web, described in play up in solicited message, carry the network address of described target web;
The described request of playing up sends submodule, described in sending to process of playing up, play up solicited message;
Described download request generates submodule, for playing up solicited message generation described in basis for the download request information of target web, in described download request information, carries the network address of described target web;
Described download request sends submodule, for sending download request information to network process;
Described source code downloads submodule, for according to described download request information, downloads the source code that described target web is corresponding;
Described source code provides submodule, plays up process described in the source code downloaded is supplied to for described source code being downloaded submodule;
Described source code analyzing sub-module, for resolving source code corresponding to described target web;
Described webpage plays up submodule, plays up for carrying out webpage according to the analysis result of described source code analyzing sub-module;
Described rendering result sends submodule, for rendering result is sent to described host process;
Described rendering result shows submodule, for showing described rendering result.
Preferably, described host process module, also comprises: the process of playing up judges submodule and plays up process initiation submodule;
Described process of playing up judges submodule, play up process whether start for judging, if judge described in play up process and start, then described in triggering, the request of playing up sends submodule, if judge described in play up process and do not start, then play up process initiation submodule described in triggering;
Describedly play up process initiation submodule, described in starting, play up process, and described in triggering, the request of playing up sends submodule.
Preferably, described in play up process, also comprise: network process judges submodule, start request sends submodule and notification message and receive submodule;
Described network process judges submodule, for judging whether network process starts, if judge described network process starts, then trigger described download request and send submodule, if judge described network process does not start, then trigger described startup request and send submodule;
Described startup request sends submodule, starts solicited message for sending network process to described host process;
Described notification message receives submodule, for receiving the network process initiate notification message that described host process sends, and triggers described download request transmission submodule.
Preferably, described source code provides submodule, comprising: source code sub module stored and the complete notification message of download send submodule;
Described source code sub module stored, for being stored in default shared region by source code corresponding for described target web;
The complete notification message submodule of described download, for downloading complete notification message to described process transmission source code of playing up, wherein, described source code is downloaded in complete notification message, carries the mark of source code corresponding to described target web;
Described source code analyzing sub-module, specifically for the mark according to source code corresponding to the target web carried in the complete notification message of described download, determines at the shared region preset the source code that described target web is corresponding, resolves this source code.
Preferably, described webpage plays up submodule, specifically for determining the resources to be downloaded comprised in the analysis result of the source code that described target web is corresponding, send to described network process and download resources to be downloaded solicited message, receive the source code of the resources to be downloaded that described network process sends, resolve the source code of described resources to be downloaded, carry out webpage according to the analysis result of the corresponding analysis result of source code of described target web and the source code of described resources to be downloaded and play up.
As seen from the above, in this programme, network process is mainly used in downloading the source code data of target web, and play up the source code data of process to target web and resolve and carry out webpage according to analysis result and play up, rendering result is shown by host process.Compared with the mode of one process accessed web page in prior art, owing to adopting the mode of multi-process accessed web page in this programme, when a certain webpage of accessing is made mistakes, the process that exits network or when playing up process, host process can not be exited, and then whole browser can not be caused to collapse, improve the experience effect of user.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The signaling process schematic diagram of the method for a kind of accessed web page that Fig. 1 provides for the embodiment of the present invention;
A kind of schematic flow sheet carrying out the method that webpage is played up according to analysis result that Fig. 2 provides for the embodiment of the present invention;
The structural representation of the device of a kind of accessed web page that Fig. 3 provides for the embodiment of the present invention.
Embodiment
In practical application, during by multi-process mode accessed web page, except there is above-mentioned accessed web page process in a certain webpage make mistakes time, can not cause outside the advantage of whole application crashes, multi-process mode also can realize multi-task parallel process, makes full use of the resource of multi-core CPU.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The schematic flow sheet of the method for a kind of accessed web page that Fig. 1 provides for the embodiment of the present invention, the method comprises:
S101: host process receives the accessing request information for target web.
In practical application, browser or other there is the application start of browser function after namely start host process, the corresponding host process of application after each startup, this host process has the function of other processes of management, such as: process is played up in startup and process is played up in network process, detection or whether network process starts, when playing up process or network process extremely exits, restart the process of playing up or network process etc. function.
The accessing request information for target web that host process receives, can obtain in the following manner:
User has the network address of the address field input target web of the application of browser function at browser or other, thus host process receives the accessing request information for target web;
User has a certain link information in the page of the application of browser function by click browser or other, thus host process receives the accessing request information for target web;
In the process of a certain webpage of access, automatically trigger and send accessing request information etc. for target web to host process.
Wherein, in the accessing request information of target web, at least need the network address of carrying target web, certainly, in this accessing request information, other parameter informations can also be carried, such as: page display parameters etc.
S102: host process generates according to accessing request information and plays up solicited message for target web.
When after the accessing request information that host process receives for target web, host process need be resolved this accessing request information, generates play up solicited message for target web according to analysis result.Wherein, play up in solicited message for target web, at least need the network address of carrying target web, certainly, this is played up in solicited message can also carry rendering parameter information etc.
S103: host process sends to process of playing up and plays up solicited message.
Concrete, host process to process of playing up send play up solicited message time, can comprise:
Judge whether play up process starts;
If yes, then solicited message is played up to playing up process transmission;
If NO, then start and play up process, and play up solicited message to playing up process transmission.
In actual application, when host process is in idle condition, the accessing request information for other target webs can be received, and generation plays up solicited message accordingly.Multiplely play up process because host process can start simultaneously again, in conjunction with above-mentioned explanation from the angle of CPU can parallel processing to the access of multiple webpage, the utilization factor of multi-core CPU can be improved like this.
Such as: after host process receives the accessing request information for target web A, generate and play up solicited message for target web A, and send to and play up process X; Now host process enters idle condition by busy condition, the accessing request information for target web B can be received, generate and play up solicited message for target web B, if now play up process X not terminate playing up target web A, still be in busy condition, then host process can start and plays up process Y, and sends and play up solicited message to playing up process Y for target web B.
S104: process of playing up is according to playing up the download request information of solicited message generation for target web.
After the process of playing up receives and plays up solicited message, resolve this and play up solicited message, and generate the download request information for target web according to analysis result, wherein, in download request information, at least need the network address of carrying target web, certainly, in this download request information, also can carry download parameters information etc.
S105: process of playing up sends download request information to network process.
Process of playing up, after generation download request information, sends download request information to network process, specifically can comprise:
Judge whether network process starts;
If yes, then download request information is sent to network process;
If NO, then send network process to host process and start solicited message, and receiving network process that host process sends after initiate notification message, send download request information to network process.
Wherein, judging whether network process has started can by relevant API(ApplicationProgramming Interface, application programming interface) function judges.
In another specific embodiment of the present invention, if the process of playing up judges network process does not start, also can by playing up process initiation network process, network process starts successfully, send network process directly to process of playing up and start success notification message, after the process of playing up receives this notification message, send download request information to network process.
In practical application, when being carried out information by network process and downloading, each download request need share the resources such as cookie, and therefore, each browser or other host processes with the application of browser function start a network process with correspondence only.
Multiplely process is played up again because host process can start simultaneously, therefore, host process start a certain play up process time, network process may start, and in this case, host process is when starting this and playing up process, can notify that this is played up process network process and starts, after this plays up process generation download request information like this, without the need to judging whether network process starts again, download request information can be sent to network process.
S106: network process, according to download request information, downloads the source code that target web is corresponding.
Because browser or other host processes with the application of browser function correspondingly can only start a network process, and multiple process of playing up can be started simultaneously, the plurality of process of playing up all can send download request information to network process, after network process receives multiple download request information, can it be stored in a task list according to the time sequencing received, then according to asynchronous mode, resolve download request information one by one, and be linked to respective server according to analysis result and download.
S107: downloaded source code is supplied to the process of playing up by network process.
In one particular embodiment of the present invention, after network process downloads source code corresponding to complete target web, downloaded source code is supplied to when playing up process, first source code corresponding for target web can be stored in default shared region, again by downloading complete notification message to playing up process transmission source code, downloaded source code is supplied to the process of playing up, wherein, source code is downloaded in complete notification message, need carry the mark of source code corresponding to target web.
S108: process of playing up resolves source code corresponding to target web, and carry out webpage according to analysis result and play up.
In one particular embodiment of the present invention, when network process is by the mode playing up process transmission source code and download complete notification message, downloaded source code is supplied to when playing up process, the process of playing up can be corresponding according to the target web carried in the complete notification message of this download the mark of source code, at the source code that the shared region determination target web preset is corresponding, this source code is resolved.
S109: rendering result is sent to host process by process of playing up.
S110: host process shows rendering result.
As seen from the above, in this programme, network process is mainly used in downloading the source code data of target web, and play up the source code data of process to target web and resolve and carry out webpage according to analysis result and play up, rendering result is shown by host process.Compared with the mode of one process accessed web page in prior art, owing to adopting the mode of multi-process accessed web page in this programme, when a certain webpage of accessing is made mistakes, the process that exits network or when playing up process, host process can not be exited, and then whole browser can not be caused to collapse, improve the experience effect of user.
In the source code that the target web downloaded due to network process is corresponding, uniform resource position mark URL information and non-URL information can be comprised, therefore, after the process of playing up resolves this source code, need to the accessing request information of network process transmission for the URL information in this source code, after the resource that all URL information are corresponding is entirely downloaded and is parsed, the process of playing up can obtain the final rendering result of the webpage of target.
For above-mentioned situation, in a specific embodiment of the present invention, provide and carry out according to analysis result a kind of specific implementation that webpage plays up in S108 embodiment illustrated in fig. 1, a kind of schematic flow sheet carrying out the method that webpage is played up according to analysis result that Fig. 2 provides for the embodiment of the present invention, the method comprises:
S108A: determine the resources to be downloaded comprised in the analysis result of the source code that described target web is corresponding.
S108B: send to described network process and download resources to be downloaded solicited message.
After process of playing up sends download resources to be downloaded solicited message to network process, process of playing up enters idle condition by busy condition, the source code of target web has been resolved again owing to playing up process, therefore, process of now playing up, while wait network process downloads resources to be downloaded corresponding data, can start to play up target web.
S108C: the source code receiving the resources to be downloaded that described network process sends.
S108D: the source code of resolving described resources to be downloaded.
S108E: carry out webpage according to the analysis result of the corresponding analysis result of source code of described target web and the source code of described resources to be downloaded and play up.
In practical application, can after the source code of all resources to be downloaded be all parsed, carry out webpage according to the analysis result of the corresponding analysis result of source code of target web and the source code of resources to be downloaded and play up; Consider efficiency, also can when network process downloads source code corresponding to resources to be downloaded, utilize the process of playing up being in idle condition first to carry out part webpage to play up, after the source code of all resources to be downloaded has all been downloaded, the more remaining webpage do not played up is played up.
As seen from the above, in this programme, realize webpage by multi-process mode and play up, accelerate the speed that in accessed web page process, webpage is played up.
Relative to above-mentioned embodiment of the method, present invention also offers a kind of device of accessed web page, the structural representation of the device of a kind of accessed web page that Fig. 3 provides for the embodiment of the present invention, this device comprises: host process module 301, play up scheduler module 302 and network process module 303.
Wherein, described host process module 301 can comprise: request of access receives submodule 3011, the request of playing up generates submodule 3012, the request of playing up sends submodule 3013 and rendering result shows submodule 3014.
Described scheduler module 302 of playing up can comprise: download request generates submodule 3021, download request sends submodule 3022, source code analyzing sub-module 3023, webpage play up submodule 3024 and rendering result sends submodule 3025.
Described network process module 303 can comprise: source code downloads submodule 3031 and source code provides submodule 3032.
In the present embodiment, request of access receives submodule 3011, for receiving the accessing request information for target web, in described accessing request information, carries the network address of described target web;
The request of playing up generates submodule 3012, plays up solicited message for generating according to described accessing request information for target web, described in play up in solicited message, carry the network address of described target web;
The request of playing up sends submodule 3013, described in sending to process of playing up, play up solicited message;
Download request generates submodule 3021, for playing up solicited message generation described in basis for the download request information of target web, in described download request information, carries the network address of described target web;
Download request sends submodule 3022, for sending download request information to network process;
Source code downloads submodule 3031, for according to described download request information, downloads the source code that described target web is corresponding;
Source code provides submodule 3032, plays up process described in the source code downloaded is supplied to for described source code being downloaded submodule;
Source code analyzing sub-module 3023, for resolving source code corresponding to described target web;
Webpage plays up submodule 3024, plays up for carrying out webpage according to the analysis result of described source code analyzing sub-module;
Rendering result sends submodule 3025, for rendering result is sent to described host process;
Rendering result shows submodule 3014, for showing described rendering result.
In one particular embodiment of the present invention, described host process module 301, can also comprise: the process of playing up judges submodule and plays up process initiation submodule (not shown).
Wherein, play up process described in and judge submodule, for judging whether play up process starts, if judge described in play up process and start, described in then triggering, the request of playing up sends submodule 3013, if judge described in play up process and do not start, then play up process initiation submodule described in triggering; Describedly play up process initiation submodule, described in starting, play up process, and described in triggering, the request of playing up sends submodule 3013.
In another specific embodiment of the present invention, described in play up process 302, can also comprise: network process judges submodule, start request sends submodule and notification message and receive submodule (not shown).
Wherein, described network process judges submodule, for judging whether network process starts, if judge described network process starts, then trigger described download request and send submodule 3022, if judge described network process does not start, then trigger described startup request and send submodule; Described startup request sends submodule, starts solicited message for sending network process to described host process; Described notification message receives submodule, for receiving the network process initiate notification message that described host process sends, and triggers described download request transmission submodule 3022.
In the present embodiment, described source code provides submodule 3032, can comprise: source code sub module stored and the complete notification message of download send submodule (not shown).
Wherein, described source code sub module stored, for being stored in default shared region by source code corresponding for described target web; The complete notification message submodule of described download, for downloading complete notification message to described process transmission source code of playing up, wherein, described source code is downloaded in complete notification message, carries the mark of source code corresponding to described target web; Described source code analyzing sub-module, specifically for the mark according to source code corresponding to the target web carried in the complete notification message of described download, determines at the shared region preset the source code that described target web is corresponding, resolves this source code.
In the present embodiment, described webpage plays up submodule 3024, specifically for determining the resources to be downloaded comprised in the analysis result of the source code that described target web is corresponding, send to described network process and download resources to be downloaded solicited message, receive the source code of the resources to be downloaded that described network process sends, resolve the source code of described resources to be downloaded, carry out webpage according to the analysis result of the corresponding analysis result of source code of described target web and the source code of described resources to be downloaded and play up.
As seen from the above, in this programme, network process is mainly used in downloading the source code data of target web, and play up the source code data of process to target web and resolve and carry out webpage according to analysis result and play up, rendering result is shown by host process.Compared with the mode of one process accessed web page in prior art, owing to adopting the mode of multi-process accessed web page in this programme, when a certain webpage of accessing is made mistakes, the process that exits network or when playing up process, host process can not be exited, and then whole browser can not be caused to collapse, improve the experience effect of user.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
One of ordinary skill in the art will appreciate that all or part of step realized in said method embodiment is that the hardware that can carry out instruction relevant by program has come, described program can be stored in computer read/write memory medium, here the alleged storage medium obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. a method for accessed web page, is characterized in that, described method comprises:
Host process receives the accessing request information for target web, generate according to described accessing request information and play up solicited message for target web, and play up solicited message described in sending to process of playing up, wherein, described accessing request information and play up in solicited message, all carries the network address of described target web;
Described play up process according to described in play up solicited message and generate for the download request information of target web, and send described download request information to network process, wherein, in described download request, carry the network address of described target web;
Described network process, according to described download request information, downloads the source code that described target web is corresponding, and plays up process described in being supplied to by downloaded source code;
Described process of playing up resolves source code corresponding to described target web, and carries out webpage according to analysis result and play up, and rendering result is sent to described host process;
Described host process shows described rendering result.
2. method according to claim 1, is characterized in that, described to play up process send described in play up solicited message, comprising:
Judge whether play up process starts;
If yes, then solicited message is played up to described playing up described in process transmission;
If NO, then play up process described in starting, and play up solicited message to described playing up described in process transmission.
3. method according to claim 1, is characterized in that, describedly sends described download request information to network process, comprising:
Judge whether network process starts;
If yes, then described download request information is sent to described network process;
If NO, then send network process to described host process and start solicited message, and receiving network process that described host process sends after initiate notification message, send described download request information to described network process.
4. the method according to any one of claims 1 to 3, is characterized in that,
Described downloaded source code is supplied to described in play up process, comprising:
Source code corresponding for described target web is stored in default shared region, and download complete notification message to described process transmission source code of playing up, wherein, described source code is downloaded in complete notification message, carries the mark of source code corresponding to described target web;
Described process of playing up resolves source code corresponding to described target web, comprising:
Describedly play up the mark of process according to source code corresponding to the target web carried in the complete notification message of described download, determine at the shared region preset the source code that described target web is corresponding, this source code is resolved.
5. the method according to any one of claims 1 to 3, is characterized in that, describedly carries out webpage according to analysis result and plays up, and comprising:
Determine the resources to be downloaded comprised in the analysis result of the source code that described target web is corresponding, send to described network process and download resources to be downloaded solicited message, receive the source code of the resources to be downloaded that described network process sends, resolve the source code of described resources to be downloaded, carry out webpage according to the analysis result of the corresponding analysis result of source code of described target web and the source code of described resources to be downloaded and play up.
6. a device for accessed web page, is characterized in that, described device comprises:
Host process module, play up scheduler module and network process module;
Wherein, described host process module, comprising: request of access receives submodule, the request of playing up generates submodule, the request of playing up sends submodule and rendering result shows submodule;
Describedly play up scheduler module, comprising: download request generates submodule, download request sends submodule, source code analyzing sub-module, webpage play up submodule and rendering result sends submodule;
Described network process module, comprising: source code downloads submodule and source code provides submodule;
Described request of access receives submodule, for receiving the accessing request information for target web, in described accessing request information, carries the network address of described target web;
The described request of playing up generates submodule, plays up solicited message for generating according to described accessing request information for target web, described in play up in solicited message, carry the network address of described target web;
The described request of playing up sends submodule, described in sending to process of playing up, play up solicited message;
Described download request generates submodule, for playing up solicited message generation described in basis for the download request information of target web, in described download request information, carries the network address of described target web;
Described download request sends submodule, for sending download request information to network process;
Described source code downloads submodule, for according to described download request information, downloads the source code that described target web is corresponding;
Described source code provides submodule, plays up process described in the source code downloaded is supplied to for described source code being downloaded submodule;
Described source code analyzing sub-module, for resolving source code corresponding to described target web;
Described webpage plays up submodule, plays up for carrying out webpage according to the analysis result of described source code analyzing sub-module;
Described rendering result sends submodule, for rendering result is sent to described host process;
Described rendering result shows submodule, for showing described rendering result.
7. device according to claim 6, is characterized in that, described host process module, also comprises: the process of playing up judges submodule and plays up process initiation submodule;
Described process of playing up judges submodule, play up process whether start for judging, if judge described in play up process and start, then described in triggering, the request of playing up sends submodule, if judge described in play up process and do not start, then play up process initiation submodule described in triggering;
Describedly play up process initiation submodule, described in starting, play up process, and described in triggering, the request of playing up sends submodule.
8. device according to claim 6, is characterized in that, described in play up process, also comprise: network process judges submodule, start request sends submodule and notification message and receive submodule;
Described network process judges submodule, for judging whether network process starts, if judge described network process starts, then trigger described download request and send submodule, if judge described network process does not start, then trigger described startup request and send submodule;
Described startup request sends submodule, starts solicited message for sending network process to described host process;
Described notification message receives submodule, for receiving the network process initiate notification message that described host process sends, and triggers described download request transmission submodule.
9. the device according to any one of claim 6 ~ 8, is characterized in that,
Described source code provides submodule, comprising: source code sub module stored and the complete notification message of download send submodule;
Described source code sub module stored, for being stored in default shared region by source code corresponding for described target web;
The complete notification message submodule of described download, for downloading complete notification message to described process transmission source code of playing up, wherein, described source code is downloaded in complete notification message, carries the mark of source code corresponding to described target web;
Described source code analyzing sub-module, specifically for the mark according to source code corresponding to the target web carried in the complete notification message of described download, determines at the shared region preset the source code that described target web is corresponding, resolves this source code.
10. the device according to any one of claim 6 ~ 8, it is characterized in that, described webpage plays up submodule, specifically for determining the resources to be downloaded comprised in the analysis result of the source code that described target web is corresponding, send to described network process and download resources to be downloaded solicited message, receive the source code of the resources to be downloaded that described network process sends, resolve the source code of described resources to be downloaded, carry out webpage according to the analysis result of the corresponding analysis result of source code of described target web and the source code of described resources to be downloaded and play up.
CN201410036511.9A 2014-01-24 2014-01-24 A kind of method and device accessing webpage Active CN104809122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410036511.9A CN104809122B (en) 2014-01-24 2014-01-24 A kind of method and device accessing webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410036511.9A CN104809122B (en) 2014-01-24 2014-01-24 A kind of method and device accessing webpage

Publications (2)

Publication Number Publication Date
CN104809122A true CN104809122A (en) 2015-07-29
CN104809122B CN104809122B (en) 2019-03-26

Family

ID=53693950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410036511.9A Active CN104809122B (en) 2014-01-24 2014-01-24 A kind of method and device accessing webpage

Country Status (1)

Country Link
CN (1) CN104809122B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106383752A (en) * 2016-08-24 2017-02-08 乐视控股(北京)有限公司 Browser page abnormity recovery processing method and device
CN110532491A (en) * 2019-08-19 2019-12-03 无线生活(杭州)信息科技有限公司 Front end page construction method and device
CN110737491A (en) * 2018-07-20 2020-01-31 北京字节跳动网络技术有限公司 Notification display method, device, equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030061248A1 (en) * 2001-04-27 2003-03-27 International Business Machines Corporation Enhancing the reading of long pages in web browsers
WO2009139845A1 (en) * 2008-05-13 2009-11-19 Google Inc. Multi-process browser architecture
CN102368248A (en) * 2011-09-26 2012-03-07 奇智软件(北京)有限公司 Page downloading control method and system of IE kernel browser
CN102681850A (en) * 2012-05-07 2012-09-19 奇智软件(北京)有限公司 Method and device for realizing web browsing based on Webkit kernel
CN102830972A (en) * 2012-08-14 2012-12-19 管重 Multi-webpage browsing device of internet browser

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030061248A1 (en) * 2001-04-27 2003-03-27 International Business Machines Corporation Enhancing the reading of long pages in web browsers
WO2009139845A1 (en) * 2008-05-13 2009-11-19 Google Inc. Multi-process browser architecture
CN102368248A (en) * 2011-09-26 2012-03-07 奇智软件(北京)有限公司 Page downloading control method and system of IE kernel browser
CN102681850A (en) * 2012-05-07 2012-09-19 奇智软件(北京)有限公司 Method and device for realizing web browsing based on Webkit kernel
CN102830972A (en) * 2012-08-14 2012-12-19 管重 Multi-webpage browsing device of internet browser

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106383752A (en) * 2016-08-24 2017-02-08 乐视控股(北京)有限公司 Browser page abnormity recovery processing method and device
CN110737491A (en) * 2018-07-20 2020-01-31 北京字节跳动网络技术有限公司 Notification display method, device, equipment and computer readable storage medium
CN110737491B (en) * 2018-07-20 2024-04-05 北京字节跳动网络技术有限公司 Notification display method, device, equipment and computer readable storage medium
CN110532491A (en) * 2019-08-19 2019-12-03 无线生活(杭州)信息科技有限公司 Front end page construction method and device
CN110532491B (en) * 2019-08-19 2022-05-06 无线生活(杭州)信息科技有限公司 Front-end page construction method and device

Also Published As

Publication number Publication date
CN104809122B (en) 2019-03-26

Similar Documents

Publication Publication Date Title
US10050822B2 (en) Method and system for sharing application, and application service platform
CN110333947B (en) Method, device, equipment and medium for loading subcontracting resources of game application
US9183072B1 (en) Error troubleshooting using a correlated knowledge base
CN109165050B (en) Program running method and device, computing equipment and storage medium
CN108228444B (en) Test method and device
CN101610226A (en) A kind of method and system of plug-in download
US10404568B2 (en) Agent manager for distributed transaction monitoring system
CN103777967A (en) Page returning method and page generating method and device
CN107276842B (en) Interface test method and device and electronic equipment
WO2014015732A1 (en) Method and system for generating terminal capability description information
US8972968B1 (en) Alternate service for applications
CN108900627B (en) Network request method, terminal device and storage medium
CN115004673A (en) Message pushing method and device, electronic equipment and computer readable medium
CN104811485A (en) Resource sharing method
CN108933947B (en) Bullet screen display method and device
CN105872767A (en) Method and apparatus for guiding sharing based on user behaviors
CN104809122A (en) Method and device for visiting web pages
CN112565824B (en) Method, device, terminal and storage medium for generating bullet screen
CN111346386B (en) Message processing method and device
CN111698281B (en) Resource downloading method and device, electronic equipment and storage medium
CN108460042B (en) Page display method, related equipment and system
CN104735482A (en) Video pushing implementation method, system and device
CN112187622A (en) Instant message display method and device and server
CN105279140B (en) Text display method, server, terminal and system
CN108289056B (en) Method and device for sharing dynamic chart and computing equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100041 A-0071 2, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Beijing cheetah Mobile Technology Co., Ltd.

Address before: 100041 1100A 3, 3 West Road, Badachu high tech park, Shijingshan District, Beijing.

Applicant before: SHELL INTERNET (BEIJING) SECURITY TECHNOLOGY CO., LTD.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant