AI Assistant
Notifications
Clear all

Issue With Comments Permalink

4 Posts
2 Users
0 Reactions
2,624 Views
 Will
(@will)
Member Customer
Joined: 8 years ago
Posts: 10
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#2308]

 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



   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 8 years ago
Posts: 6645
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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. 

80 scrolling point

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'));
           }
       }
   }
change value


   
ReplyQuote
 Will
(@will)
Member Customer
Joined: 8 years ago
Posts: 10
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Thanks, I don't have that option unfortunately? 

scroll


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 8 years ago
Posts: 6645
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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? 



   
ReplyQuote
Share:
Scroll to top