Merged in bugfix/MAPG-26-fix-js-loading (pull request #6)

MAPG-26 remove "async defer" from <script> because they depend on each other
This commit is contained in:
Bence Pőcze 2020-05-20 00:07:19 +00:00
commit 504f53d794

View File

@ -35,7 +35,7 @@
var mapArea = <?= $bounds->calculateApproximateArea() ?>;
var guessMapBounds = <?= $bounds->toJson() ?>;
</script>
<script src="static/js/mapguesser.js" async defer></script>
<script src="https://maps.googleapis.com/maps/api/js?key=<?= $_ENV['GOOGLE_MAPS_JS_API_KEY'] ?>&callback=initialize" async defer></script>
<script src="static/js/mapguesser.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=<?= $_ENV['GOOGLE_MAPS_JS_API_KEY'] ?>&callback=initialize"></script>
</body>
</html>