Choose the API according to the problem
Not every browser problem should be solved with the same API.
- Use Clipboard API for copy and paste flows with explicit permission requirements.
- Use `URL` and `URLSearchParams` to read and build query parameters robustly.
- Use `IntersectionObserver` when visibility matters and scroll listeners would be too noisy or expensive.
- Use History API for navigation state that should update the URL without a full page reload.