I'm using lazy load for comments and when you link to a comment that doesn't load initially it will show briefly before disappearing. An example: https://www.doctorofcredit.com/does-funding-a-bank-account-with-a-credit-card-count-as-a-purchase-or-cash-advance/#comment-581859
Hi @will,
wpDiscuz "Lazy load comments on scrolling" working logic is that it stats to load comments when the scrolling point reaches 80% of screen height as shown in screenshot.
As your web page content is large and you have too many comments therefore this issue takes place.
I suggest changing scrolling point value to 90%. In wpdiscuz/assets/js/wpdiscuz.js find the following function change red mark code 80 to 90.
function wpdiscuzScrollEvents() {
var wpdiscuzHasMoreComments = $('#wpdiscuzHasMoreComments').val();
var scrollHeight = $(document).height();
var scrollPosition = $(window).height() + $(window).scrollTop();
if (scrollHeight && scrollPosition) {
var scrollPercent = scrollPosition * 100 / scrollHeight;
if (scrollPercent >= 80 && isRun === false && wpdiscuzHasMoreComments == 1) {
isRun = true;
wpdiscuzLoadComments($('.wc-load-more-submit'));
}
}
}
Thanks, I don't have that option unfortunately?
Hi @will
Could you please send admin login details to support[at]gvectors.com email address to allow us find this function and solve your issue?