Profile mobile Safari (iPad) javascript?

后端 未结 2 1326
生来不讨喜
生来不讨喜 2021-01-17 13:03

Javascript performance on mobile Safari (iPad) is much more sensitive for my application that it is on the desktop. Some operations that work super-smooth on the desktop tak

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-17 13:59

    You could try using a javascript profiling library (using timers for example) by a bit of searching I've found http://remysharp.com/2007/04/20/performance-profiling-javascript/ but since I didn't test it I can't tell you if its any good. You could place timers at various locations in your code and try to track down the bottlenecks that way.

    (Js Microtime Library http://phpjs.org/functions/microtime:472)

提交回复
热议问题