iOS 7 Safari: OS locks up for 4 seconds when clicking/focusing on a HTML input

前端 未结 13 581
不思量自难忘°
不思量自难忘° 2020-12-07 19:36

UPDATE: The issue seems to stem from having many select elements on a page. How random is that?

So here\'s the issue. On iOS 7 Safari, when tapping

13条回答
  •  太阳男子
    2020-12-07 20:05

    I have encountered this problem as well since I noticed many people are still having a problem with this I thought I'd put my solution.

    Basically my solution is server side hiding of elements. My page is ASP.NET so I wrapped my divs with the inputs with Panels and set these panels as Visible false. This way if I click on an input the safari can't see all the other controls since they are hidden server side.

    Of course if you want to make this work a little like clientside jquery you'll need automatic postback and an updatepanel somewhere. This solution requires an effort but still its better than actually trying to fix a safari bug.

    Hope this helps.

提交回复
热议问题