I’m using jQuery to equalize some of the column heights on a page. The problem is, I have Facebook comments loading on a page, and they load by the time my code to equalize column heights is done. So I’m wondering if there is anyway to pass a callback to the Facebook comments (or if there is a more elegant way of doing this, I’m all ears).
Share
I’ve run into this problem on my own as well. Here is how I’ve managed to handle the problem. Keep in mind
equalizeColumnsis my custom function, yours may be named something else.As you can see in the example above, binding to the FB.Event.subscribe should give you what you need. In particular, the
xfbml.renderhook is essentially theonloadevent. Unfortunately, I’ve only had minor success with the other hooks (which you will need if someone posts a comment, removes a comment, “Likes” a post, or “Unlikes” a post – respectively).If you add a
setTimeoutcall to the equalizeColumns call, you may have more success.