News for hackers. Stuff that matters.
Re:Responsive JavaScript by huskyr on Wednesday February 12, 2014 @04:09AM (#7223288)
In my experience, setting a handler for every onresize event can lead to performance problems if you've got a complex layout. It's better to wrap it in something like Underscore's throttle function (1) and only let it fire every 200ms or so.

1: http://underscorejs.org/#throttle

There are no comments on this comment yet.