V Scotch
asked 7 years ago

Hello! I’m using DW Store theme on my website aerobiletik.ru. The front page uses infinit scroll pagination. On each post on that page I have a 3rd party rating system. In order for those star-ratings to be showed up I have the following js code in my footer file:
 

cackle_widget = window.cackle_widget || [];
cackle_widget.push({widget: ‘ReviewRating’, id: 49482});
(function() {
var mc = document.createElement(‘script’);
mc.type = ‘text/javascript’;
mc.async = true;
mc.src = (‘https:’ == document.location.protocol ? ‘https’ : ‘http’) + ‘://cackle.me/widget.js’;
var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(mc, s.nextSibling);
})();

 
But when I scroll to the buttom of the page the addtional elements getting added without those star-ratings. I understand that I probably need to run the above js code one more time after more posts got inserted to the front page by infinite scroll so I need to catch the event when infinitscroll finished to load more posts and then run my js code again but I can’t figure out how can i catch the end of Infinitscroll event on your theme.

1 Answers
DominicStaff
answered 7 years ago

Please send me username & password of your site for further checking.

Powered by DW Question & Answer Pro