Infinite scroll vs Socialite
-
Hello,
First of all thank your for your wonderful script.
I have done many research but without success.
I use the infinite scroll plugin in my site. My articles are loaded correctly. Nevertheless, in each article, I use some javascript code (the first is used for voting and the other one for displaying your social buttons).In order to load correctly those social buttons, I re-use the javascript of your scroll demo page (https://socialitejs.com/demo/scroll.html). The one where your create this variable :
var articles = $(‘article.text’), socialised = { }, win = $(window), updateArticles, onUpdate, updateTimeout;Before activating the infinite scroll plugin, the buttons were loaded correctly. Then I activated the infinite scroll plugin and I got this error in the console :
FB.getLoginStatus() called before calling FB.init().
The javascripts are no longer loaded.
However, there is a callback area in the plugin settings but I don’t know exactly what to put. I tried to copied/pasted my javascript code but without success.
You can take a look of the problem here (just scroll a little) : https://bit.ly/XjfAI2
- The topic ‘Infinite scroll vs Socialite’ is closed to new replies.