Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
davej
· 14y ago · 0 comments
Generally very good advice. One thing I notice a lot is people using .live() instead of just relying on event delegation. Using .live() can be terribly inefficient as it binds to the root node, use .delegate() or .on() (in jQuery 1.7) instead.
Comments
[–]
Xavi
14y ago
I understand in principle this is true, but in reality what kind of performance hit are you looking at?
I've never seen any real stats.
[–]
mattberg
14y ago
Plus .live() is now deprecated as of 1.7.