Issue 10184

Taxa Browser - Insert flag to stop loading massively

10184
Reporter: jcuadra
Assignee: jcuadra
Type: SubTask
Summary: Taxa Browser - Insert flag to stop loading massively
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2011-11-09 19:16:59.793
Updated: 2013-08-29 14:46:02.262
Resolved: 2011-11-10 18:25:10.767
        
Description: When a user scrolls down, a WS call is emitted to get the next set of elements in the tree. But while the WS call is getting back the results, the user continues to scroll down causing even more WS calls. In this scenario, if a users scrolls too quickly, the amount of WS calls are so many that the page stops responding.

The best approach will be to set a stopFlag=true when the first WS call is emitted and always check for this flag when subsequent calls should be made. If stopFlag=true, then the subsequent call is not made. stopFlag will be set to false once the WS call has finished and the tree has been rendered with the extra elements.]]>
    


Author: jcuadra@gbif.org
Comment: fixed on google code r226
Created: 2011-11-10 18:25:48.463
Updated: 2011-11-10 18:25:48.463