Re:Always return on events is faster, but why?
by dreen on Friday October 18, 2013 @05:53AM
(#6570544)
Although it obviously isn't quite the same. I wonder what is the test result for no return vs return true
[ Parent
| on HN ]
Re:Always return on events is faster, but why?
by Tarang on Friday October 18, 2013 @06:00AM
(#6570564)
Still faster, check revision 6 http://jsperf.com/always-return-on-jquery-events/6
revision 7 http://jsperf.com/always-return-on-jquery-events/7. Just return vs return true (faster).
But as smilekzs points out revision 3 this might not be about the return statement.