Debouncing is a way of skipping input garbage and waiting for things to calm before running a function. Make one debounce function and reuse it often. Learn more.
Incremental Static Regeneration (ISR) is not just caching, but the ability to cache and revalidate the cache on the CDN once it expires. The on-demand part could be a game-changer.