async loading javascript with [removed]

后端 未结 5 990
野趣味
野趣味 2020-11-29 12:08

I am trying to async the google map api javascript.

So, the normal script tag works

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-29 12:37

    When you use the parameter callback inside the script-URL, the script doesn't use write() and you'll be able to load the API asynchronously.

    See: https://developers.google.com/maps/documentation/javascript/tutorial?hl=en#asynch

提交回复
热议问题