What might make click events slow to fire?

Viewed 7043

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?

1 Answers
Related