We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
window.postMessage is proved to be invoked earlier than setTimeout:
https://developer.mozilla.org/en/DOM/window.postMessage http://dbaron.org/log/20100309-faster-timeouts
The problem is that is not supported everywhere:
http://caniuse.com/#feat=x-doc-messaging
Idea (to be tested):
use postMessage, if not available fallback to setTimeout (NodeJS/Browser) or Titanium.Application.fireEvent (Titanium)
The text was updated successfully, but these errors were encountered:
It's 2014 and window.postMessage is supported everywhere! YAY! 👍
window.postMessage
For Node the code should use the process.nextTick (see here)
process.nextTick
No need to include a case for setImmediate as it uses the same internals of window.postMessage and Gecko + Webkit aren't going to implement it any time soon
setImmediate
Sorry, something went wrong.
federico-lox
No branches or pull requests
window.postMessage is proved to be invoked earlier than setTimeout:
https://developer.mozilla.org/en/DOM/window.postMessage
http://dbaron.org/log/20100309-faster-timeouts
The problem is that is not supported everywhere:
http://caniuse.com/#feat=x-doc-messaging
Idea (to be tested):
use postMessage, if not available fallback to setTimeout (NodeJS/Browser) or Titanium.Application.fireEvent (Titanium)
The text was updated successfully, but these errors were encountered: