[wp-trac] [WordPress Trac] #29779: Update Heartbeat to use the "page visibility" API and add a setting for minimal interval

WordPress Trac noreply at wordpress.org
Mon Nov 10 01:46:07 UTC 2014


#29779: Update Heartbeat to use the "page visibility" API and add a setting for
minimal interval
----------------------------+---------------------
 Reporter:  azaozz          |       Owner:  azaozz
     Type:  enhancement     |      Status:  closed
 Priority:  normal          |   Milestone:  4.1
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:
----------------------------+---------------------
Changes (by azaozz):

 * owner:   => azaozz
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"30293"]:
 {{{
 #!CommitTicketReference repository="" revision="30293"
 Heartbeat:
 - Use the page visibility API (when available) and document.hasFocus()
 instead of window.onfocus/onblur. Improves speeding up/slowing down the
 interval and works for iframes by default.
 - Add a setting for minimal interval. Maximum value is 10 min. This
 overrides all other intervals and cannot be changed after setting it at
 initialization. Can be used to reduce the frequency of requests on hosts
 that have low limits for used CPU time, etc.
 - Extend the setting of interval to support 120 sec. (60 sec, is still the
 default).
 - Always suspend after one hour of keyboard/mouse/touch inactivity.
 Fixes #29779.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29779#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list