I know that YouTube will play audio while in another tab or window, but my question:

(a) Does YouTube stop loading frames while in another tab? (i.e., loads audio but not video)
(b) If not, can I make it do as such?

I'm not picky if it buffers for a sec when I tab back, the video will be over anyways.

Clarification: I want to save bandwith by preventing Youtube from loading frames while unfocused. I suspect the answer is something like this psuedo-userscript:

 Every few (say, 5) seconds:  
   if the window is unfocused:  // Know this is possible; several JS games do things like this to save CPU time drawing things
      Tell youtube to stop loading frames
      Tell youtube to start loading frames

EDIT: If Youtube already does this (which it ought to), there is no problem.

  • Whether it stops loading or not seems easy enough to find out for yourself. – ale Nov 29 '16 at 14:57
  • It doesn't seem to be obvious. Perhaps it loads low-quality when unfocused and starts loading higher quality when you focus the tab, and hence plays a few low-quality frames and you don't notice... – SIGSTACKFAULT Nov 29 '16 at 15:02
  • Perhaps if you described the actual problem you're trying to solve. Are you trying to save bandwidth by ensuring YouTube doesn't download video you're not watching? – ale Nov 29 '16 at 15:04
  • Yes! Exactly! I'll edit the question – SIGSTACKFAULT Nov 29 '16 at 15:04
  • There are other similar questions here (example) but I don't know that there's a good answer. – ale Nov 29 '16 at 15:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.