It uses .innerWidth which can cause a reflow (because reasons).
Description
Description
Related Objects
Related Objects
- Mentioned Here
- rEMFRb2b54c3437a1: Memoize isWideScreen()
Event Timeline
Comment Actions
Ah, saw comment on https://gerrit.wikimedia.org/r/#/c/311199/ . This method just checks the aspect ratio of the device, regardless of orientation.