简体   繁体   English

FB按钮的“赞”速度非常慢

[英]FB button “like” is very slow

I added the button "like" on the site, but in IE 9 was strongly inhibit asynchronous loading. 我在网站上添加了“赞”按钮,但在IE 9中强烈禁止异步加载。

http://mallstreet.ru/en/369/gazonokosilki/bosch/51363/art-23-easytrim-accu.html http://mallstreet.ru/en/369/gazonokosilki/bosch/51363/art-23-easytrim-accu.html

When I delete this one code from the page, the page loads quickly: 当我从页面删除此代码时,页面会快速加载:

<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/ru_RU/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

Why is this happening? 为什么会这样呢?

I was able to narrow this down to the emulateIE7 meta tag in the page head. 我能够将其缩小到页面头部的emulateIE7元标记。

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">

Once I removed that tag the performance improved on the facebook code. 一旦删除该标记,Facebook代码的性能就会提高。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM