Is it faster to first check if an element exists, and then bind event handlers, like this:
if( $(\'.selector\').length ) { $(\'.selector\').on(\'click\',
$('.selector').on('click',function() { // Do stuff on click } will bind if element exists otherwise not. So this is faster.
$('.selector').on('click',function() { // Do stuff on click }