Use the window.[inner/outer][rHeight/Width] checks before falling back to the profile check