I have a drupal site integrated with drupal for facebook. For increasing the performance, I was suggested to move the scripts to the end of the body rather than the head. So in html.tpl.php I moved the "print $scripts;" from to the end of (I am using Zen template).

Everything works just fine after moving except that the Facebook Connect block (facebook login button) does not appear and it instead shows a simple word "connect" which is not clickable.

This issue is similar to another one when for FaceBook Connect block a text input format such as "Full HTML" or "Filtered HTML" is used. So I tried to play with the input format of the block but it does not solve the problem. I am currently using "Display Suite" format that works perfect when the $scripts is loaded in the head.

Is there any workaround for this to let me move $scripts to the body?

cheers,

Comments

Dave Cohen’s picture

modules/fb adds some javascript to the page footer. Is that still there? Can you make your $scripts be before the footer or closure or whatever its called in D7?