I've implemented Facebook's like-button, the Twitter button and Pinterests button on a WordPress blog with 20 posts per page. The problem is that with the buttons the page get's really slow to load, for like 5-10 seconds i can't scroll. If i have a look at Chrome's console i can see that lot's of JavaScript errors are thrown, and all of them looks like this
Unsafe JavaScript attempt to access frame with URL https://www.mysite.com/blog/?cat=1 from frame with URL https://s-static.ak.facebook.com/connect/xd_arbiter.php?version=11#channel=f5468fe14&origin=https%3A%2F%2Fwww.mysite.com&channel_path=%2Fblog%2F%3Fcat%3D1%26fb_xd_fragment%23xd_sig%3Df17b68bb04%26. Domains, protocols and ports must match.
Now i assume that the unresponsive page (can't scroll while loading) will be solved if i get rid of all these errors. Problem is i have no idea what is causing them.
The example above is just for Facebook, but the Pinterest and Twitter buttons also throws lot's of errors.
Since the page also have Facebook login i've tried commenting out all of that code but with the same result.
I am using Facebooks API found on this URL
https://connect.facebook.net/sv_SE/all.js