[wp-trac] [WordPress Trac] #23216: Create "WP Heartbeat" API

WordPress Trac noreply at wordpress.org
Mon Feb 4 00:06:42 UTC 2013


#23216: Create "WP Heartbeat" API
----------------------------+------------------
 Reporter:  azaozz          |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.6
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  autosave-redo   |
----------------------------+------------------

Comment (by azaozz):

 In [23382] there are two additions: detect when the window looses focus
 and when the user is not present. The first is looking at
 `$(window).blur()` and the second is looking for keyboard and mouse
 activity every 30 sec. Both ways also temporarily attach events to all
 iframes on the screen.

 On detecting window blur or no user activity the interval is slowed down
 to 120 sec. Currently the "no activity" timeout is 5 min, so even if the
 window is in focus but the user doesn't type or move the mouse it will
 still slow down to 120 sec.

 All this would need more testing and perhaps adjusting. There is some
 debug code in [23382] that outputs to the browser console. To turn that
 on, type or paste
 {{{
 wp.heartbeat.debug = true
 }}}
 in the console and run it on the Edit Post screen, or install
 [/attachment/ticket/23216/heartbeat-test-plugin.php heartbeat-test-
 plugin.php] and test on the Dashboard.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23216#comment:42>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list