Oleg  Nechaev
Oleg Nechaev

Reputation: 21

FB button "like" is very slow

I added the button "like" on the site, but in IE 9 was strongly inhibit asynchronous loading.

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?

Upvotes: 1

Views: 350

Answers (1)

jgriffith
jgriffith

Reputation: 140

I was able to narrow this down to the emulateIE7 meta tag in the page head.

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

Once I removed that tag the performance improved on the facebook code.

Upvotes: 1

Related Questions