Mobile Safari on iOS crashes on big pages

后端 未结 7 1257
感情败类
感情败类 2020-11-30 22:49

I have a problem where Mobile Safari crashes when loading and manipulating the DOM with jQuery when the pages get too big.

I get the same problem on both iPhone and

7条回答
  •  天命终不由人
    2020-11-30 23:00

    The main issue with any iOS app is memory usage. So, it is likely that your pages are using too much memory.

    Mobile Safari use some clever technique so that not the whole page has to reside in memory at any given time, only a portion of it. Maybe you could check if anything in your page defeats this mechanism or makes it less effective.

    In any case, to give more up to the point suggestions, more information about your page would be really great.

    By the way, you could have some hints from the crash log that the device store. Check to see if you can find it under Settings:

    1. General
    2. About
    3. Diagnostics & Usage
    4. Diagnostics & Usage Data

    If it's a memory problem, you should find something like "signal (0)"; not sure if this can only mean "killed due to memory usage", but I usually take this for granted when I found a signal (0).

    Otherwise, it might tell you what is wrong...

    Hope this helps.

提交回复
热议问题