jQuery & IE crashing on $('#someDiv').hide();

后端 未结 5 1877
孤独总比滥情好
孤独总比滥情好 2021-02-15 02:03

Well after a while of scratching my head and going \"huh?\" trying to figure out why IE would straight up crash when loading one of my pages loaded with jQuery goodness, I narro

相关标签:
5条回答
  • 2021-02-15 02:20

    Step through the code in IE's debugger (with a non-minified jQuery) and see what line it dies at.

    0 讨论(0)
  • 2021-02-15 02:23

    .hide() is just a wrapper for setting the elements style to display:none. Have you tried document.getElementById("#questions").style.display = "none" just to see if that makes any difference? It might help you pinpoint whether jQuery itself is causing a conflict.

    0 讨论(0)
  • 2021-02-15 02:24

    Turn off extensions.

    It is extremely unlikely that javascript is your only problem.

    0 讨论(0)
  • 2021-02-15 02:30

    Your problem obviously is not div#questions itself. Can you try removing (or commenting out) all of div#questions's contents and adding each element back, one at a time, until IE starts crashing again?

    Once you've found the culprit, then do the same thing again for that element, removing all of its contents and adding each element back, testing after each one.

    Keep doing this until you find the real source of the problem. I know this is a pretty low-tech solution, but often it's also the quickest one.

    0 讨论(0)
  • 2021-02-15 02:36

    In my case was the Fiddler ad-don the causer of the IE crashs on mshtml.dll.

    0 讨论(0)
提交回复
热议问题