window.innerHeight is maybe as good and won't possibly trigger a reflow (I'm not so sure about this) ?