oyvindkinsey / easyXDM

A javascript library providing cross-browser, cross-site messaging/method invocation.

Home Page:http://easyxdm.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PostMessage conflicts

pronebird opened this issue · comments

I found (it seems like) that the project I am working on has conflicts with wordpress.com scripts because they basically use postMessage and catch everything that comes from easyXDM and then what happens is that easyXDM initialization delayed like for 20 seconds. How do you think, is it possible that postMessage transport used by easyXDM can conflicts with other postMessage handlers on the page? If so, then is there any ways to isolate them? Just trying to figure out what's going on.

easyXDM itself is not affected by this as it only handles messages directed at it (by using a message prefix).
What other pieces of code do is outside the scope of the project though.. no idea why anything would be delayed...

Unfortunately postMessage doesn't provide any scoping mechanism, and so it is up to the individual recipients to filter out which messages they want to respond to.