News for hackers. Stuff that matters.
Re:Learning from Twitter by mcav on Thursday January 20, 2011 @07:13PM (#2125879)
I've used that idiom too. It's a great trick. One potential issue is that if you continuously trigger the scroll/resize event, your callback will go an extended time without firing. That's usually only a problem if you're using it to adjust UI elements on scroll/resize, in which case you'd want to add a timer to force the callback if the delay has been too long despite the event still firing often.

There are no comments on this comment yet.