async loading javascript with [removed]

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

I am trying to async the google map api javascript.

So, the normal script tag works

5条回答
  •  萌比男神i
    2020-11-29 12:35

    Do not use document.write(), for the reasons explained by market and Dr Molle. Use appendChild() instead, as done in Google's example of async loading.

提交回复
热议问题