Set tracker’s fetch call priority to low

Analytic is important activity but not as important as main business
logic. Setting low priority doesn't mean the fetch call will be more
likely to be discarded etc. it's just a hint to the browser.
This commit is contained in:
Antti Hilja 2025-10-04 17:33:15 +02:00
parent eca6b069f6
commit e85ef4a9c5

View file

@ -166,6 +166,7 @@
...(typeof cache !== 'undefined' && { 'x-umami-cache': cache }),
},
credentials: 'omit',
priority: 'low',
});
const data = await res.json();