@benvie I wonder what the benchmarks are like between that and postMessage and MessageChannel using MutationObserver
-
-
Replying to @mattpodwysocki
@mattpodwysocki@benvie MutationObserver is microtask, postMessage and MessageChannel are macrotask; the former is much faster.1 reply 0 retweets 0 likes -
Replying to @domenic
@mattpodwysocki@benvie macrotasks make a trip back through the entire queue to yield to the DOM updating, repaints, timers, etc.1 reply 0 retweets 0 likes -
Replying to @domenic1 reply 0 retweets 0 likes
Replying to @mattpodwysocki
@mattpodwysocki @domenic @benvie Note that this means that if you don't want to lock up the page don't use microtasks.
10:46 PM - 3 Aug 2013
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.