Hacker News new | past | comments | ask | show | jobs | submit login

From the Mozilla site on window.postMessage:

  Introduced in Gecko 1.9
  (Firefox 3)
In other words, "Available 5 years from now."

If you want to use this today, you'll still need to sniff for it and call setTimeout if it's not available. So unless those 10ms are really important to what you're doing, this will just cost you more work.

That's the problem with cool new browser features. It just takes forever before they trickle down to enough of your users that it makes sense to use them.

Sometimes it's worth the wait. I can remember thinking all of the above about xmlHttpRequest and how lame it was that I'd still need to switch on it and have Netscape continue to use IFrames to do asynch communication back when IE5 came out.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: