async function fetchWithRetry(url) { while (true) { try { return await fetch(url); } catch (e) { // it will work eventually } } }