<!DOCTYPE html>
<html>
<head>
<!--3rd party scripts-->
<script src="jquery.js"></script>
<script src="fetch.js"></script>
<script src="promise.js"></script>
<script src="require.js"></script>
<!--own scripts-->
<script src="liveReload.js"></script>
<script>
    document.addEventListener("DOMContentLoaded", function(event) { 
        require(['widget'], function(widget) {
            fetch('portal').then(function(response){
                response.json().then(function(portal){
                    widget(document.getElementById('container'), portal);
                });
            });
        });
    });
</script>
</head>
<body>
    <div id="container"></div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<!--3rd party scripts, hosted in the internet-->
<script type="text/javascript" src="https://www.google.com/jsapi"></script>    
<!--3rd party scripts, self hosted-->
<script src="jquery.js"></script>
<script src="fetch.js"></script>
<script src="promise.js"></script>
<script src="require.js"></script>
<!--own scripts-->
<script src="liveReload.js"></script>
<script>
    document.addEventListener("DOMContentLoaded", function(event) { 
        require(['widget'], function(widget) {
            fetch('portal').then(function(response){
                response.json().then(function(portal){
                    widget(document.getElementById('container'), portal);
                });
            });
        });
    });
</script>
</head>
<body>
    <div id="container"></div>
</body>
</html>
Add google loader script to widget page
Add google loader script to widget page
