mbest / knockout-deferred-updates

Deferred Updates plugin for Knockout <=3.3.0
http://mbest.github.io/knockout-deferred-updates/
134 stars 23 forks source link

Consider using postMessage rather than setTimeout #16

Closed nwwells closed 10 years ago

nwwells commented 10 years ago

Just learned about this trick and immediately thought of this project. Checkout the jsperf here:

http://jsperf.com/postmessage-vs-settimeout

Not sure how the performance compares to setImmediate, but it's an interesting thing to look into. I might submit a PR if you're interested.

mbest commented 10 years ago

setImmediate uses postMessage, so I think that's covered. Thanks for the suggestion, though.