How to workaround 'FB is not defined'?

前端 未结 12 1252
余生分开走
余生分开走 2020-12-04 17:56

Sometimes I\'m getting the \"FB is not defined\" issue when loading the http://connect.facebook.net/en_US/all.js

I\'ve realized that the problem is because sometime

12条回答
  •  时光说笑
    2020-12-04 18:18

    There is solution for you :)

    You must run your script after window loaded

    if you use jQuery, you can use simple way:

提交回复
热议问题