-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Description
What problem does this feature solve?
Currently, when a link is clicked, it starts downloading content like images once the link has been clicked. Instead, it could be possible to add the content to a hidden element in the DOM on link mouseover (or even when the mouse is heading towards the link), so that the images start downloading before the link is clicked.
This would lead to a quicker perceived load time to the user and a snappier app - although if done poorly, could also result in a lot of wasted data.
Sort of like turbolinks, but better.
I have no idea if this is a feature request or if it is too specific to be included, but I can't actually figure out how to do it without modifying vue-router! Happy to contribute code if it's something that would work.
What does the proposed API look like?
I'm assuming it would have an option, but this would be mostly automatic.