WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #23216, comment 39


Ignore:
Timestamp:
01/29/13 23:20:24 (5 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23216, comment 39

    initial v1  
    11The first run uses the JS global `pagenow` to identify from which screen the XHR was sent. That is different from the PHP global `$pagenow` (in JS it is `$current_screen->id;`). Will rename it to avoid confusion. 
    22 
    3 Another consideration: if the user has two tabs open with the same admin screen, on the PHP side they all look the same. We can detect when a tab is hidden and throttle the requests, but we may still run into problems if several tabs are open (more than 10?). Should we make the "beat" very slow, perhaps every 2 min, or even pause it if the user is not on the browser tab? 
     3Another consideration: if the user has two tabs open with the same admin screen, on the PHP side they all look the same. We can detect when a tab is "blurred" and throttle the requests, but we may still run into problems if several tabs are open (more than 10?). Should we make the "beat" very slow, perhaps every 2 min, or even pause it if the user is not on the browser tab?