I hate to label this a “device bug”, but since everyone else supports it, and someone doesn’t, I’ll label it as such…
It’s been so long since I had to deal with IE that I had forgotten about this, but IE does not support
window.scrollY; you have to use
So this is an effective way to find the current vertical scroll position:
var top = (window.scrollY || window.pageYOffset);
One more teeny difference for the mobile web! :-)
I’m not sure how well CSS hyphens work across languages, but, in theory, if your page is declaring its language, this should work well for your pages:
The question then, is do hyphens look good on pages, will designers be happier with hyphens than with odd line-breaks?
Fantastic, I had wanted to convert audio files to Data-URIs quite some time ago, but couldn’t quite find a way to do it…
But the ability to then store that content offline is really cool…
Not quite ready for widespread use (currently only Chrome Canary, version 25), but
Object.observe will be pretty powerful once it is!
The author makes a good case for using this
bind method, especially the ability to remove bound listeners and an improvement in efficiency:
A strong note regarding
One caveat I’d add is that in some cases
setTimeout will outperform
requestAnimFrame, notably on mobile. Test it out and config your app based on the device.
Although support for
@support is not yet great, apparently even Paul Irish, one of the creators of Modernizr, is ready to start using it over their own feature detection techniques: