using a slight debounce on built-in resize handler; also using add-event-listener for robustness
2.1.0