ES2022 - Использование того, что ресурс загружается самым быстрым

const resource = await Promise.any([
  fetch('http://example.com/first.txt')
    .then(response => response.text()),
  fetch('http://example.com/second.txt')
    .then(response => response.text()),
]);
Puzzled Puffin