Execute eventHandler just once
Source: https://stackoverflow.com/a/39276269/3599272
window.addEventListener('resize', console.log, {once: true})