Is it faster to first check if an element exists, and then bind event handlers, like this:
if( $(\'.selector\').length ) { $(\'.selector\').on(\'click\',
Just use
$('.selector').on('click',function() { // Do stuff on click }
If no elements exist with the class selector, jQuery will simply not bind anything.
selector