Method for pausing activities in page when browser window is switched

A browser window and browser technology, applied in the computer field, can solve the problems of confusing computer output audio, inability to automate, occupying memory, etc., and achieve the effect of improving access fluency, reducing network bandwidth, and reducing secondary operations.

Inactive Publication Date: 2018-02-06
成都知道创宇信息技术有限公司
View PDF6 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The existing technologies are all based on ensuring the normal display of the page. Usually, after the user leaves the page, the activities in the page, such as video, audio and other active content, will not automatically stop and continue to run; the resources required by the page such as text data etc., will continue to interact with the background to obtain; the above-mentioned technical solutions, as the implementation of most current web pages, can keep the page running normally when the user visits other pages; ensure continuous playback of video and audio and real-time data when the user switches windows However, in p

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for pausing activities in page when browser window is switched

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0021] Such as figure 1 As shown, a method for suspending activities in a page when a browser window is switched includes the following steps,

[0022] Step 1: After the page is loaded, judge whether there is continuous activity on this page; if so, monitor this page, otherwise no additional operation is required;

[0023] Step 2: monitor the switching of the browser window;

[0024] Step 3: Determine whether it is an active window according to the monitoring result, if so, open the video and audio playback of this page, and suspend the communication with the server; otherwise, close the video and audio playback in the page, and suspend the communication with the server;

[0025] Step 4: Repeat Step 3 until the window or browser is closed.

[0026] Further, in the step 1, by judging whether the page has video and audio tags to load video and...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for pausing activities in a page when a browser window is switched. The method comprises the following steps that 1, after the page is loaded, whether continuous activities exist in the page or not is judged; if yes, the page is monitored, and if not, an additional operation is not needed; 2, switching of the browser window is monitored; 3, according to the monitoring result, whether a window is an activity window or not is judged, if yes, playing of videos and audios in the page is started, and the communication between the window and a server is paused; if not, playing of the videos and the audios in the page is closed, and the communication between the window and the server is paused; 4, the step 3 is repeated till the window or a browser is closed. By means of the method for pausing activities in the page when the browser window is switched, an unnecessary memory can be reduced, the accessing smoothness is improved, the user experience can be improved, and the pressure of a background server end is reduced.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method for suspending activities in a page when a browser window is switched. Background technique [0002] When a user visits a webpage, the browser will load all the resources required for the operation of the webpage, including pictures, audio, video style files, running code and other required resources; the browser requests resources from the server through the HTTP or WebSocket protocol to ensure that the user can run normally. Access; the browser will render and display the resource after receiving it, and in order to maintain the normal display content, it will continuously request data from the server; when the browser window is switched, the activities in each window are not suspended, and continue to request data And render; the activities in the page are not suspended when switching, which takes up a lot of memory and network resources. [0003] The existing technologies a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/30G06F9/48
CPCG06F9/4843G06F16/9574
Inventor 周豪
Owner 成都知道创宇信息技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products