Topic-icon Only load scripts on click

Active Subscriptions:

None
4 years 10 months ago #65473 by gee
Hello. Due to privacy rules in Europe I would be thankful if JFB Connect would only load scripts from facebook and co. if a user really clicks on the login button. Many plugins use this feature already. Maybe you could have a look at Shariff . facebook should only act if the user wants them to.
The topic has been locked.
Support Specialist
4 years 10 months ago #65475 by alzander
Replied by alzander on topic Only load scripts on click
We are looking into ways to disable the Facebook Javascript on pages its not completely required for. There are features like the Like button that need the Facebook library loading on the page though as the user can't interact with it if it's not there.

For Facebook Login, you may want to switch the "Show 'Login Credentials' in Popup" to 'No', which will redirect the user to Facebook to authenticate. That works around adblocks and other social-blocking methods that some browsers employ as well. In a future update of JFBConnect, if you use that setting and don't use any of the Facebook social features on a page, then we are planning to not include the Facebook Javascript library on those pages as it won't be necessary.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
4 years 10 months ago #65477 by gee
Replied by gee on topic Only load scripts on click
Sounds good. I am already using the redirect and all javascript is still loading. When is this update planned?

The javascript of facebook is not needed on the site for sharing features. Have a look at Shariff Demos here .
Someone made a plugin already: www.xadomir.de/webentwicklung/cms/joomla...18-myshariff-en.html
The topic has been locked.
Support Specialist
4 years 10 months ago #65480 by alzander
Replied by alzander on topic Only load scripts on click
We're looking into removing the Javascript in an update for later this year. I don't have a more definitive timeline than that, but we understand your interest in this feature and agree that others would like it as well.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
4 years 10 months ago #65481 by gee
Replied by gee on topic Only load scripts on click
Later this year is not an answer that I can handle with. If someone needs to remove these facebook callbacks, due to privacy too:

Open /components/com_jfbconnect/libraries/provider/facebook.php and add after line 401
$javascript = "";
to clear the variable that inserts the facebook code to the page.

It's just a fast workaround and not update safe but better than nothing for now.
This should be easy for you to change if a user does not use your share feature in a privacy saving way and facebook in a popup.
I hope it will be added sooner than later this year because this topic is urgent in some countries.
The topic has been locked.