3 ms·
Anyone interested in optimising their mobile web applications should watch Apple's Safari tracks from this year's WWDC. They have plenty of advice on improving
by andrewgleave 13y ago
Anyone interested in optimising their mobile web applications should watch Apple's Safari tracks from this year's WWDC.
They have plenty of advice on improving general performance and how to use the WebKitInspector to measure performance problems.
Some key take aways:
Avoid using libraries (like jQuery) unless you really need them - It will reduce memory consumption significantly.
Be careful how often you're invalidating style/layout info and forcing recompilation.
Avoid using onscroll events to do layout. Especially when you're likely to inadvertently invalidate styles/layout at the same time e.g. accessing element offsets and positions