Feature: preload links in viewport
daun opened this issue · comments
Describe the problem
- Currently, we have to add DOM attributes on elements to preload
- That doesn't quite fit the claim of the plugin:
smart
preloading - A better heuristic would be preloading visible links
Describe the proposed solution
- Implement a feature similar to quicklink: preload visible links in the viewport
- Install an IntersectionObserver on the viewport
- Preload all links inside the viewport
Alternatives considered
- Use quicklink directly
- They include lots of compatibility code we don't need
- They have lots of options we don't need
How important is this feature to you?
- Nice to have
- Would make my life a lot easier
- I cannot use swup without it