nit: move this line before the addEventListener because `setTimer` is used inside the resize handler so I'd like the variable to appear to be defined before. (even if it's defined with this code as well, I know, but I find it's clearer if it's explicit)