Support » Plugin: Simple Facebook Connect » Embedding XFBML and FB's javascripts in the document.

  • Resolved apurvasukant


    In context of wordpress performance, W3-Edge talks of embedding XFBML in the document thus:

    <!DOCTYPE html>
    <html xmlns="" dir="ltr" lang="en-US"

    Subsequently embedding FB’s JS thus,

    <div id="fb-embed"></div>
    window.fbAsyncInit = function() { FB.init({appId: 'XXXXXXXXXXXXXXX', status: true, cookie: true, xfbml: true}); };
    (function() {
    var e = document.createElement('script'); e.async = true;
    e.src = document.location.protocol +

    Lastly they suggest displaying the like box in this manner:

    <fb:like profile_id="XXXXXXXXXXXX" href="" width="450"></fb:like>

    All this is in order to circumvent delays at FB’s end in loading FB objects at the WP install.

    Though I am currently very happy with the performance of SFC on my WP install, I request your help regarding implementing this XFBML and JS embedding so I can gain a couple of seconds on page generation:) with my WP install, SFC and W3TC. Maybe you would consider it a future feature of your plugin too ( if it is not possible to do all this already, in which case please suggest.)

    Much thanks and great work!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Embedding XFBML and FB's javascripts in the document.’ is closed to new replies.