Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const init = () => {
window.addEventListener('scroll', throttle(checkAll, 1000 / 30)); // 30fps
window.addEventListener('resize', debounce(measureAll));
trackViewport = true;
};