Should I use Google's JSAPI in production code?

后端 未结 8 1755
傲寒
傲寒 2020-12-25 13:59

Possible duplicate of:

should-i-link-to-google-apis-cloud-for-js-libraries

also many other discussions, including:

Where do you incl

8条回答
  •  一向
    一向 (楼主)
    2020-12-25 14:53

    keep in mind that google jsapi loads the scripts only after the document itself is loaded.

    So, if (for example) you are using jquery's $(document).ready() in your web app, you'll have to switch to google.setOnLoadCallback().

提交回复
热议问题