Topic-icon Calls to facebook causing page load delays

Active Subscriptions:

None
8 years 1 month ago - 8 years 1 month ago #57911 by maszah
When testing my site, the second largest load time on the site are calls to facebook. I do not use facebook and I only use google. Is there anyway to disable this within the app? JFBconnect is the only addon I use that uses facebook to my knowledge.
The site is www.watchawear.com and I have tested it on tools.pingdom.com. Or here is the link with my site in it tools.pingdom.com/fpt/#!/bkdWrt/http://www.watchawear.com
Last edit: 8 years 1 month ago by maszah.
The topic has been locked.
Active Subscriptions:

None
8 years 1 month ago #57912 by maszah
I believe it is "facebook-jssdk" that is the script I need to be removed or disabled.
The topic has been locked.
Support Specialist
8 years 1 month ago #57917 by alzander
You're correct. Right now, we always include that library, even if Facebook functionality isn't used on the page. We mainly do that because most sites have a Like button, Login button or something else on every page that needs it. I've added it to our to-do list to be more wise about when to and when not to load that library.

If you want to remove that Javascript right now, please edit the /components/com_jfbconnect/libraries/provider/facebook.php file. Around line 299, you'll see:
public function onAfterRender()
    {
Add the "return;" after that line to disable that whole function from running, like:
public function onAfterRender()
    {
        return;
I hope that helps,
Alex
The topic has been locked.