title: Require.js load CDN bootstrap and CDN popper
body: <p>I wish to use require.js to load CDN hosted bootstrap and jquery.</p>
  
  <p>I realise that this question has been asked before (Refer Steve Eynon's answer to  <a href="https://stackoverflow.com/questions/46004087/issue-loading-popperjs-and-bootstrap-via-requirejs-even-after-using-recommended">Issue Loading PopperJS and Bootstrap via RequireJS, Even After Using Recommended PopperJS Version</a>), but the posted answers do not work for me.</p>
  
  <h2>What I have tried so far</h2>
  
  <p>The host html file has content ...</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"&gt;
  &lt;script data-main="js/market-place" src="js/lib/requirejs/require.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;   
  &lt;body&gt;
   html content etc.
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>File js/market-place.js has content ...</p>
  
  <pre><code>console.log( 'market-place.js');
  
  requirejs(['./decision-market-common'], function(){
    console.log( 'common requirement met.');
    require(['bootstrap'], function( bootstrap){
      console.log( 'bootstrap requirement met.');
      });
    });
  </code></pre>
  
  <p>File js/decision-market-common.js has content ...</p>
  
  <pre><code>console.log( 'decision-market-common.js');
  
  requirejs.config({
    paths: {
      jquery   : 'https://code.jquery.com/jquery-3.3.1.slim.min',
      popper   : 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min',
      bootstrap: 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min'
      },
    shim: {
      bootstrap: {
        deps: ['jquery', 'globalPopper']
        }
      }
    });
  
  
  define( 'globalPopper', ['popper'], function( p){
    window.Popper = p;
    console.log( 'global Popper is set.');
    return p;
    });
  </code></pre>
  
  <h2>Result</h2>
  
  <p>Using Chrome as my development browser, I get the following results, at first in the javascript console ...</p>
  
  <pre><code>market-place.js
  decision-market-common.js
  common requirement met.
  global Popper is set.
  </code></pre>
  
  <p>But then I get javascript error:</p>
  
  <pre><code>Failed to load resource: net::ERR_FILE_NOT_FOUND
  </code></pre>
  
  <p>require.js is trying to load ./popper.js, even after it has succesfully loaded the CDN popper.js ! Why?</p>