How can I set up lazy or infinite scroll?

Post Reply
kreon81
Posts: 10
Joined: Mon Aug 12, 2019 12:00 pm

How can I set up lazy or infinite scroll?

Post 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!
admin
Site Admin
Posts: 37234
Joined: Wed Sep 10, 2008 11:43 am

Re: How can I set up lazy or infinite scroll?

Post by admin »

Hi,

I'd like to help but "doesn't work" doesn't describe an issue in details
Don't forget to run script update
kreon81
Posts: 10
Joined: Mon Aug 12, 2019 12:00 pm

Re: How can I set up lazy or infinite scroll?

Post 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?
admin
Site Admin
Posts: 37234
Joined: Wed Sep 10, 2008 11:43 am

Re: How can I set up lazy or infinite scroll?

Post 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
Don't forget to run script update
Post Reply