title: gmaps + requirejs + async + laravel 5 : Cannot load gmaps using async
body: <p><strong>RequireJS + Laravel 5 + Gmaps + async = not working</strong></p>
  
  <p>Can somebody help me with loading google maps using async plugin ?
  I also tried goog plugin but it was unsuccessful too.</p>
  
  <p>It throws following error: 
  <a href="https://i.stack.imgur.com/5i0Fd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5i0Fd.png" alt="enter image description here"></a></p>
  
  <p>I can load map only synchronically but it is unsafe.</p>
  
  <p>here is my code :</p>
  
  <p><strong>welcome.blade.php</strong></p>
  
  <pre><code>&lt;head&gt;
      &lt;title&gt;Roads API Demo&lt;/title&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"&gt;
      &lt;link rel="stylesheet" type="text/css" href="{{ URL::asset('assets/css/style.css') }}"&gt;
      &lt;script data-main="{{ URL::asset('assets/js/config') }}" type="application/javascript" src="{{ URL::asset('assets/js/lib/require.js') }}"&gt;&lt;/script&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p><strong>assets/js/gmapsApi.js</strong></p>
  
  <pre><code>define(['async!http://maps.google.com/maps/api/js?sensor=false'], function() {
      console.log("HIIIIIIIIIIIIII");
  
      // When I delete async and put only
      // http://maps.google.com/maps/api/js?sensor=false
      // Then works fine .
  });
  </code></pre>
  
  <p><strong>assets/js/config.js</strong></p>
  
  <pre><code>requirejs.config({
      baseUrl: "assets/js/lib", //require.js path=assets/js/lib/require.js
      paths: {
        main: "../main",
        gmapsApi : "../gmapsApi"
      },
      waitSeconds: 0
  });
  
  requirejs(["gmapsApi"]);
  </code></pre>
  
  <p><strong>IMPORTANT NOTE : require.js path=assets/js/lib/require.js</strong></p>
  
  <p>All scripts are loaded good, I checked Sources and Network tab in chrome.</p>
  
  <p>in module assets/js/gmapsApi.js</p>
  
  <p>Not working: async!<a href="http://maps.google.com/maps/api/js?sensor=false" rel="nofollow noreferrer">http://maps.google.com/maps/api/js?sensor=false</a></p>
  
  <p>Working fine : <a href="http://maps.google.com/maps/api/js?sensor=false" rel="nofollow noreferrer">http://maps.google.com/maps/api/js?sensor=false</a></p>