Why does simple website crash on mobile (iOS Safari and Chrome, at least)?

后端 未结 7 1382
深忆病人
深忆病人 2021-01-30 18:42

I have a website that is very simple, but very long -- a lot of text that could be scrolled through. It\'s a documentation site, and considering the nature of the content (a lot

7条回答
  •  执笔经年
    2021-01-30 19:13

    Your HTML markup has some errors (such as a div tag inside an h1 tag) that should be fixed before you try to analyze a crash.

    I suggest you run it through an HTML validator, for example http://validator.w3.org/check?uri=http%3A%2F%2Fdavidtheclark.github.io%2Fscut%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

    The div inside h1 apparently caused a cascade of errors that the validator had to suppress to continue.

    When I have browser crashing problems, HTML validation is always my first step. Then I try seeing what might be wrong with the javascript if correcting the HTML didn't help.

提交回复
热议问题