Enable option to prefetch only when user hovers over link

Created on 9 February 2023, almost 2 years ago
Updated 7 August 2024, 4 months ago

Problem/Motivation

I've tried this module and it is working perfectly on our website. The aggressive nature of quicklinks may waste a lot of bandwidth of visitors especially when the page has lots of links.

Steps to reproduce

Any webpage with lots of links will

  1. Overload the server/cdn etc as for every user browser will make many more requests that it should do with out quicklinks. Most people are not going to click on any other links on a website.
  2. Eat up bandwidth of visitors if they have a limited bandwidth high speed plan and not using data-saver.

Proposed resolution

The options available in quicklinks module like limiting the number of requests, throttling and options to prefetch specific links. But it would be more usable if we have a less aggressive model for prefetching links. Something that https://instant.page/ does.

Instead of prefetching all the pages, enable a setting, so that the pages will be prefetched only if user mouse over or touch the link.

โœจ Feature request
Status

Active

Version

2.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia vimaljoseph

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @vimaljoseph
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States mherchel Gainesville, FL, US

    This could be done through a mouseover event.

    Leaving this open for now. If I have time in the coming weeks/months, I'll experiment with it.

    If anyone else is reading this and thinks this is a good idea, please comment!

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States w01f

    Just throwing another idea out - I think it might be even more useful if quicklink fetching was triggered based on a certain radius around the mouse, so that it could potentially fetch links near where the user appears to be tracking towards. This would save unnecessary fetching per the original poster's point, and still provide a bit better for the preemptive loading for a fast response.

  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine gilmord ๐Ÿ‡บ๐Ÿ‡ฆUkraine

    We used this service: https://instant.page/

    it prefetches links on hover

  • https://instant.page/

    I tried it and it seems to be effective.

    However, there are two issues:

    1.Will this website be shut down someday in the future?

    2.Will using it in this way bring security risks to the website?

    I suggest the moderator consider this feature, at least it reduces the CPU surge, targeted prefetching of URLs

Production build 0.71.5 2024