CN103336838A - Method and device for processing webpage and terminal equipment - Google Patents
Method and device for processing webpage and terminal equipment Download PDFInfo
- Publication number
- CN103336838A CN103336838A CN201310296099XA CN201310296099A CN103336838A CN 103336838 A CN103336838 A CN 103336838A CN 201310296099X A CN201310296099X A CN 201310296099XA CN 201310296099 A CN201310296099 A CN 201310296099A CN 103336838 A CN103336838 A CN 103336838A
- Authority
- CN
- China
- Prior art keywords
- web page
- current web
- described current
- state
- property value
- 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
Images
Abstract
The invention discloses a method and device for processing a webpage and terminal equipment. The processing method comprises the steps of monitoring the state of the current webpage, and suspending the execution of the executable script of the current webpage when the state of the current webpage meets a preset execution suspending condition. According to the embodiment, the fact that the execution of the executable script of the current webpage can be suspended when the current webpage is in an invisible state or the continuous duration that the current webpage does not receive an operation is equal to preset duration can be achieved, the occupation by the executable script of the current webpage on hardware resources is avoided, and the hardware resources are saved.
Description
Technical field
The present invention relates to technical field of the computer network, relate in particular to a kind of disposal route, device and terminal device of webpage.
Background technology
Along with the development of computer internet technology, when can supporting multi-page same, browses by present browser, for example, support many based tab navigations, meanwhile the content of webpage also becomes more and more abundanter, and increasing page script needs viewed device to carry out.This just makes for the hardware resource of the equipment of browsing page, for example, internal memory, CPU(Central Processing Unit, central processing unit) etc. expense rapidly increases, and can cause browser UI process blocking can't respond the problem of the many user's of influence uses such as user's operation, browser process collapse when hardware resource is not enough.
At present, network application based on browser, when the user no longer focuses on a webpage (when webpage is minimized, is switched to the backstage Shipping Options Page, when perhaps the user does not carry out any operation to this webpage within a certain period of time), this webpage is still maintained the statusquo, namely the script carried out of this webpage is still being carried out, for example, in webpage, exist and connect as long-chain, AJAX polling request (asynchronous http request), perhaps timer etc. can continue to carry out page script the time, the resource of browser can be consumed, simultaneously these to consume for hardware resource be a kind of waste.Therefore, how in the browser of supporting the multipage face as much as possible the economize on hardware resource become the technical matters that needs to be resolved hurrily.
Summary of the invention
The embodiment of the invention provides a kind of disposal route, device and terminal device of webpage, is used for saving browsing device net page to the use of hardware resource, avoids being in webpage the taking hardware resource of idle state.
One aspect of the present invention has proposed a kind of disposal route of webpage, comprising:
The state of monitoring current web page;
When the state of described current web page satisfies default execution time-out condition, suspend the script carried out of carrying out described current web page.
In the embodiment of the invention, in the time of can being implemented in current web page and being in continuous duration that invisible mode or current web page do not receive operation and equaling default duration, can suspend the script carried out of carrying out current web page, avoid the script carried out the taking hardware resource of current web page, save the client hardware resource, and can suspend the script carried out that some need carry out exchanges data with server, save server resource.
Preferred as technique scheme, described time-out is carried out after the script carried out of described current web page, and described disposal route also comprises:
When the state of described current web page satisfies default execution recovery condition, recover to carry out the script carried out of described current web page.
In this programme, when the state of current web page satisfies default execution recovery condition, can recover to carry out the script carried out of current web page automatically, make things convenient for the user, have dirigibility.
Preferred as technique scheme,
Described execution time-out condition comprises: current web page is in invisible mode;
The state of described monitoring current web page comprises:
The poll that utilization is set up at described current web page is monitored described current web page and whether is in invisible mode.
A kind of scheme of monitoring the current web page state is provided in this programme.
Preferred as technique scheme, the poll that described utilization is set up at described current web page is monitored described current web page and whether is in invisible mode, comprising:
The poll that utilization is set up at described current web page is monitored the hiding property value of described current web page document;
When property value that the hiding property value of described current web page document is hidden for expression, determine that described current web page is in invisible mode;
When the hiding property value of described current web page document is the property value of expression demonstration, determine that described current web page is in visible state.
A kind of scheme of detailed monitoring current web page state is provided in this programme.
Preferred as technique scheme, described execution recovery condition comprises: described current web page is converted to visible state by invisible mode.Propose a kind of execution in this programme and recovered condition.
Preferred as technique scheme,
Described execution time-out condition comprises: the continuous duration that described current web page does not receive operation equals default duration;
The state of described monitoring current web page comprises:
To first EO of described current web page the time, pick up counting;
When the duration of statistics equals to preset duration, if described current web page receives second operation, determine that then the state of described current web page satisfies described execution time-out condition.
The scheme of another kind of monitoring current web page state is provided in this programme.
Preferred as technique scheme, described execution recovery condition comprises: described current web page receives second operation.Proposed another kind of execution in this programme and recovered condition, to meet the different needs.
Another aspect of the present invention has proposed a kind for the treatment of apparatus of webpage, comprising:
Monitoring modular is for the state of monitoring current web page;
Suspend execution module, be used for when the state of described current web page satisfies default execution time-out condition, suspending the script carried out of carrying out described current web page.
Preferred as technique scheme, described treating apparatus also comprises:
Recover execution module, be used for after described time-out execution module suspends the script carried out of carrying out described current web page, when the satisfied default execution of the state of described current web page recovers condition, recover to carry out the script carried out of described current web page.
Preferred as technique scheme, described monitoring modular comprises:
Monitoring means is used for utilizing the poll of setting up at described current web page when described execution time-out condition comprises that current web page is in invisible mode, monitors described current web page and whether is in invisible mode.
Preferred as technique scheme, described monitoring means comprises:
The monitoring subelement is used for utilizing the poll of setting up at described current web page, monitors the hiding property value of described current web page document; When property value that the hiding property value of described current web page document is hidden for expression, determine that described current web page is in invisible mode; When the hiding property value of described current web page document is the property value of expression demonstration, determine that described current web page is in visible state.
Preferred as technique scheme, described monitoring modular comprises:
Timing unit is used for when described execution time-out condition comprises that continuous duration that described current web page does not receive operation equals to preset duration, picks up counting to first EO of described current web page the time;
Determining unit when equaling to preset duration for the duration when statistics, if described current web page receives second operation, determines that then the state of described current web page satisfies described execution time-out condition.
The embodiment of the invention also provides a kind of terminal device, terminal device includes storer, and one or more than one program, one of them or an above procedure stores and are configured to carry out described one or an above program by one or above processor and comprise be used to the instruction of carrying out following operation in storer:
The state of monitoring current web page;
When the state of described current web page satisfies default execution time-out condition, suspend the script carried out of carrying out described current web page.
Other features and advantages of the present invention will be set forth in the following description, and, partly from instructions, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the instructions of writing, claims and accompanying drawing.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of instructions, is used from explanation the present invention with embodiments of the invention one, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the main method process flow diagram that webpage is handled in the embodiment of the invention;
Fig. 2 be that webpage is handled in the embodiment of the invention first kind is process flow diagram preferred embodiment;
Fig. 3 be that webpage is handled in the embodiment of the invention second kind is process flow diagram preferred embodiment;
The third process flow diagram preferred embodiment that Fig. 4 is that webpage is handled in the embodiment of the invention;
Fig. 5 is the primary structure synoptic diagram of the treating apparatus of webpage in the embodiment of the invention;
Fig. 6 is the detailed construction synoptic diagram of the treating apparatus of webpage in the embodiment of the invention;
Fig. 7 A is the structural representation of monitoring modular in the treating apparatus of webpage in the embodiment of the invention;
Fig. 7 B is the structural representation of monitoring means in the monitoring modular in the embodiment of the invention;
Fig. 7 C is another structural representation of monitoring modular in the treating apparatus of webpage in the embodiment of the invention;
A kind of terminal device structural representation that Fig. 8 provides for the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in restriction the present invention.
Be illustrated in figure 1 as the main method flow process that webpage is handled in the embodiment of the invention, may further comprise the steps 11-12:
The state of step 11, monitoring current web page.
Step 12, when the state of above-mentioned current web page satisfies default execution and suspends condition, suspend the script carried out of carrying out current web page.
Here, default execution suspends condition and can comprise: current web page is in invisible mode (for example current web page is hidden, and perhaps switches to other webpages from current web page), and perhaps the current web page continuous duration that do not receive operation equals default duration.Certainly, can also be set to other according to actual environment for use and carry out the time-out condition.
Preferably, be current web page when being in invisible mode when carrying out the time-out condition, above-mentioned steps 11 can comprise steps A 1:
The poll that steps A 1, utilization are set up at current web page, whether the monitoring current web page is in invisible mode.
Further preferably, above-mentioned steps A1 can comprise step B1-B3:
The poll that step B1, utilization are set up at current web page, the hiding property value of monitoring current web page document.
If the current web page browser is supported HTML5(Hypertext Markup Language, HTML (Hypertext Markup Language)) page observability Page Visibility technology, then can set up a poll process at current web page, the hiding hidden property value of monitoring current web page document D ocument.W3C(World Wide Web Consortium, World Wide Web Consortium) the HTML5 working draft is to the introduction of hidden attribute: " the hidden attribute is a boolean properties.When an element is specified, its expression element is not also or no longer relevant.The user agent should not present the element of having specified the hidden attribute." certainly, also must use and a kind ofly operate this attribute based on object and event-driven and client script language JavaScript with relative safety.An example may be to use the hidden attribute to come logging in network Web recreation.At first, the user will see the logon screen of having hidden recreation.Behind checking authority, the user will see the recreation of having hidden logon screen.
Step B2, when property value that the hiding property value of above-mentioned current web page document is hidden for expression, determine that current web page is in invisible mode.
When the hiding hidden property value of above-mentioned current web page document D ocument is false FALSE, determine that current web page is in invisible mode.
Step B3, when property value that the hiding property value of above-mentioned current web page document shows for expression, determine that current web page is in visible state.
When the hiding hidden property value of above-mentioned current web page document D ocument is true TRUE, determine that current web page is in visible state.
Like this, can monitor the hiding property value of current web page document by the poll of setting up, be used for determining the state of current web page.
Preferably, be continuous duration that current web page does not receive operation when equaling default duration when carrying out the time-out condition, above-mentioned steps 11 also can comprise step C1-C2:
Step C1, to first EO of current web page the time, pick up counting.
Step C2, when the duration of statistics equals default duration, if current web page receives second operation, determine that then the state of current web page satisfies the time-out condition of carrying out.
Like this, can determine the state of current web page by the method for statistics duration.
Preferably, after the above-mentioned steps 12, also can comprise step D1:
Step D1, when the state of current web page satisfies default execution and recovers condition, recover to carry out the script carried out of current web page.
Here, be current web page when being in invisible mode carrying out the time-out condition, carry out the recovery condition and comprise: current web page is converted to visible state by invisible mode; Perhaps, be continuous duration that current web page does not receive operation when equaling default duration when carrying out the time-out condition, carry out the recovery condition and comprise: current web page receives second operation.When the state of current web page satisfies default execution recovery condition, can recover to carry out the script carried out of current web page automatically, user-friendly, have dirigibility.
Adopt technique scheme, in the time of can being implemented in current web page and being in continuous duration that invisible mode or current web page do not receive operation and equaling default duration, can suspend the script carried out of carrying out current web page, avoid the script carried out the taking hardware resource of current web page, save the client hardware resource, and can suspend the script carried out that some need carry out exchanges data with server, save server resource.
Need to prove that in the practical application, above-mentioned all optional embodiments can adopt the mode combination in any of combination, form optional embodiment of the present invention, give unnecessary details no longer one by one at this.
Introduce the technical scheme that the embodiment of the invention provides in detail below by three embodiment.
Embodiment one
First kind that is illustrated in figure 2 as that webpage in the embodiment of the invention handles preferred embodiment, among this embodiment, carrying out the time-out condition is that current web page is in invisible mode, and carrying out the recovery condition is that current web page is converted to visible state by invisible mode, and this method may further comprise the steps:
The poll that step 202, utilization are set up at current web page, whether the hiding property value of monitoring current web page document is the property value that expression is hidden; If then continue execution in step 203; Otherwise, continue execution in step 204;
Hiding property value in the web document can be used for determining the state of current this webpage, as is in visible state or is in invisible mode.When it was in invisible mode, the script carried out that current web page is described took hardware resource and is wasted, pausing operation that can execution in step 203.
Whether step 204, the last hiding property value that obtains the hiding property value of current web page document are the property value that expression is hidden; If, execution in step 205; Otherwise, return and continue execution in step 202.
Among the embodiment one, can utilize the poll of setting up at current web page, the hiding property value of monitoring current web page document, hiding property value at the current web page document is when representing hiding property value, can suspend the script carried out of carrying out current web page, the script carried out of avoiding current web page takies hardware resource, has saved resource; When the hiding property value of current web page document is converted to the property value of expression demonstration by the hiding property value of expression, can recover to carry out the script carried out of current web page automatically, user-friendly, have dirigibility.
Embodiment two
Second kind that is illustrated in figure 3 as that webpage in the embodiment of the invention handles preferred embodiment, among this embodiment, carry out the time-out condition and be the continuous duration that current web page do not receive operation and equal default duration, carrying out the recovery condition is that current web page receives second operation, and this method may further comprise the steps:
Preferable, after time-out is carried out the script carried out of current web page, continue execution in step 305;
Preferable, the state of determining current web page satisfy carry out the recovery condition after, recover to carry out the script carried out of current web page, the timing zero clearing, namely during second EO, the timing of starting from scratch.
Among the embodiment two, determine the state of current web page by the method for statistics duration, when the continuous duration that does not receive operation at current web page equals default duration, can suspend the script carried out of carrying out current web page, the script carried out of avoiding current web page takies hardware resource, has saved resource.After suspending the script carried out of carrying out current web page, continue the monitoring current web page and whether receive second operation, when current web page receives second operation, can recover to carry out the script carried out of current web page automatically, user-friendly, have dirigibility.
Embodiment three
Embodiment three can be applied in such scene: the user opens the online video of watching of a video webpage, in watching the process of video, the a certain application program of moving ejects the news messages frame, the user then clicks this news messages link, open this news messages webpage, the this moment of in progress video council just now suspends plays, and when the user runs through news messages when switching to the video webpage, video continues to play automatically.
The third that is illustrated in figure 4 as that webpage in the embodiment of the invention handles preferred embodiment, this method may further comprise the steps:
The poll that step 402, utilization are set up at the video webpage, the hiding property value of monitor video web document.
Among the embodiment three, can utilize the poll of setting up at the video webpage, the hiding property value of monitor video web document when property value that the hiding property value of video web document is hidden for expression, can suspend displaying video, has saved resource; When the hiding property value of video web document is converted to the property value of expression demonstration by the hiding property value of expression, can continue displaying video automatically, made things convenient for the user, have dirigibility.
More than described the implementation procedure of web page processing method, this process can be realized that built-in function and the structure to device is introduced below by device.
Based on same inventive concept, as shown in Figure 5, a kind for the treatment of apparatus of webpage comprises in the present embodiment: monitoring modular 501 and time-out execution module 502.
Monitoring modular 501 is for the state of monitoring current web page.
Suspend execution module 502, be used for when the state of current web page satisfies default execution time-out condition, suspending the script carried out of carrying out current web page.
Preferably, as shown in Figure 6, the treating apparatus that above-mentioned Fig. 5 shows also comprises:
Recover execution module 503, be used for after time-out execution module 502 suspends the script carried out of carrying out current web pages, when the state of current web page satisfies default execution recovery condition, recover to carry out the script carried out of current web page.
Preferably, shown in Fig. 7 A, above-mentioned monitoring modular 501 can comprise:
Monitoring means 701 is used for utilizing the poll of setting up at current web page when execution time-out condition comprises that current web page is in invisible mode, and whether the monitoring current web page is in invisible mode.
Preferably, shown in Fig. 7 B, above-mentioned monitoring means 701 can comprise:
Preferably, carrying out the recovery condition comprises: current web page is converted to visible state by invisible mode.
Preferably, shown in Fig. 7 C, above-mentioned monitoring modular 501 also can comprise:
Determining unit 703 is used for when the duration of statistics equals to preset duration, if current web page receives second operation, determines that then the state of current web page satisfies the time-out condition of carrying out.
Preferably, carrying out the recovery condition comprises: current web page receives second operation.
The method that the embodiment of the invention provides may operate in the support running client script (as the javascript script) under any terminal and any platform or supports W3C to propose the browser of HTML5 standard.
The embodiment of the invention also proposes a kind of terminal, and Fig. 8 is a kind of terminal device structural representation that the embodiment of the invention provides.Referring to Fig. 8, this terminal device can be used for be implemented the disposal route of the webpage that above-described embodiment provides.Preferably, the residing hardware environment of browser with following support running client script (as the javascript script) or support W3C proposition HTML5 standard is example:
Communication unit 110 can be used for receiving and sending messages or communication process in, the reception of signal and transmission, this communication unit 110 can be RF(Radio Frequency, radio frequency) circuit, router, modulator-demodular unit, etc. network communication equipment.Especially, when communication unit 110 is the RF circuit, after the downlink information reception with the base station, transfer to one or above processor 180 processing; In addition, will be referred to up data and send to the base station.Usually, RF circuit as communication unit includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupling mechanism, LNA(Low Noise Amplifier, low noise amplifier), diplexer etc.In addition, communication unit 110 can also be by radio communication and network and other devices communicatings.Described radio communication can be used arbitrary communication standard or agreement, include but not limited to GSM(Global System of Mobile communication, global system for mobile communications), GPRS(General Packet Radio Service, general packet radio service), CDMA(Code Division Multiple Access, CDMA), WCDMA(Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE(Long Term Evolution, Long Term Evolution), Email, SMS(Short Messaging Service, Short Message Service) etc.Storer 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of storer 120 by operation, and various functions are used and data are handled thereby carry out.Storer 120 can mainly comprise storage program area and storage data field, wherein, but the required application program (such as sound-playing function, image playing function etc.) of storage program area storage operating system, at least one function etc.; The data (such as voice data, phone directory etc.) created according to the use of terminal device 800 etc. can be stored in the storage data field.In addition, storer 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, for example at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 120 can also comprise Memory Controller, so that the visit of processor 180 and 130 pairs of storeies 120 of input block to be provided.
Input block 130 can be used for receiving numeral or the character information of input, and generation is imported with the user arranges and function control is relevant keyboard, mouse, control lever, optics or trace ball signal.Preferably, input block 130 can comprise tactile sensitive surfaces 131 and other input equipments 132.Touch sensitive surfaces 131, be also referred to as touch display screen or Trackpad, can collect the user or near touch operation (using any suitable object such as finger, stylus or annex touching on the sensitive surfaces 131 or touching near the sensitive surfaces 131 operation such as the user) thereon, and drive corresponding coupling arrangement according to predefined formula.Optionally, touch sensitive surfaces 131 and can comprise touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detects user's touch orientation, and detects the signal that touch operation is brought, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, gives processor 180 again, and the order that energy receiving processor 180 is sent is also carried out.In addition, can adopt polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave to realize touching sensitive surfaces 131.Except touching sensitive surfaces 131, input block 130 can also comprise other input equipments 132.Preferably, other input equipments 132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, the control lever etc.
In order to realize radio communication, can dispose wireless communication unit 170 on this terminal device, this wireless communication unit 170 can be the WIFI module.WIFI belongs to the short range wireless transmission technology, terminal device 800 by wireless communication unit 170 can help that the user sends and receive e-mail, browsing page and visit streaming video etc., it provides wireless broadband internet visit for the user.Though Fig. 8 shows wireless communication unit 170, be understandable that it does not belong to must constituting of terminal device 800, fully can be as required in the scope of the essence that does not change invention and omit.
Although not shown, terminal device 800 can also comprise camera, bluetooth module etc., does not repeat them here.In the present embodiment, terminal device adopts the browser browsing page, terminal device also includes storer, and one or more than one program, one of them or an above procedure stores and are configured to carry out described one or an above program by one or above processor and comprise be used to the instruction of carrying out following operation in storer:
The state of monitoring current web page.
When the state of current web page satisfies default execution time-out condition, suspend the script carried out of carrying out current web page.
Those skilled in the art should understand that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware embodiment, complete software embodiment or in conjunction with the form of the embodiment of software and hardware aspect.And the present invention can adopt the form of the computer program of implementing in one or more computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) that wherein include computer usable program code.
The present invention is that reference is described according to process flow diagram and/or the block scheme of method, equipment (system) and the computer program of the embodiment of the invention.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block scheme and/or square frame and process flow diagram and/or the block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out by the processor of computing machine or other programmable data processing device produce to be used for the device of the function that is implemented in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is implemented in the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
These computer program instructions also can be loaded on computing machine or other programmable data processing device, make and carry out the sequence of operations step producing computer implemented processing at computing machine or other programmable devices, thereby be provided for being implemented in the step of the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame in the instruction that computing machine or other programmable devices are carried out.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.
Claims (13)
1. the disposal route of a webpage is characterized in that, comprising:
The state of monitoring current web page;
When the state of described current web page satisfies default execution time-out condition, suspend the script carried out of carrying out described current web page.
2. disposal route as claimed in claim 1 is characterized in that, described time-out is carried out after the script carried out of described current web page, and described disposal route also comprises:
When the state of described current web page satisfies default execution recovery condition, recover to carry out the script carried out of described current web page.
3. disposal route as claimed in claim 1 or 2 is characterized in that,
Described execution time-out condition comprises: current web page is in invisible mode;
The state of described monitoring current web page comprises:
The poll that utilization is set up at described current web page is monitored described current web page and whether is in invisible mode.
4. disposal route as claimed in claim 3 is characterized in that, the poll that described utilization is set up at described current web page is monitored described current web page and whether is in invisible mode, comprising:
The poll that utilization is set up at described current web page is monitored the hiding property value of described current web page document;
When property value that the hiding property value of described current web page document is hidden for expression, determine that described current web page is in invisible mode;
When the hiding property value of described current web page document is the property value of expression demonstration, determine that described current web page is in visible state.
5. disposal route as claimed in claim 3 is characterized in that,
Described execution recovery condition comprises: described current web page is converted to visible state by invisible mode.
6. disposal route as claimed in claim 1 or 2 is characterized in that,
Described execution time-out condition comprises: the continuous duration that described current web page does not receive operation equals default duration;
The state of described monitoring current web page comprises:
To first EO of described current web page the time, pick up counting;
When the duration of statistics equals to preset duration, if described current web page receives second operation, determine that then the state of described current web page satisfies described execution time-out condition.
7. disposal route as claimed in claim 6 is characterized in that,
Described execution recovery condition comprises: described current web page receives second operation.
8. the treating apparatus of a webpage is characterized in that, comprising:
Monitoring modular is for the state of monitoring current web page;
Suspend execution module, be used for when the state of described current web page satisfies default execution time-out condition, suspending the script carried out of carrying out described current web page.
9. treating apparatus as claimed in claim 8 is characterized in that, described treating apparatus also comprises:
Recover execution module, be used for after the time-out execution module suspends the script carried out of carrying out described current web page, when the state of described current web page satisfies default execution recovery condition, recover to carry out the script carried out of described current web page.
10. treating apparatus as claimed in claim 8 or 9 is characterized in that described monitoring modular comprises:
Monitoring means is used for utilizing the poll of setting up at described current web page when described execution time-out condition comprises that current web page is in invisible mode, monitors described current web page and whether is in invisible mode.
11. treating apparatus as claimed in claim 10 is characterized in that, described monitoring means comprises:
The monitoring subelement is used for utilizing the poll of setting up at described current web page, monitors the hiding property value of described current web page document; When property value that the hiding property value of described current web page document is hidden for expression, determine that described current web page is in invisible mode; When the hiding property value of described current web page document is the property value of expression demonstration, determine that described current web page is in visible state.
12. treating apparatus is characterized in that as claimed in claim 8 or 9, described monitoring modular comprises:
Timing unit is used for when described execution time-out condition comprises that continuous duration that described current web page does not receive operation equals to preset duration, picks up counting to first EO of described current web page the time;
Determining unit when equaling to preset duration for the duration when statistics, if described current web page receives second operation, determines that then the state of described current web page satisfies described execution time-out condition.
13. terminal device, it is characterized in that, terminal device includes storer, and one or more than one program, one of them or an above procedure stores and are configured to carry out described one or an above program by one or above processor and comprise be used to the instruction of carrying out following operation in storer:
The state of monitoring current web page;
When the state of described current web page satisfies default execution time-out condition, suspend the script carried out of carrying out described current web page.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310296099.XA CN103336838B (en) | 2013-07-15 | 2013-07-15 | A kind of processing method of webpage, device and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310296099.XA CN103336838B (en) | 2013-07-15 | 2013-07-15 | A kind of processing method of webpage, device and terminal device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103336838A true CN103336838A (en) | 2013-10-02 |
CN103336838B CN103336838B (en) | 2017-03-15 |
Family
ID=49245003
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310296099.XA Active CN103336838B (en) | 2013-07-15 | 2013-07-15 | A kind of processing method of webpage, device and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103336838B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104050253A (en) * | 2014-06-12 | 2014-09-17 | 北京金山网络科技有限公司 | Webpage display method and browser |
CN105446708A (en) * | 2014-07-18 | 2016-03-30 | 北京金山安全软件有限公司 | Method and device for processing tab of browser and terminal |
CN105808629A (en) * | 2014-12-31 | 2016-07-27 | 广州市动景计算机科技有限公司 | Webpage processing method and apparatus |
CN106126635A (en) * | 2016-06-23 | 2016-11-16 | 深圳市百米生活股份有限公司 | Advertising program arouses mechanism and its implementation automatically |
CN106528735A (en) * | 2016-10-27 | 2017-03-22 | 北京小米移动软件有限公司 | Method and device for controlling browser to play media resources |
CN110968809A (en) * | 2018-09-29 | 2020-04-07 | 北京字节跳动网络技术有限公司 | Webpage processing method and device, electronic equipment and storage medium |
CN110990730A (en) * | 2018-09-29 | 2020-04-10 | 北京字节跳动网络技术有限公司 | Webpage operation method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1965291A (en) * | 2004-04-09 | 2007-05-16 | 西门子医疗健康服务公司 | System for managing operating sessions of an executable application |
WO2008085739A2 (en) * | 2007-01-05 | 2008-07-17 | Apple Inc. | Method, system, and graphical user interface for viewing multiple application windows |
CN101882160A (en) * | 2010-06-29 | 2010-11-10 | 宇龙计算机通信科技(深圳)有限公司 | Web page management method and mobile terminal |
-
2013
- 2013-07-15 CN CN201310296099.XA patent/CN103336838B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1965291A (en) * | 2004-04-09 | 2007-05-16 | 西门子医疗健康服务公司 | System for managing operating sessions of an executable application |
WO2008085739A2 (en) * | 2007-01-05 | 2008-07-17 | Apple Inc. | Method, system, and graphical user interface for viewing multiple application windows |
CN101882160A (en) * | 2010-06-29 | 2010-11-10 | 宇龙计算机通信科技(深圳)有限公司 | Web page management method and mobile terminal |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104050253A (en) * | 2014-06-12 | 2014-09-17 | 北京金山网络科技有限公司 | Webpage display method and browser |
CN105446708A (en) * | 2014-07-18 | 2016-03-30 | 北京金山安全软件有限公司 | Method and device for processing tab of browser and terminal |
CN105446708B (en) * | 2014-07-18 | 2019-03-15 | 珠海豹趣科技有限公司 | A kind of Shipping Options Page processing method, device and terminal for browser |
CN105808629A (en) * | 2014-12-31 | 2016-07-27 | 广州市动景计算机科技有限公司 | Webpage processing method and apparatus |
CN105808629B (en) * | 2014-12-31 | 2020-08-21 | 阿里巴巴(中国)有限公司 | Webpage processing method and device |
CN106126635A (en) * | 2016-06-23 | 2016-11-16 | 深圳市百米生活股份有限公司 | Advertising program arouses mechanism and its implementation automatically |
CN106528735A (en) * | 2016-10-27 | 2017-03-22 | 北京小米移动软件有限公司 | Method and device for controlling browser to play media resources |
CN110968809A (en) * | 2018-09-29 | 2020-04-07 | 北京字节跳动网络技术有限公司 | Webpage processing method and device, electronic equipment and storage medium |
CN110990730A (en) * | 2018-09-29 | 2020-04-10 | 北京字节跳动网络技术有限公司 | Webpage operation method and device, electronic equipment and storage medium |
CN110990730B (en) * | 2018-09-29 | 2024-02-20 | 北京字节跳动网络技术有限公司 | Webpage operation method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103336838B (en) | 2017-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104978176B (en) | Application programming interfaces call method, device and computer readable storage medium | |
CN103336838A (en) | Method and device for processing webpage and terminal equipment | |
CN103399866A (en) | Webpage rendering method, device and equipment | |
CN103455571A (en) | Method and device for displaying picture in webpage, and terminal | |
CN103279574A (en) | Method, device and terminal device for loading explorer pictures | |
CN103942113A (en) | System restarting reason detection method, device and terminal equipment | |
CN104238893B (en) | A kind of method and apparatus that video preview picture is shown | |
CN104978115A (en) | Content display method and device | |
CN103455603A (en) | Method and device for caching webpage content and loading webpage and terminal device | |
CN104104711B (en) | Reading histories treating method and apparatus | |
CN103279288A (en) | Method, device and terminal units for transmitting data | |
CN105530239B (en) | Multi-medium data acquisition methods and device | |
CN103513987A (en) | Rendering treatment method, device and terminal device for browser web page | |
CN104065693A (en) | Method, device and system for accessing network data in webpage applications | |
CN103310009A (en) | Method, device and terminal for updating webpage data | |
CN103310007A (en) | Method, device and equipment for switching webpage | |
CN104239332A (en) | Webpage content processing method, webpage content processing device and browser client side | |
WO2015027909A1 (en) | Method and apparatus for obtaining hot-topic information | |
CN105868319B (en) | Webpage loading method and device | |
CN103399911A (en) | Access processing method, device and terminal device on basis of browser client | |
CN104166646A (en) | Method and device for inputting uniform resource locator | |
CN104007887A (en) | Floating layer display method and terminal | |
CN104239369A (en) | Method, device and system for filtering out webpage advertisements | |
CN103455602A (en) | Video URL (Uniform Resource Locator) capturing method and device and terminal equipment | |
CN103399706A (en) | Page interaction method, device and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C53 | Correction of patent of invention or patent application | ||
CB02 | Change of applicant information |
Address after: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13 Applicant after: Xiaomi Technology Co., Ltd. Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12 Applicant before: Beijing Xiaomi Technology Co., Ltd. |
|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |