david-sabata/Chrome-Last.fm-Scrobbler — pull request #242 by artem-karpenko (2013-09-10 20:09:42+00:00)
Title: Use document.readyState instead of jQuery's ready callback in connector for vk.com

Hello David,
as you may have already noticed, there were reported problems with the scrobbling from vk.com. Namely, when this extension is enabled, there is a huge slowdown in the overall site performance (and scrobbling does not work). Console shows error

Blocked a frame with origin "http://vk.com" from accessing a frame with origin "http://vk.com". The frame requesting access set "document.domain" to "vk.com", but the frame being accessed did not. Both must set "document.domain" to the same value to allow access.

After some debugging I found out that the problem is in $(function(){}) - even such empty case causes troubles. I could not find the reason for this, however checking ready state via pure js seems to work out fine, and further jQuery calls are going fine.