documentcloud/underscore — Issue #466: setImmediate() with _.defer()
Author: jareware
Created: 2012-02-09 11:21:50+00:00
State: open

Any plans on delegating to window.setImmediate() where available in _.defer()..?

https://developer.mozilla.org/en/Document_Object_Model_(DOM)/window.setImmediate
http://ie.microsoft.com/testdrive/Performance/setImmediateSorting/Default.html

Would match the documented use case of "Defers invoking the function until the current call stack has cleared, similar to using setTimeout with a delay of 0" though it's perhaps not Underscore's place to start shimming for experimental browser features.