Usar un retroceso si falla la carga del módulo

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