Verwenden eines Fallbacks, wenn das Laden des Moduls fehlschlägt

// ES2022
let lodash;
try {
  lodash = await import('https://primary.example.com/lodash');
} catch {
  lodash = await import('https://secondary.example.com/lodash');
}
Puzzled Puffin