Javascript 为什么在我的页面上加载了 fbevents.js?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/38482681/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 21:31:53  来源:igfitidea点击:

Why is fbevents.js loading on my page?

javascriptfacebookwebwebpage

提问by Daniel F Jaramillo

I'm having trouble with fbevents.js, I don't know why but is loading with my page, I'm nor importing it anywhere neither putting it inside a script tags referencing it.

我在使用 fbevents.js 时遇到问题,我不知道为什么但是正在加载我的页面,我也没有将它导入任何地方,也没有将它放在引用它的脚本标签中。

Image from my page:

图片来自我的页面:

Image from my page

图片来自我的页面

What do you guys think could be the problem?

大家觉得可能是什么问题?

采纳答案by Madhawa Priyashantha

http://staticw2.yotpo.com/QxG0HurQF664N9LddhiDMsxHjx9XYsaVgWcDBnme/widget.js

http://staticw2.yotpo.com/QxG0HurQF664N9LddhiDMsxHjx9XYsaVgWcDBnme/widget.js

above widget.jsscript load fbevent.js.

以上widget.js脚本加载fbevent.js

here is the related code line. view source and search for fbevent.you can find that line.

这是相关的代码行。查看源代码并搜索fbevent.you 可以找到该行。

(window,document,"script","//connect.facebook.net/en_US/fbevents.js"

回答by Niko

I had the same problem and in my case I noticed it is one of the scripts loaded by the Google Tag Manager.

我遇到了同样的问题,就我而言,我注意到它是 Google 标签管理器加载的脚本之一。