Remove facebook connect
Rate this topic: 




1.00 out of 6 based on 1 vote(s)
- GK User
- Mon Feb 16, 2015 11:56 pm
- Reply with quote
- Report this post
I am trying to speed up my website.
According to Pagespeed of Google, on my home page www.casino-online.bz I have a call to:
http://connect.facebook.net/en_US/all.js
But I do not have any user that can connect to my website, no login as normal user and no login by facebook. So I would remove such call.
Can you tell me which module and plugin can I disable? So my website will be more fast.
According to Pagespeed of Google, on my home page www.casino-online.bz I have a call to:
http://connect.facebook.net/en_US/all.js
But I do not have any user that can connect to my website, no login as normal user and no login by facebook. So I would remove such call.
Can you tell me which module and plugin can I disable? So my website will be more fast.
-

- Expert Boarder
- GK User
- Tue Feb 17, 2015 7:11 am
- Reply with quote
- Report this post
To be honest this will not make a difference. It is an asynchronic request to another server which goes parallel to requests to your own. Google sometimes suggest stupid things, but those are automatic suggestions and should be treated with carefulness.
-

- Moderator
- GK User
- Tue Feb 17, 2015 7:14 am
- Reply with quote
- Report this post
Also this script is required if you use facebook "like" button on any page. If you don't use it I can provide the way to delete the script - but still - it will not change a thing.
-

- Moderator
- GK User
- Tue Feb 17, 2015 9:41 am
- Reply with quote
- Report this post
Probably it is a stupid thing, but it increase my ranking on Google Pagespeed. I do not use your facebook buttons, but another plugin. I noticed that there is a lot of javascript printed on my home page for that facebook connections so I could remove text too. Furthermore more plugin/module you have to load and more slow the website is. So please be nice and tell me which module/plugin is involved.
-

- Expert Boarder
- GK User
- Tue Feb 17, 2015 7:00 pm
- Reply with quote
- Report this post
Two files to edit that might add this code:
/modules/mod_social_gk5/data_source/facebook.php
change:
to:
and more probably:
/templates/gk_news2/layouts/blocks/social.php
find this code:
and simply remove those lines.
/modules/mod_social_gk5/data_source/facebook.php
change:
- Code: Select all
// include script
echo $js;
to:
- Code: Select all
// include script
// echo $js;
and more probably:
/templates/gk_news2/layouts/blocks/social.php
find this code:
- Code: Select all
jQuery(window).load(function() {
(function(){
if(!document.getElementById('fb-root')) {
var root = document.createElement('div');
root.id = 'fb-root';
document.getElementById('gkfb-root').appendChild(root);
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net/<?php echo $this->API->get('fb_lang', 'en_US'); ?>/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}
}());
});
and simply remove those lines.
-

- Moderator
5 posts
• Page 1 of 1
