Skip Navigation

[Resolved] Infinite scrolling tolerance

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 5 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 5 replies, has 2 voices.

Last updated by Christian Cox 5 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#631442
3.png
2.png
1.png

Tell us what you are trying to do?
Hi, we have buyed theme with Toolset.
We try to set up "Infinite scrolling tolerance" to load profiles in advanceр before user reach "triger"/end of visible profiles.
We set "Infinite scrolling tolerance" to 1400 /px/ but still need to wait when user reach "triger"/end of visible profiles.
screenshot: hidden link
screenshot2: hidden link
In code I see that: ..."infinite_tolerance":"0",...
screenshot3: hidden link
How can we set "Infinite scrolling tolerance" to load profiles in advanceр before user reach "triger"/end of visible profiles.
Thank you

Is there a similar example that we can see?
Yes, at hidden link

What is the link to your site?
hidden link

#631668
Screen Shot 2018-04-04 at 3.56.18 PM.png

Hi, you can increase the number of pages cached and increase the number of items per page, but there will always be some delay before the next set of results is appended to the list. The code snippet you included shows infinite tolerance = 0 in the code, but I see this is for View ID 3385. View 3385 is nested inside each result, but I cannot tell what it's used for - it seems to be empty in each result. I'm attaching a screenshot of the main View, which is ID 3902, and I can see the tolerance is 1300. Does that match what you see in wp-admin for the main View?

#631844

Hi Christian and thank you for your answer.
There are 2 main views on Homepage:
for Premium profiles - view_id=3902
screenshot: hidden link
and for other accounts (at the bottom)- view_id=870
screenshot: hidden link

#631952

Okay that makes sense, because your screenshot shows 1300 as the tolerance for View 3902, and this matches what I see on the front-end in the code. You can increase the number of pages preloaded in this View (pages to preload: 5), or increase the number of items displayed per page of results. This might help a little bit, but there will always be some delay before the next set of results is appended to the list.

#632265

Thank you for your answer Christian.
How they make it:
hidden link

#636897

I can see that their data comes from socket.io and not WordPress, and I can see that the AJAX data updates are provided in JavaScript object form and not HTML. Then that JS object is run through a template to produce the updated HTML items and injected into the DOM. It's quite sophisticated, but I'm not sure if it's custom-built or if it's some other platform.

The forum ‘Types Community Support’ is closed to new topics and replies.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.