perf(ui): Load avatar URLs with low priority
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Родитель
c0a16ee42f
Коммит
23551cf8a8
|
@ -16,7 +16,7 @@ export const fetchAvatarUrl = (email) => {
|
|||
email,
|
||||
})
|
||||
|
||||
return Axios.get(url)
|
||||
return Axios.get(url, { adapter: 'fetch', fetchOptions: { priority: 'low' } })
|
||||
.then((resp) => resp.data)
|
||||
.then((avatar) => {
|
||||
if (avatar.isExternal) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче