javascript - Why do the first few clicks do not work in Chrome? -


my webapp uses jquery along jqueryui components. events attached using following scheme:

$(function(){     ...     $('#id').click(function(){...});     // ,     $(document).on('click', '.dynamic-element', function(){});     ... }); 

if click button on page, happens first few clicks not trigger click action, although button "pushes in".

the weirdest thing observe in chrome 32, not firefox 27 nor safari 6 (i use mac). i've got real frustrated this. console not give errors.

what problem? there workaround?

update

i have tried (within $(document).ready of course):

$('#share').click(function(){     console.log('share clicked');     // ... further code ... }); 

after 20 page refreshes, i've got non-registered click. :s
here go. :)

update 2:

here comes fiddle: http://jsfiddle.net/22p2d/
open console, open page in 2 tabs, , have fair chance produces phenomenon. did not me.


Comments

Popular posts from this blog

php - Magento - Deleted Base url key -

javascript - Tooltipster plugin not firing jquery function when button or any click even occur -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -