What might make click events slow to fire?

Nate

For some reason, click events on my live server take significantly longer to fire than on my local development machine. For example, here's some basic code I used as a test:

jQuery(document).ready(function(){
    jQuery('a[rel^="foxyLightbox"]').on("click", function(e) {
        console.log("HA!");
        return false;
    });
});

When I run that locally and click on links, the text prints out to the console pretty much instantaneously. If I click it a bunch of times in a row, there's no lag whatsoever.

When I run it on my live server, there's almost exactly a one second delay before the event fires. If I click it a bunch of times in a row, then there is lag and it prints out about once a second.

Here's a live example page: https://www.foxytronics.com/products/68-springrc-sm-s4303r-continuous-rotation-servo

The link that triggers the event is the large product image in the upper right.

At first I thought the issue was my javascript code, but then I commented it out and used the test code above (which is extremely short), so that can't be it. What could be delaying the click event from firing?

Tony

I used chrome dev tools and I see that you have strange long mouseDown event handler:

long mouse down event handler

Some work is performed in JS script from static.getclicky.com

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Multiple click events fire on a single click GWT

From Dev

Android button - Fire timed events on click

From Dev

What causes jQuery click event not always to fire?

From Dev

What causes jQuery click event not always to fire?

From Dev

Show/Hide is not working correctly in Chrome when multiple click events fire

From Dev

Javascript Change and Click events don't both fire

From Dev

jQuery click/touch events won't fire in mobile (inline element)

From Dev

Show/Hide is not working correctly in Chrome when multiple click events fire

From Dev

Need to fire events in a specific way on a webforms ascx checkbox click event

From Dev

Why might this vim mapping be slow?

From Dev

Why might this vim mapping be slow?

From Dev

How to fire a click event to make a selection from a dropdown list in Angular

From Dev

What is the correct way to have a click event fire on Button with a Border

From Dev

What would cause click event to fire multiple times?

From Dev

Div with mouseEvent, with child div with mouse event - click outer div, get both events to fire

From Dev

Div with mouseEvent, with child div with mouse event - click outer div, get both events to fire

From Dev

Can we fire two events on a single check box click one from javascript and other from codebehind

From Dev

make background transition fast on focus/active click but slow on release

From Dev

make background transition fast on focus/active click but slow on release

From Dev

How to make events fire when an HTML video reaches a certain time mark?

From Dev

How do I make my events fire only once if true rather than for every update iteration?

From Dev

How to make Electron tray click events working reliably?

From Dev

How to make click events pass though a tkinter window?

From Dev

On condition fire all events, else fire none

From Dev

MSP430: __delay_cycles() is slow/MCLK might be slow

From Dev

What would cause click events to stop working in Internet Explorer 11?

From Dev

jQuery On click wont fire

From Dev

What might be adding parameters to the URL?

From Dev

What might be wrong with my class?

Related Related

  1. 1

    Multiple click events fire on a single click GWT

  2. 2

    Android button - Fire timed events on click

  3. 3

    What causes jQuery click event not always to fire?

  4. 4

    What causes jQuery click event not always to fire?

  5. 5

    Show/Hide is not working correctly in Chrome when multiple click events fire

  6. 6

    Javascript Change and Click events don't both fire

  7. 7

    jQuery click/touch events won't fire in mobile (inline element)

  8. 8

    Show/Hide is not working correctly in Chrome when multiple click events fire

  9. 9

    Need to fire events in a specific way on a webforms ascx checkbox click event

  10. 10

    Why might this vim mapping be slow?

  11. 11

    Why might this vim mapping be slow?

  12. 12

    How to fire a click event to make a selection from a dropdown list in Angular

  13. 13

    What is the correct way to have a click event fire on Button with a Border

  14. 14

    What would cause click event to fire multiple times?

  15. 15

    Div with mouseEvent, with child div with mouse event - click outer div, get both events to fire

  16. 16

    Div with mouseEvent, with child div with mouse event - click outer div, get both events to fire

  17. 17

    Can we fire two events on a single check box click one from javascript and other from codebehind

  18. 18

    make background transition fast on focus/active click but slow on release

  19. 19

    make background transition fast on focus/active click but slow on release

  20. 20

    How to make events fire when an HTML video reaches a certain time mark?

  21. 21

    How do I make my events fire only once if true rather than for every update iteration?

  22. 22

    How to make Electron tray click events working reliably?

  23. 23

    How to make click events pass though a tkinter window?

  24. 24

    On condition fire all events, else fire none

  25. 25

    MSP430: __delay_cycles() is slow/MCLK might be slow

  26. 26

    What would cause click events to stop working in Internet Explorer 11?

  27. 27

    jQuery On click wont fire

  28. 28

    What might be adding parameters to the URL?

  29. 29

    What might be wrong with my class?

HotTag

Archive