Cross-Site Script Inclusion

cross-domain-loading.js
/**
 * Load in a JavaScript library from another origin.
 */
fetch('https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.js')
  .then(response => {
    // This will succeed because browsers will allow
    // JavaScript to be loaded from other origins.
  })