4 ms·
`postMessage` is faster than `setTimeout` but is unreliable. For example, it's synchronous in IE8. I may add support for `postMessage`, but for now I support "n
by wycats 14y ago
`postMessage` is faster than `setTimeout` but is unreliable. For example, it's synchronous in IE8. I may add support for `postMessage`, but for now I support "new and reliable" and "old and reliable".
- bengillies 14y agoHmm, didn't know that, thanks. I suppose if you really wanted to you could add a test to see if postMessage was async or not...