We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47dbaf5 commit 32902a7Copy full SHA for 32902a7
1 file changed
index.mjs
@@ -47,6 +47,10 @@ export default function quicklink(options) {
47
if (navigator.connection.effectiveType && /\slow-2g|2g/.test(navigator.connection.effectiveType)) {
48
return;
49
}
50
+ // Don't prefetch if Save-Data is enabled..
51
+ if (navigator.connection.saveData) {
52
+ return;
53
+ }
54
55
// Prefetch an array of URLs if supplied (as an override)
56
if (options.urls !== undefined && options.urls.length > 0) {
0 commit comments