[tahoe-lafs-trac-stream] [tahoe-lafs] #1912: show miniature live view of recent activity right on the front page

tahoe-lafs trac at tahoe-lafs.org
Fri May 3 17:13:39 UTC 2013


#1912: show miniature live view of recent activity right on the front page
-----------------------------------+------------------------------------
     Reporter:  zooko              |      Owner:  drewp
         Type:  enhancement        |     Status:  new
     Priority:  normal             |  Milestone:  undecided
    Component:  code-frontend-web  |    Version:  1.9.2
   Resolution:                     |   Keywords:  transparency usability
Launchpad Bug:                     |
-----------------------------------+------------------------------------

Comment (by daira):

 Replying to [comment:3 zooko]:
 > Is there a way to make the Javascript pause when the page doesn't have
 focus?

 Yes, using the {{{window.onblur}}} and {{{window.onfocus}}} events.

 (In ticket:1375#comment:3 it was suggested to use
 [https://developer.mozilla.org/en-US/docs/DOM/window.requestAnimationFrame
 requestAnimationFrame], but that seems to be designed solely for
 animations, since "The repaint may occur up to 60 times per second for
 foreground tabs, but may be reduced to a lower rate in background tabs."
 60 times per second clearly isn't appropriate here.)

-- 
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1912#comment:4>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list