Page 1 of 1
How can I set up lazy or infinite scroll?
Posted: Tue Mar 10, 2020 11:32 am
by kreon81
Hi,
Can someone please write down how do i set up the infinite scroll or lazyload?
I've read this before but it doesn't really work.
https://smartcj.com/wiki/doku.php?id=ne ... _and_so_on
Thank you!
Re: How can I set up lazy or infinite scroll?
Posted: Tue Mar 10, 2020 11:36 am
by admin
Hi,
I'd like to help but "doesn't work" doesn't describe an issue in details
Re: How can I set up lazy or infinite scroll?
Posted: Tue Mar 10, 2020 11:43 am
by kreon81
Thank you!
I really don't know how to set it up. For example, where should I copy this? var P_BASE = '/?force_template=index_scroll_ajax&page=';
In head?
Re: How can I set up lazy or infinite scroll?
Posted: Tue Mar 10, 2020 11:55 am
by admin
I see, well, yes, you can use it there, depends of your templates ..
Unfortunately, in most cases JS is not something like a "copy\paste thing", those JS libs provided as-is and are not a part of the script because there's no way to control how you implement your templates.
Basically you need to understand what you do when you add it, because it's a part of you template, not a separate thing like a pop-up that can be used as "copy and paste it into <head tag".
So there are 2 ways:
1. free: you read about JS, download, add into your template and use those libs for free
2. You pay somebody to it for you