CN105446708A - Method and device for processing tab of browser and terminal - Google Patents
Method and device for processing tab of browser and terminal Download PDFInfo
- Publication number
- CN105446708A CN105446708A CN201410343251.XA CN201410343251A CN105446708A CN 105446708 A CN105446708 A CN 105446708A CN 201410343251 A CN201410343251 A CN 201410343251A CN 105446708 A CN105446708 A CN 105446708A
- Authority
- CN
- China
- Prior art keywords
- shipping options
- options page
- specified
- task
- running status
- 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
Links
Landscapes
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a tab processing method for a browser, which comprises the following steps: receiving a task execution instruction; acquiring running states of a label page specified by the task execution instruction, wherein the running states comprise a cut-in state in foreground running and a cut-out state in background running; if the running state of the specified tab page is the cut-out state, suspending the execution of the operation specified by the task execution instruction; and if the running state of the specified label page is the cut-in state, executing the operation specified by the task execution instruction. The embodiment of the invention also discloses a tab processing device and a terminal for the browser. By adopting the embodiment of the invention, the CPU overhead is saved by reducing the execution frequency of the tab page in the cut-out state, so that the occupancy rate of the CPU is reduced, the tab page in the cut-in state can run more smoothly, and the tab page browsing efficiency is improved.
Description
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of Shipping Options Page disposal route for browser, device and terminal.
Background technology
Conveniently user browses webpage more easily, and at present, browser is mostly many Shipping Options Pages (tab) structure, and user can open multiple Shipping Options Page in browser window, the corresponding webpage of each Shipping Options Page.The webpage only having Shipping Options Page corresponding in browser window is in foreground, and the webpage being in the Shipping Options Page on foreground corresponding is user's visible state, and the webpage that other Shipping Options Pages are corresponding is all in backstage, and the web page user being in the Shipping Options Page on backstage corresponding is invisible.
Along with the development of Web technology, the content that current webpage is supported is more and more abundanter, and such as: Flash plug-in unit, this plug-in unit can increase the multimedia function of browser, and the webpage making Shipping Options Page corresponding is browsing playing flash content in window.Such as, but browse in the process of webpage at the multiple Web Shipping Options Page of unlatching, each webpage needs to take a large amount of cpu resource and processes: user's input, page layout, logical calculated etc.When CPU usage is too high, is in when webpage corresponding to the Shipping Options Page on foreground carries out page rendering and will occurs Caton phenomenon, cause webpage browsing efficiency low.
Summary of the invention
Embodiments provide a kind of Shipping Options Page disposal route for browser, device and terminal, the occupancy of CPU can be reduced, the page is run more smooth, improve webpage browsing efficiency.
The embodiment of the present invention provides a kind of Shipping Options Page disposal route for browser, comprising:
Receive task-performance instructions;
Obtain the running status of Shipping Options Page specified by described task-performance instructions, what described running status comprised the incision state that is in front stage operation and was in running background cuts out state;
If the running status of described specified Shipping Options Page for described in cut out state, the operation described in temporary respite specified by task-performance instructions;
If the running status of described specified Shipping Options Page is described incision state, perform the operation specified by described task-performance instructions.
Wherein, if the running status of described specified Shipping Options Page for described in cut out state, the operation described in temporary respite specified by task-performance instructions, comprising:
If the running status of described specified Shipping Options Page for described in cut out state, determine that whether running status is the Shipping Options Page loaded of described incision state;
If described running status is the non-loaded of Shipping Options Page of described incision state, the operation described in temporary respite specified by task-performance instructions.
Wherein, described method also comprises:
If the running status of described specified Shipping Options Page for described in cut out state, and described running status is the Shipping Options Page loaded of described incision state, performs the operation specified by described task-performance instructions.
Wherein, the operation described in described temporary respite specified by task-performance instructions, comprising:
Arrange timer to the goal task specified by described task-performance instructions, the timing length of described timer is preset duration;
When described timer arrives described preset duration, perform the operation specified by described task-performance instructions.
Wherein, described method also comprises:
To each Shipping Options Page, a state flag bit is set;
If the running status of Shipping Options Page is described incision state, described state flag bit is set to the first preset value; If the running status of Shipping Options Page for described in cut out state, described state flag bit is set to the second preset value;
Specified by the described task-performance instructions of described acquisition, the running status of Shipping Options Page comprises:
Specified by described task-performance instructions, the state flag bit of Shipping Options Page, obtains the running status of Shipping Options Page specified by described task-performance instructions.
Wherein, before the running status of Shipping Options Page specified by the described task-performance instructions of described acquisition, described method also comprises:
When Shipping Options Page switching command being detected, the state flag bit of the Shipping Options Page of incision is updated to described first preset value, the state flag bit of the Shipping Options Page cut out is updated to described second preset value.
Correspondingly, present invention also offers a kind of Shipping Options Page treating apparatus for browser, it is characterized in that, comprising:
Receiver module, for receiving task-performance instructions;
Acquisition module, for obtaining the running status of Shipping Options Page specified by described task-performance instructions, what described running status comprised the incision state that is in front stage operation and was in running background cuts out state;
First execution module, if for described specified Shipping Options Page running status for described in cut out state, the operation described in temporary respite specified by task-performance instructions;
Second execution module, if be described incision state for the running status of described specified Shipping Options Page, performs the operation specified by described task-performance instructions.
Wherein, described first execution module specifically for:
If the running status of described specified Shipping Options Page for described in cut out state, determine that whether running status is the Shipping Options Page loaded of described incision state;
If described running status is the non-loaded of Shipping Options Page of described incision state, the operation described in temporary respite specified by task-performance instructions.
Wherein, described second execution module also for:
If the running status of described specified Shipping Options Page for described in cut out state, and described running status is the Shipping Options Page loaded of described incision state, performs the operation specified by described task-performance instructions.
Wherein, described first execution module specifically for:
Arrange timer to the goal task specified by described task-performance instructions, the timing length of described timer is preset duration;
When described timer arrives described preset duration, perform the operation specified by described task-performance instructions.
Wherein, described device also comprises and arranges module, described arrange module for:
To each Shipping Options Page, a state flag bit is set;
If the running status of Shipping Options Page is described incision state, described state flag bit is set to the first preset value; If the running status of Shipping Options Page for described in cut out state, described state flag bit is set to the second preset value;
Described acquisition module specifically for:
Specified by described task-performance instructions, the state flag bit of Shipping Options Page, obtains the running status of Shipping Options Page specified by described task-performance instructions.
Wherein, described device also comprises:
Update module, during for Shipping Options Page switching command being detected, is updated to described first preset value by the state flag bit of the Shipping Options Page of incision, the state flag bit of the Shipping Options Page cut out is updated to described second preset value.
Accordingly, the embodiment of the present invention additionally provides a kind of terminal, comprises device as above.
Implement the embodiment of the present invention, when receiving task-performance instructions, obtain the running status of Shipping Options Page specified by described task-performance instructions, if described running status is incision state, perform the operation specified by described task-performance instructions; If described running status is for cutting out state, the operation described in temporary respite specified by task-performance instructions.Adopt the embodiment of the present invention, Shipping Options Page be in cut out state time, operation specified by temporary respite task-performance instructions, thus CPU overhead can be saved by reducing the tasks carrying frequency being in the Shipping Options Page of the state of cutting out, reduce CPU usage, make the page being in incision state run more smooth, improve webpage browsing efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is 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.
Fig. 1 is the schematic flow sheet of a kind of Shipping Options Page disposal route for browser that the embodiment of the present invention provides;
Fig. 2 is another schematic flow sheet of a kind of Shipping Options Page disposal route for browser that the embodiment of the present invention provides;
Fig. 3 is the another schematic flow sheet of a kind of Shipping Options Page disposal route for browser that the embodiment of the present invention provides;
Fig. 4 is the interface schematic diagram of wherein a kind of using state that Fig. 3 provides;
Fig. 5 is the structural representation of a kind of Shipping Options Page treating apparatus for browser that the embodiment of the present invention provides;
Fig. 6 is another structural representation of a kind of Shipping Options Page treating apparatus for browser that the embodiment of the present invention provides;
Fig. 7 is the structural representation of a kind of terminal that the embodiment of the present invention provides.
Embodiment
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 a part of embodiment of the present invention, 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.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of Shipping Options Page disposal route for browser that the embodiment of the present invention provides, and in embodiments of the present invention, the method can comprise the following steps.
S101: receive task-performance instructions.
Usually, browser needs to perform a lot of task to open a webpage, such as: downloaded resources, parsing HTML (HyperTextMarkupLanguage, HTML (Hypertext Markup Language)), resolve CSS (CascadingStyleSheets, CSS (cascading style sheet)), perform script JavaScript, typesetting, play up, page events process etc.User is when browsing webpage; usually there will be and switch to from the first webpage the situation that the second webpage carries out browsing; such as; when opening multiple Shipping Options Page; another Shipping Options Page is switched to, therefore, in webpage operational process from a Shipping Options Page; the page may transfer front stage operation to from running background, or transfers running background to from front stage operation.In prior art, browser is when the page is cut away (namely the page cuts running background from foreground), continuation runs by the shell script that on this page, off-duty is complete, such as: the shell script being responsible for the tasks such as process user input, page layout and logical calculated, after the page is cut out, the operation of these shell scripts will take a large amount of cpu resource.But, the page be cut out is the page that user does not temporarily browse mostly, user expect to browse in the very first time by the web page contents in the page cut, therefore, the embodiment of the present invention, by controlling, from the operation dispatching frequency of the shell script cutting out the page, to reduce taking cpu resource, improves the efficiency of the browser process incision page, more smooth when user being browsed be in the webpage of incision state, improve webpage browsing efficiency.
In the embodiment of the present invention, in webpage operational process, receive task-performance instructions.Such as: having loaded the first webpage needs to perform N number of task, and N is positive integer, when loading this first webpage and needing to perform certain task, send task-performance instructions, go when receiving this task-performance instructions to make CPU to perform the task specified by this first webpage.
S102: the running status obtaining Shipping Options Page specified by described task-performance instructions, what described running status comprised the incision state that is in front stage operation and was in running background cuts out state.
Conveniently user browses webpage, and browser is mostly many Tab structure, and user can open multiple Shipping Options Page in same browser window, also can open multiple browser window and browse webpage, wherein, and the corresponding webpage of each Shipping Options Page.The webpage only having Shipping Options Page corresponding in browser window is in foreground, and the webpage being in the Shipping Options Page on foreground corresponding is user's visible state, and other Shipping Options Pages or webpage corresponding to other window are all in backstage, and the Shipping Options Page user being in backstage is invisible.In embodiments of the present invention, the running status of webpage is divided into two kinds: be in front stage operation incision state and be in running background cut out state.When receiving task-performance instructions, obtain the running status of Shipping Options Page specified by this task-performance instructions, known, wherein a kind of state that the running status of Shipping Options Page specified by this task-performance instructions is incision state and cuts out in state, if incision state, illustrate that specified by this task-performance instructions, Shipping Options Page is in front stage operation, for user is visible, user can see the web page contents that Shipping Options Page is corresponding; If cut out state, illustrate that specified by this task-performance instructions, Shipping Options Page is in running background, the web page contents that Shipping Options Page is corresponding is not that user is visible, and user only can see Shipping Options Page title.
S103: if the running status of described specified Shipping Options Page for described in cut out state, the operation described in temporary respite specified by task-performance instructions.
If the running status of Shipping Options Page specified by this task-performance instructions is for cutting out state, illustrate that specified Shipping Options Page is in running background, for user's invisible mode, after receiving this task-performance instructions, operation specified by this task-performance instructions of CPU temporary respite, to vacate more cpu resource to perform the Shipping Options Page task being in incision state.
As a kind of optional manner of the embodiment of the present invention, if the running status of this specified Shipping Options Page is for cutting out state, obtain the Shipping Options Page whether loaded being in incision state, if running status is the Shipping Options Page loaded of incision state, perform the operation specified by this task-performance instructions, otherwise, the operation specified by this task-performance instructions of temporary respite, such as: the operation specified by task-performance instructions can be made to perform after certain time length again.
As the another kind of optional manner of the embodiment of the present invention, in this step, judge the running status of described specified Shipping Options Page for described in cut out state time, arrange to the goal task specified by this task-performance instructions and start timer, the timing length of timer is preset duration, when timer arrives described preset duration, perform the operation specified by this assignment instructions.Such as: adopt setTimeout method to postpone the working time of the goal task specified by this task-performance instructions.
S104: if the running status of described specified Shipping Options Page is described incision state, perform the operation specified by described task-performance instructions.
If the running status of Shipping Options Page is incision state specified by this task-performance instructions, illustrate that this appointment Shipping Options Page is user's visible state, usually, user expects that this appointment Shipping Options Page has loaded content of pages as early as possible, therefore, and the operation performed specified by instruction of executing the task.
Described by the embodiment of the present invention in the Shipping Options Page disposal route of browser, when receiving task-performance instructions, obtain the running status of Shipping Options Page specified by described task-performance instructions, if described running status is incision state, perform the operation specified by described task-performance instructions; If described running status is for cutting out state, the operation described in temporary respite specified by task-performance instructions.Adopt the embodiment of the present invention, Shipping Options Page be in cut out state time, operation specified by temporary respite task-performance instructions, thus CPU overhead can be saved by reducing the tasks carrying frequency being in the Shipping Options Page of the state of cutting out, and then reduce the occupancy of CPU, make the Shipping Options Page being in incision state run more smooth, improve Shipping Options Page browse efficiency.
Refer to Fig. 2, Fig. 2 is another schematic flow sheet of a kind of Shipping Options Page disposal route for browser that the embodiment of the present invention provides, and in embodiments of the present invention, the method can comprise the following steps.
S201: receive task-performance instructions.
S202: whether the running status identifying Shipping Options Page specified by described task-performance instructions is incision state.
After receiving task-performance instructions, obtain the running status of Shipping Options Page specified by this task-performance instructions, and whether the running status identifying Shipping Options Page specified by this task-performance instructions is the incision state being in front stage operation, if incision state, perform step S205; If cut out state, perform step S203.
S203: determine that whether running status is the Shipping Options Page loaded of described incision state.
When receiving task-performance instructions, if the running status of Shipping Options Page specified by this task-performance instructions is for cutting out state, then go to obtain the loading progress that running status is the Shipping Options Page of incision state, if running status is the loaded of the Shipping Options Page of incision state, perform step S205; If running status is the non-loaded of Shipping Options Page of incision state, perform step S204.
S204: the operation described in temporary respite specified by task-performance instructions.
Be understandable that, Shipping Options Page compares take cpu resource when loading, if when the running status of Shipping Options Page specified by task-performance instructions is for cutting out state, operation specified by temporary respite task-performance instructions, specifically, postpone the page script that scheduling is in the Shipping Options Page of the state of cutting out, namely the user's input being in the Shipping Options Page of the state that cuts out is postponed, page layout, logical calculated etc., thus can save the resource shared by the process of the Shipping Options Page being in the state of cutting out, more cpu resource is taken to make the Shipping Options Page being in incision state, thus the loading velocity of the Shipping Options Page being in incision state can be accelerated, improve the efficiency browsing webpage.
S205: perform the operation specified by described task-performance instructions.
If the running status of described specified Shipping Options Page is described incision state, or the running status of described specified Shipping Options Page for described in cut out state and described running status is the Shipping Options Page loaded of described incision state, perform the operation specified by described task-performance instructions.
Described by the embodiment of the present invention in the Shipping Options Page disposal route of browser, when receiving task-performance instructions, obtain the running status of Shipping Options Page specified by described task-performance instructions, if described running status is incision state, perform the operation specified by described task-performance instructions; If described running status is for cutting out state, and when the non-loaded of the Shipping Options Page being in incision state, the operation described in temporary respite specified by task-performance instructions, distributes more cpu resource to make the Shipping Options Page for being in incision state.Adopt the embodiment of the present invention, save CPU overhead by reducing the execution frequency being in the Shipping Options Page of the state of cutting out, thus reduce the occupancy of CPU, make the Shipping Options Page being in incision state run more smooth, improve Shipping Options Page browse efficiency.
Refer to Fig. 3, Fig. 3 is the another schematic flow sheet of a kind of Shipping Options Page disposal route for browser that the embodiment of the present invention provides, and in embodiments of the present invention, the method can comprise the following steps.
S301 a: state flag bit is set to each Shipping Options Page.
User browse open multiple Web page in webpage process time, have and only have a Shipping Options Page to be in front stage operation, for user is visible, in the embodiment of the present invention, the running status of the type Shipping Options Page being labeled as incision state; Other Shipping Options Page opened is in running background, and user is invisible, in the embodiment of the present invention, the running status of the type Shipping Options Page is labeled as the state of cutting out.In web page browsing process, a state flag bit is set to each Shipping Options Page.Such as: when the running status of Shipping Options Page is incision state, the state flag bit of this Shipping Options Page is set to the first preset value; When the running status of Shipping Options Page is for cutting out state, the state flag bit of this Shipping Options Page is set to the second preset value.For convenience of description, suppose that the first preset value is 1, second preset value is 0, known, user on same browser during a newly-built Shipping Options Page, current state zone bit be 1 Shipping Options Page be cut out, therefore, the state flag bit of this Shipping Options Page is updated to 0, and meanwhile, the state flag bit default setting of newly-built Shipping Options Page is 1.
In embodiments of the present invention, alternatively, when user click label or by browser window switch labels page time, browser detects switching command, the state flag bit of the Shipping Options Page of incision is updated to described first preset value, the state flag bit of the Shipping Options Page cut out is updated to described second preset value.
Such as: refer to Fig. 4, Fig. 4 is the interface schematic diagram of wherein a kind of using state that Fig. 3 provides, terminal is opened two browser windows, represent with " browser window one " and " browser window two " respectively, wherein, 3 Shipping Options Pages are loaded in " browser window one ", represent with " label one ", " label two " and " label three " respectively, only load 1 Shipping Options Page (not shown) in " browser window two ", be assumed to be " label four " (not shown).The current webpage of webpage corresponding to " label three " for user's visible state.Therefore, known: the state flag bit of " label three " is 1, the state flag bit of " label one ", " label two " and " label four " is 0.When user clicks " label two " in " browser window one ", namely " label two " is cut, and " label three " is cut out, and therefore, the state flag bit of " label three " is updated to 0, the state flag bit of " label two " is updated to 1; On this basis, when user clicks " browser window two ", namely switch to " browser window two " from " browser window one ", the state flag bit of " label two " is updated to 0, the state flag bit of " label four " is updated to 1.
S302: when receiving task-performance instructions, identifies whether the running status of Shipping Options Page specified by described task-performance instructions is incision state.
Specifically, when receiving task-performance instructions, the state flag bit of Shipping Options Page specified by task-performance instructions, obtain the running status of Shipping Options Page specified by this task-performance instructions, namely obtain the state flag bit describing Shipping Options Page specified by this task-performance instructions, identify whether specified Shipping Options Page is incision state according to this state flag bit.If the state flag bit of specified Shipping Options Page is the first preset value, then the running status of this appointment Shipping Options Page is incision state, performs step S305; If the state flag bit of this appointment Shipping Options Page is the second preset value, then this appointment Shipping Options Page running status for described in cut out state, perform step S303.
As a kind of possibility embodiment of the present invention, some tasks that are more consuming time or consumption cpu resource can be marked in advance, when receiving the task-performance instructions of this generic task, if the running status of this appointment Shipping Options Page is for cutting out state, direct execution step S304, avoid performing the consuming time or at substantial cpu resource of this task-performance instructions, improve Shipping Options Page treatment effeciency.
As a kind of possibility embodiment of the present invention, priority level is arranged to the Shipping Options Page being in the state of cutting out, such as according to cutting the sequencing of running background or arranging priority by the Shipping Options Page of user to more important degree, when receiving the task-performance instructions of such priority tag page, even if running status is for cutting out state, also as usual perform the operation specified by this task-performance instructions, make Shipping Options Page process more humane.
S303: identify that whether running status is the Shipping Options Page loaded of described incision state.
If the running status of Shipping Options Page specified by task-performance instructions is for cutting out state, identifying that whether running status is the Shipping Options Page loaded of incision state, if running status is the non-loaded of Shipping Options Page of incision state, performing step S304; If running status is the Shipping Options Page loaded of incision state, perform step S305.
S304: arrange timer to the goal task specified by described task-performance instructions, the timing length of described timer is described preset duration.
Timing length (or being called activation period) can be arranged to equal without exception, also can be arranged to unequal, such as: the type according to goal task arranges timing length.In actual applications, activation period can be configured in XML (ExteileMarkuLaguage, the extend markup language) configuration file of system, when needs arrange timer, system just according to the activation period configured in XML configuration file, can arrange timer.When this timer arrives its timing length, perform step S305.
S305: perform the operation specified by described task-performance instructions.
If the running status of described specified Shipping Options Page is described incision state; Or the running status of described specified Shipping Options Page for described in cut out state and described running status is the Shipping Options Page loaded of described incision state; Or timer is when arriving its activation period, perform the operation specified by described task-performance instructions.
Described by the embodiment of the present invention in the Shipping Options Page disposal route of browser, when receiving task-performance instructions, according to the zone bit pre-set, obtain the running status of Shipping Options Page specified by described task-performance instructions, if described running status is incision state, perform the operation specified by described task-performance instructions; If described running status is for cutting out state, the operation described in temporary respite specified by task-performance instructions.Adopt the embodiment of the present invention, Shipping Options Page be in cut out state time, operation specified by temporary respite task-performance instructions, thus CPU overhead can be saved by reducing the execution frequency being in the Shipping Options Page of the state of cutting out, reduce the CPU usage being in the Shipping Options Page of the state of cutting out, make the label being in incision state run more smooth, improve webpage browsing efficiency.
Be apparatus of the present invention embodiment below, apparatus of the present invention embodiment and the inventive method embodiment belong to same design, for performing the method described in the inventive method embodiment.For convenience of explanation, apparatus of the present invention embodiment only illustrates the part relevant to apparatus of the present invention embodiment, and concrete ins and outs do not disclose, and please refer to the description of the inventive method embodiment, repeats no longer one by one herein.
Refer to Fig. 5, Fig. 5 is the structural representation of a kind of Shipping Options Page treating apparatus for browser that the embodiment of the present invention provides, in embodiments of the present invention, this device comprises: receiver module 101, acquisition module 102, first execution module 103 and the second execution module 104.In embodiments of the present invention; this device can be positioned at terminal; described terminal can be the mobile terminals such as computing machine, IPAD, mobile phone; also can be other smart machine; the embodiment of the present invention does not impose any restrictions this, as long as running browser class software and the terminal carrying this device can all belong to the protection domain of the embodiment of the present invention.
Receiver module 101, for receiving task-performance instructions.
Acquisition module 102, for obtaining the running status of Shipping Options Page specified by described task-performance instructions, what described running status comprised the incision state that is in front stage operation and was in running background cuts out state.
First execution module 103, if for described specified Shipping Options Page running status for described in cut out state, the operation described in temporary respite specified by task-performance instructions.
Second execution module 104, if be described incision state for the running status of described specified Shipping Options Page, performs the operation specified by described task-performance instructions.
Described by the embodiment of the present invention in the Shipping Options Page treating apparatus of browser, when receiving task-performance instructions, obtain the running status of Shipping Options Page specified by described task-performance instructions, if described running status is incision state, perform the operation specified by described task-performance instructions; If described running status is for cutting out state, the operation described in temporary respite specified by task-performance instructions.Adopt the embodiment of the present invention, Shipping Options Page be in cut out state time, operation specified by temporary respite task-performance instructions, thus can by saving CPU overhead by reducing the execution frequency being in the Shipping Options Page of the state of cutting out, thus reduce the CPU usage being in the Shipping Options Page of the state of cutting out, make the Shipping Options Page being in incision state run more smooth, improve webpage browsing efficiency.
Refer to Fig. 6, Fig. 6 is another structural representation of a kind of Shipping Options Page treating apparatus for browser that the embodiment of the present invention provides, in embodiments of the present invention, this device comprises: receiver module 201, acquisition module 202, first execution module 203, second execution module 204, arrange module 205 and update module 206.
Receiver module 201, for receiving task-performance instructions.
Acquisition module 202, for obtaining the running status of Shipping Options Page specified by described task-performance instructions, what described running status comprised the incision state that is in front stage operation and was in running background cuts out state.
First execution module 203, if for described specified Shipping Options Page running status for described in cut out state, the operation described in temporary respite specified by task-performance instructions.
Second execution module 204, if be described incision state for the running status of described specified Shipping Options Page, performs the operation specified by described task-performance instructions.
Module 205 is set, a state flag bit is set for giving each Shipping Options Page;
If the running status of Shipping Options Page is described incision state, described state flag bit is set to the first preset value; If the running status of Shipping Options Page for described in cut out state, described state flag bit is set to the second preset value.
Update module 206, during for Shipping Options Page switching command being detected, is updated to described first preset value by the state flag bit of the Shipping Options Page of incision, the state flag bit of the Shipping Options Page cut out is updated to described second preset value.
Preferably, if the first execution module specifically for described specified Shipping Options Page running status for described in cut out state, determine that whether running status is the Shipping Options Page loaded of described incision state; If described running status is the non-loaded of Shipping Options Page of described incision state, the operation described in temporary respite specified by task-performance instructions.
Preferably, the first execution module 203 specifically for:
Arrange timer to the goal task specified by described task-performance instructions, the timing length of described timer is preset duration;
When described timer arrives described preset duration, perform the operation specified by described task-performance instructions.
Preferably, the second execution module 204 also for:
If the running status of described specified Shipping Options Page for described in cut out state, and described running status is the Shipping Options Page loaded of described incision state, performs the operation specified by described task-performance instructions.
Preferably, acquisition module 202 specifically for:
Specified by described task-performance instructions, the state flag bit of Shipping Options Page, obtains the running status of Shipping Options Page specified by described task-performance instructions.
Described by the embodiment of the present invention in the Shipping Options Page treating apparatus of browser, when receiving task-performance instructions, obtain the running status of Shipping Options Page specified by described task-performance instructions, if described running status is incision state, perform the operation specified by described task-performance instructions; If described running status is for cutting out state, the operation described in temporary respite specified by task-performance instructions, performs after preset duration to make the operation specified by described task-performance instructions again.Adopt the embodiment of the present invention, CPU overhead is saved by reducing the execution frequency being in the Shipping Options Page of the state of cutting out, thus reduce the CPU usage being in the Shipping Options Page of the state of cutting out, make the Shipping Options Page being in incision state run more smooth, improve webpage browsing efficiency.
Refer to Fig. 7; Fig. 7 is the structural representation of a kind of terminal that the embodiment of the present invention provides; in embodiments of the present invention; this terminal 10 comprises as above for the Shipping Options Page treating apparatus of browser; this terminal can be the equipment such as mobile phone, IPAD, computing machine, all-in-one; the embodiment of the present invention is not restricted this, as long as running browser class software and the terminal carrying described device can all belong to the protection domain of the embodiment of the present invention.
What deserves to be explained is, terminal 10 comprises any one Shipping Options Page treating apparatus for browser as above, for convenience of description, is described with wherein a kind of Shipping Options Page treating apparatus for browser.Concrete, terminal 10 receives task-performance instructions; Obtain the running status of Shipping Options Page specified by described task-performance instructions, what described running status comprised the incision state that is in front stage operation and was in running background cuts out state; If the running status of described specified Shipping Options Page for described in cut out state, the operation described in temporary respite specified by task-performance instructions; If the running status of described specified Shipping Options Page is described incision state, perform the operation specified by described task-performance instructions.
In the terminal described by the embodiment of the present invention, when receiving task-performance instructions, obtain the running status of Shipping Options Page specified by described task-performance instructions, if described running status is incision state, perform the operation specified by described task-performance instructions; If described running status is for cutting out state, the operation described in temporary respite specified by task-performance instructions.Adopt the embodiment of the present invention, save CPU overhead by reducing the execution frequency being in the Shipping Options Page of the state of cutting out, thus reduce the occupancy of CPU, make the Shipping Options Page being in incision state run more smooth, improve Shipping Options Page browse efficiency.
The feature of the different embodiment described in this instructions and different embodiment can carry out combining and combining by those skilled in the art.Module in all embodiments of the present invention or unit, universal integrated circuit can be passed through, such as CPU (CentralProcessingUnit, central processing unit), or realized by ASIC (ApplicationSpecificIntegratedCircuit, special IC).Wherein, the step in all embodiment methods of the present invention can be carried out order according to actual needs and be adjusted, merges and delete; Module in all embodiment device of the present invention or unit can carry out merging, divide and deleting according to actual needs.
In addition, term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance or imply the quantity indicating indicated technical characteristic.Thus, be limited with " first ", the feature of " second " can express or impliedly comprise at least one this feature.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), erasablely edit ROM (read-only memory) (EPROM or flash memory), fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanning to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer memory.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.
Above disclosedly be only preferred embodiment of the present invention, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.
Claims (13)
1., for a Shipping Options Page disposal route for browser, it is characterized in that, comprising:
Receive task-performance instructions;
Obtain the running status of Shipping Options Page specified by described task-performance instructions, what described running status comprised the incision state that is in front stage operation and was in running background cuts out state;
If the running status of described specified Shipping Options Page for described in cut out state, the operation described in temporary respite specified by task-performance instructions;
If the running status of described specified Shipping Options Page is described incision state, perform the operation specified by described task-performance instructions.
2. the method for claim 1, is characterized in that, if the running status of described specified Shipping Options Page for described in cut out state, the operation described in temporary respite specified by task-performance instructions, comprising:
If the running status of described specified Shipping Options Page for described in cut out state, determine that whether running status is the Shipping Options Page loaded of described incision state;
If described running status is the non-loaded of Shipping Options Page of described incision state, the operation described in temporary respite specified by task-performance instructions.
3. method as claimed in claim 2, it is characterized in that, described method also comprises:
If the running status of described specified Shipping Options Page for described in cut out state, and described running status is the Shipping Options Page loaded of described incision state, performs the operation specified by described task-performance instructions.
4. the method for claim 1, is characterized in that, the operation described in described temporary respite specified by task-performance instructions, comprising:
Arrange timer to the goal task specified by described task-performance instructions, the timing length of described timer is preset duration;
When described timer arrives described preset duration, perform the operation specified by described task-performance instructions.
5. the method as described in any one of claim 1-4, is characterized in that, described method also comprises:
To each Shipping Options Page, a state flag bit is set;
If the running status of Shipping Options Page is described incision state, described state flag bit is set to the first preset value; If the running status of Shipping Options Page for described in cut out state, described state flag bit is set to the second preset value;
Specified by the described task-performance instructions of described acquisition, the running status of Shipping Options Page comprises:
Specified by described task-performance instructions, the state flag bit of Shipping Options Page, obtains the running status of Shipping Options Page specified by described task-performance instructions.
6. method as claimed in claim 5, it is characterized in that, before the running status of Shipping Options Page specified by the described task-performance instructions of described acquisition, described method also comprises:
When Shipping Options Page switching command being detected, the state flag bit of the Shipping Options Page of incision is updated to described first preset value, the state flag bit of the Shipping Options Page cut out is updated to described second preset value.
7., for a Shipping Options Page treating apparatus for browser, it is characterized in that, comprising:
Receiver module, for receiving task-performance instructions;
Acquisition module, for obtaining the running status of Shipping Options Page specified by described task-performance instructions, what described running status comprised the incision state that is in front stage operation and was in running background cuts out state;
First execution module, if for described specified Shipping Options Page running status for described in cut out state, the operation described in temporary respite specified by task-performance instructions;
Second execution module, if be described incision state for the running status of described specified Shipping Options Page, performs the operation specified by described task-performance instructions.
8. device as claimed in claim 7, is characterized in that, described first execution module specifically for:
If the running status of described specified Shipping Options Page for described in cut out state, determine that whether running status is the Shipping Options Page loaded of described incision state;
If described running status is the non-loaded of Shipping Options Page of described incision state, the operation described in temporary respite specified by task-performance instructions.
9. device as claimed in claim 8, is characterized in that, described second execution module also for:
If the running status of described specified Shipping Options Page for described in cut out state, and described running status is the Shipping Options Page loaded of described incision state, performs the operation specified by described task-performance instructions.
10. device as claimed in claim 7, is characterized in that, described first execution module specifically for:
Arrange timer to the goal task specified by described task-performance instructions, the timing length of described timer is preset duration;
When described timer arrives described preset duration, perform the operation specified by described task-performance instructions.
11. devices as described in any one of claim 7-10, is characterized in that, described device also comprises and arranges module, described arrange module for:
To each Shipping Options Page, a state flag bit is set;
If the running status of Shipping Options Page is described incision state, described state flag bit is set to the first preset value; If the running status of Shipping Options Page for described in cut out state, described state flag bit is set to the second preset value;
Described acquisition module specifically for:
Specified by described task-performance instructions, the state flag bit of Shipping Options Page, obtains the running status of Shipping Options Page specified by described task-performance instructions.
12. devices as claimed in claim 11, it is characterized in that, described device also comprises:
Update module, during for Shipping Options Page switching command being detected, is updated to described first preset value by the state flag bit of the Shipping Options Page of incision, the state flag bit of the Shipping Options Page cut out is updated to described second preset value.
13. 1 kinds of terminals, is characterized in that, comprise the device as described in any one of claim 7-12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410343251.XA CN105446708B (en) | 2014-07-18 | 2014-07-18 | A kind of Shipping Options Page processing method, device and terminal for browser |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410343251.XA CN105446708B (en) | 2014-07-18 | 2014-07-18 | A kind of Shipping Options Page processing method, device and terminal for browser |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105446708A true CN105446708A (en) | 2016-03-30 |
CN105446708B CN105446708B (en) | 2019-03-15 |
Family
ID=55556963
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410343251.XA Active CN105446708B (en) | 2014-07-18 | 2014-07-18 | A kind of Shipping Options Page processing method, device and terminal for browser |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105446708B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106445496A (en) * | 2016-08-26 | 2017-02-22 | 北京小米移动软件有限公司 | Method and apparatus for setting timer in browser page |
CN110795216A (en) * | 2018-08-03 | 2020-02-14 | 北京京东尚科信息技术有限公司 | Method and device for realizing mobile terminal multi-application integration container |
CN112612404A (en) * | 2020-12-24 | 2021-04-06 | 广东虹勤通讯技术有限公司 | Browsing page switching method and device |
CN114595415A (en) * | 2022-03-21 | 2022-06-07 | 平安证券股份有限公司 | Method, device and equipment for switching multiple tab pages of browser and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101887409A (en) * | 2009-05-12 | 2010-11-17 | 上海易狄欧电子科技有限公司 | Method for transmitting data of shared electronic book among readers |
WO2011109195A1 (en) * | 2010-03-05 | 2011-09-09 | Integrated Training Solutions, Inc. | System and associated method for determining and applying sociocultural characteristics |
CN103336838A (en) * | 2013-07-15 | 2013-10-02 | 北京小米科技有限责任公司 | Method and device for processing webpage and terminal equipment |
-
2014
- 2014-07-18 CN CN201410343251.XA patent/CN105446708B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101887409A (en) * | 2009-05-12 | 2010-11-17 | 上海易狄欧电子科技有限公司 | Method for transmitting data of shared electronic book among readers |
WO2011109195A1 (en) * | 2010-03-05 | 2011-09-09 | Integrated Training Solutions, Inc. | System and associated method for determining and applying sociocultural characteristics |
CN103336838A (en) * | 2013-07-15 | 2013-10-02 | 北京小米科技有限责任公司 | Method and device for processing webpage and terminal equipment |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106445496A (en) * | 2016-08-26 | 2017-02-22 | 北京小米移动软件有限公司 | Method and apparatus for setting timer in browser page |
CN110795216A (en) * | 2018-08-03 | 2020-02-14 | 北京京东尚科信息技术有限公司 | Method and device for realizing mobile terminal multi-application integration container |
CN112612404A (en) * | 2020-12-24 | 2021-04-06 | 广东虹勤通讯技术有限公司 | Browsing page switching method and device |
CN114595415A (en) * | 2022-03-21 | 2022-06-07 | 平安证券股份有限公司 | Method, device and equipment for switching multiple tab pages of browser and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105446708B (en) | 2019-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110020292B (en) | Webpage content extraction method and terminal equipment | |
CN110059277A (en) | The loaded and optimized method of homepage, server and computer readable storage medium | |
CN104268019A (en) | Software operating method and device and terminal | |
CN105630461A (en) | Managing method of android application interface | |
WO2020010725A1 (en) | Method and apparatus for automatically synchronously refreshing browser, and computer device | |
CN106502646A (en) | The page info processing method and processing device of application | |
CN105549820A (en) | Graphic user interface display method and terminal | |
CN105446708A (en) | Method and device for processing tab of browser and terminal | |
CN102982169A (en) | Browser and method for isolating webpage plugins | |
CN103034495A (en) | Browser capable of isolating plug-in in webpage and webpage plug-in isolating method | |
CN103294451A (en) | Method and system for implementing applied multiple tasks and multiple windows in rich page | |
CN110059278A (en) | Web page configuration method, server and computer readable storage medium | |
CN104598267A (en) | Application calling method and device | |
CN109240756A (en) | A kind of method and device of dynamically load JavaScript module | |
CN113656006B (en) | Rich text rendering method and rendering device | |
CN104598268A (en) | Application processing method and device | |
CN110321179A (en) | A kind of application program launching method, system, device and computer storage medium | |
CN109857503B (en) | Page interaction effect self-adaption method and device and electronic equipment | |
CN104239514A (en) | Webpage rendering method, device and mobile terminal | |
CN103077016B (en) | A kind of moving object creation method, device and browser | |
CN108595262B (en) | Data processing method and device | |
CN116010743A (en) | Page processing method and device, electronic equipment and storage medium | |
CN110858240A (en) | Front-end module loading method and device | |
CN104268093A (en) | Memory allocation method and device | |
CN103077194A (en) | Method and device for creating active object of browser and browser |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20181129 Address after: Room 105-53811, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province Applicant after: Zhuhai Leopard Technology Co.,Ltd. Address before: 100085 East District, Second Floor, 33 Xiaoying West Road, Haidian District, Beijing Applicant before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |