I have a page as follows:
$(document).ready(function() { $('.loader').hide(); function do_nothing() { return false; } // prevent a second click for 10 seconds. :) $('a, form button.btn').not('.dropdown-toggle, #event-nav a, .form-signin button').on('click', function(e) { console.log('link clicked'); $('a').click(do_nothing); if ($(this).hasClass('btn')) { $(this).prop('disabled', true); $(this).closest('form').submit(); } else { $('form button.btn').not('.dropdown-toggle, #event-nav a, .form-signin button').prop('disabled', true); } $('.loader').show(); }); }); For some reason this triggers the Ad Blocker extension for Chrome/Firefox/etc. Any ideas as to what would cause this?