Closed Bug 936866 Opened 11 years ago Closed 11 years ago

[Keyboard] resizeUI triggers (multiple?) sync reflow taking ~80ms

Categories

(Firefox OS Graveyard :: Gaia::Keyboard, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 927324

People

(Reporter: BenWa, Unassigned)

References

Details

(Keywords: perf, Whiteboard: [c= p= s=2013.11.22 u=])

STR:
1) Profile with |./profile.sh start -p b2g|
2) Toggle the keyboard on the Homescreen using 'I'm thinking of...' input box
3) Capture profile using |./profile.sh capture| and open file at http://people.mozilla.org/~bgirard/cleopatra/

This will give you a profile like this:
http://people.mozilla.org/~bgirard/cleopatra/#report=9a1c537eb937bdd2132a91c760e4979864d66ae6&search=resizeUI

I'm not an export here but a first looks:
The script interleaves severals call to window.innerWidth/innerHeight/clientWidth/offsetWidth with DOM modificatins. This means that we have to force several sync reflows to answer these queries. Ideally we need to avoid all queries that require a sync reflow.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Bug 875963 fixes some of them.
Whiteboard: [c= p= s=2013.11.22 u=]
You need to log in before you can comment on or make changes to this bug.