Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook like button/box causing "Stop running this script" errors in IE8

In the last 24 hours most of our websites that have Facebook like buttons or like boxes have started showing the following error only in Internet Explorer 8 and below:

Stop running this script?

A script on this page is causing your web browser to run slowly. If it continues to run, your computer might become unresponsive.

It only seems to happen with some variations of the like button, particularly the standard type, and on the like box.

I have tried disabling most of the other scripts on our websites but it's only after I disable the Facebook script that the error goes away.

Here's an example of one page that it's happening on: http://entertainment.wsi.tafensw.edu.au/

Is there any known issues with Facebook widgets and IE8 in the last 24 hours, or any suggestions for fixing this?

like image 556
johna Avatar asked Feb 15 '26 07:02

johna


1 Answers

we had the same issue on website. It started to happen from yesterday 04/07/2013. It only happens in IE7 browser. We just omitted the browser from showing the Like box with below code.

if (navigator.appVersion.indexOf("MSIE 7.") == -1) {            
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) return;
        js = d.createElement(s); js.id = id;
        js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
        fjs.parentNode.insertBefore(js, fjs);     
    }
like image 85
Babu Chaudhary Avatar answered Feb 17 '26 03:02

Babu Chaudhary



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!