Why does my website crash in IE?

前端 未结 4 766
梦如初夏
梦如初夏 2020-12-20 03:09

My site works fine in Firefox, but it crashes in IE.

I am using alot of jQuery in order to fade in content. When the user clicks on one of the above links a few time

4条回答
  •  温柔的废话
    2020-12-20 03:49

    I can suggest that you have to follow the "Divide and Conquer Strategy".

    Remove all your javascript, and try to load it, if it fail the problem is with the code you have removed. Now add again "half" of the code that you have removed, if it didn't crash then the problems isn't in this half, if it crashes again then it is in the half you have added. Now you have to keep adding "half" of the remaining code when it works, or removing half of the code you have added if it fails. If you keep doing this eventually you will led to a piece of code that you can't divide and if added make IE crash.

    This will not solve your bug but it may give you an idea where the real problem is.

提交回复
热议问题