Fix/deprioritize image requests (#638)

* Use "fetch" instead of "axios"

Axios does not support prioritizing requests

* Deprioritize image requests

The browser requests images (<img>) with low priority by default.
Due to switching to loading images via axios (f852ce70e7), the image requests had the same priority as other requests and thus blocked e.g. xhr requests
This commit is contained in:
schroda
2024-03-05 02:07:05 +01:00
committed by GitHub
parent 0f3549ead9
commit daf6b50249
6 changed files with 45 additions and 109 deletions

View File

@@ -88,7 +88,6 @@ export const ServerSettings = () => {
const handleServerAddressChange = (address: string) => {
const serverBaseUrl = address.replaceAll(/(\/)+$/g, '');
setServerAddress(serverBaseUrl);
requestManager.updateClient({ baseURL: serverBaseUrl });
};
const updateSetting = <Setting extends keyof ServerSettingsType>(