Bug Tracker

Changes between Version 1 and Version 2 of Ticket #9867, comment 2


Ignore:
Timestamp:
Jul 20, 2011, 3:46:42 AM (8 years ago)
Author:
jokeyrhyme
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9867, comment 2

    v1 v2  
    33The application I am working on performs various computationally-intensive tasks, at it also performs fairly intensive DOM manipulations (large insertions, etc). Some of these tasks are asynchronous (like AJAX, or HTML5 File API, Web Workers) and some of these are synchronous (performing XSLT, element searches, math, etc).
    44
    5 I am currently using Deferreds to break these tasks into smaller chunks. I then use the when-then mechanism to force serial execution upon otherwise potentially-parallel tasks.
     5I am currently using Deferreds to break these tasks into smaller chunks. I then use the when-then mechanism to force serial execution upon otherwise potentially-parallel tasks (only where sequence must be preserved).
    66
    77Something I have noticed is that if I don't throw setTimeout(fn, 0)'s in myself, then the UI for the application will lock-up at times. Looking at the source code for jQuery Deferred Promises, it seems resolves/rejects lead directly into then/fail/done/always, with no room given for the UI to catch up in-between.