How to load third-party javascript tag asynchronously which has [removed]

前端 未结 7 1123
星月不相逢
星月不相逢 2021-01-04 07:16

We give out a piece of javascript tags such as which site owners put on their site like http://exa

7条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-04 07:29

    What is the 3rd party javascript file?

    If it's Google Maps JavaScript API v3 then make sure you include "&callback=your_init_funct" in the script URL. Then it will call 'your_init_funct' once the maps library is loaded so that you can begin displaying the map.

    Another solution would be bezen.domwrite.js which is available here: http://bezen.org/javascript/index.html

    Demo: http://bezen.org/javascript/test/test-domwrite.html

提交回复
热议问题