After checking, getting window.innerWidth won't cause sync reflow.