mapbox/mapbox-gl-js — pull request #765 by istarkov (2014-10-08 20:01:26+00:00)
Title: fix: fixes the bug when defer or async attribute set in the html "script...

how to reproduce bug in google chrome
```html

```

---

modern browsers support [document.currentScript] property
we need this fix

[document.currentScript]:https://developer.mozilla.org/en/docs/Web/API/document.currentScript