/    Sign up×
Community /Pin to ProfileBookmark

MSIE taking a long time to click?

So, I’m building an editor in Javascript with some Ajax. It started off as a proof-of-concept, and it worked great in both MSIE and Firefox. Basically, the editor keeps track of multiple types of things, and each type has its own input form that appears and disappears dynamically. When I only have 2 or so of these input types, it’s great. Works like a charm. But when I put in another 4 of them (6 total), it starts slowing down MSIE. But it slows down strangely.

The thing is that any clickable object takes about a full second before the click registers. As an example, I put this in to test the theory:

[CODE]<A HREF=”Javascript:alert(‘foo’)”>Foo!</A>[/CODE]

And sure enough, in MSIE, it takes about a second after clicking before I get the alert popup. Firefox works fine. MSIE, slow-as-all-get-out.

Because I haven’t added *functionality*, just *quantity*, I’m assuming that by adding additional objects to the page (about 100 new input fields), I’ve somehow slowed things down by giving MSIE more objects to keep listeners for? So when it gets a click, it’s checking lots of things that it need not check to see if they got clicked?

If that’s the case, is there any way to temporarily disable these listeners (IE only enable them when they’re visible)? And if it’s not the case, anyone have any ideas as to why it would be so slow to register a click in MSIE, but not Firefox? What is it that could be slowing down the browser to register a simple click?

DaveE

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @davee123 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...