gijo-varghese / flying-pages

Load inner pages instantly, intelligently
ISC License
211 stars 21 forks source link

Not working on Firefox or Safari, but Chrome is OK #14

Closed adrianvanburen closed 2 years ago

adrianvanburen commented 2 years ago

This plugin does not work on Firefox or Safari, but does work for Chrome. Please see my website as an example:

https://www.lyka.stream/

safari chrome firefox

As you see, Chrome is the only one that prefetches. Do you know why this is? Is it possible to bring support to these other two browsers?

gijo-varghese commented 2 years ago

@adrianvanburen Preload is not supported in all browsers. You can check the support here: https://caniuse.com/link-rel-preload.

Chromium-based browsers are guaranteed to work.

adrianvanburen commented 2 years ago

Both Firefox and Safari are supported, since 2021 & 2018. I'm running the latest version of the browsers, so I have compatibility.

I'm using Firefox version 101

Capture d’écran 2022-06-02 à 14 38 27
gijo-varghese commented 2 years ago

@adrianvanburen sorry, it's not preload, it's prefetch: https://caniuse.com/link-rel-prefetch

Safari is not supported. I think Firebox has disabled it by default. You might need to enable it.

adrianvanburen commented 2 years ago

@gijo-varghese Thank you for the guidance. I confirm that is correct.

For those with the similar complaint, this is how to change the setting in Firefox:

  1. Open a tab, go to "about:config"
  2. Click beyond the warnings
  3. Search for the setting "network.prefetch-next" and set it to "true"

This plugin does now, indeed work, with this setting activated. Proof:

Capture d’écran 2022-06-04 à 00 32 29
gijo-varghese commented 2 years ago

@adrianvanburen great, thanks!