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

后端 未结 5 1861
孤独总比滥情好
孤独总比滥情好 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: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.

提交回复
热议问题