-
Performance
Replace wasteful API polling loops
Finds setInterval polling that hammers the API and replaces it with backoff, visibility-aware polling, or push alternatives.
Free Prompt
What This Does / How This Helps
Finds every polling loop in your frontend and stops the ones that are quietly DDoSing your own API. The classic vibe-coded pattern is setInterval(fetch, 2000) with no pause when the tab hides, no cleanup when the user navigates, and the same endpoint polled by three components at once. Ten open tabs per user multiplies it further. Your server spend and response times carry the cost of requests nobody is looking at. The prompt inventories every poller, makes them pause in hidden tabs, adds backoff to condition-waiting loops, kills interval leaks, and upgrades the genuinely-live features to push where it pays off.
Want to skip doing this by hand?
Fortivibe audits your app for all of the areas these prompts cover (and more).