Performance tip
Feb. 20th, 2013 11:39 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Facebook is a beast. Always load asynchronously:
Happily, this works for all of the various incarnations of Facebook code I tried.
var $fb = $('.fb-block'));
$fb.html(fbCode);
FB.XFBML.parse($fb[0]);
Happily, this works for all of the various incarnations of Facebook code I tried.