-
AuthorPosts
-
internetix Friend
internetix
- Join date:
- January 2012
- Posts:
- 27
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 4 times in 1 posts
October 3, 2012 at 12:58 pm #181157Quick question:
Is there any way to “adjust” infinite scroll into loading next set of articles a little sooner ?
Currently the infinite scroll will load the next “page” when the user will hit current page bottom with the scroll bar but this is kinda annoying because you have to wait for the next set of articles be queried and displayed.
Is there anyway to make the infinite scroll load the next set a little sooner ?
Let’s say when the user is at certain procent from current page bottom … or another solution.This will create a better user experienced since by the time the user will reach current page bottom / set of articles the next one will be already loaded thus obtaining a true infinite scrolling without any delay. 🙂
seaneo Friendseaneo
- Join date:
- December 2009
- Posts:
- 421
- Downloads:
- 4
- Uploads:
- 49
- Thanks:
- 244
- Thanked:
- 12 times in 1 posts
October 3, 2012 at 8:07 pm #469047Totally agree , this would be nice for the user! By the way I think the infinite scroll is called “lazyload” for these purposes.
internetix Friendinternetix
- Join date:
- January 2012
- Posts:
- 27
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 4 times in 1 posts
October 4, 2012 at 4:14 am #469079Lazyload is a different thing that will delay loading of images (will load only the images in “view range”)
Infinite Scroll provides that “infinite” scrolling effect loading pages in “real time”. (i have a problem with that “real time” because is not actually a “real time” loading experience :laugh: )
I think it can be fine-tuned to load the next page and quering next set of articles a little bit sooner.
There is no point of having the user wait for next “page” if we can “trigger” next-page load a little sooner.
As of now infinite scroll is nice but you have to wait each single time for next page / articles to be loaded which is annoying
Let’s take advantage of the natural “wait” time that user will spend on reading currently loaded articles and load the next page a little sooner so by the time the user will reach the last loaded article, next ones will already be displayed.
internetix Friendinternetix
- Join date:
- January 2012
- Posts:
- 27
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 4 times in 1 posts
October 4, 2012 at 4:48 am #469086Ok … i found the solution. 😀
Will post it in a little bit after more testing.
internetix Friendinternetix
- Join date:
- January 2012
- Posts:
- 27
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 4 times in 1 posts
October 4, 2012 at 5:02 am #469088It’s alive ….. :laugh:
After digging into the core of wall javascript files i noticed that the infinite scroll code si found inside wall.js file
So, open wall.js found inside the template “js” folder.
Inside wall.js search for
extraScrollPx: 100,
* should be around line 138
Right after it create a new line with the following parameter
bufferPx: 650,
Adjust the value for your needs (increase it or decrease it) – a higher value means that the infinite scroll will be triggered sooner.
We just need a confirmation from somebody that this is the correct solution.
So far … it works perfect for me. :p
arucardx Friendarucardx
- Join date:
- July 2010
- Posts:
- 346
- Downloads:
- 0
- Uploads:
- 10
- Thanks:
- 21
- Thanked:
- 138 times in 104 posts
October 4, 2012 at 6:22 am #469091According to infinite scroll’s documentation. That is indeed the correct method.
bufferPx : 40,
// increase this number if you want infscroll to fire quicker
// (a high number means a user will not see the loading message)
// new in 1.2
// default: 40You can also use this in conjunction if you need to.
extraScrollPx: 50,
// number of additonal pixels that the page will scroll
// (in addition to the height of the loading div)
// animate must be true for this to matter
// default: 150arucardx Friendarucardx
- Join date:
- July 2010
- Posts:
- 346
- Downloads:
- 0
- Uploads:
- 10
- Thanks:
- 21
- Thanked:
- 138 times in 104 posts
October 9, 2012 at 10:29 am #469528Just want to add some feedback on this “fix” after some testing. I’m not sure how this bufferpx is calculated on mobile devices, but on the iphone / android phone it’s clearly not working there. But on the desktop & tablet, the bufferpx does works. Could be a landscape vs portrait thing.. or some device limitation.
Anyway, you don’t want to set the value too high because it could cause the tablet to load infinite scroll twice almost simultaneously due to insufficient content height. The result is rather strange when that happens. I’m unclear at this point whether it’s because the emulator is lagging or the script bugged. But I’ve encountered jamming where lazyload simply doesn’t load the images for new articles loaded by infinite scroll and in some cases, I encounter a internal 500 error for that session. (Tablet only, Desktop has no issues but that might be because my resolution is high)
Reducing the bufferpx from my initial value of 1000 to 250 resolves the issue. So for anyone attempting to set a high value for this to imitate pininterest, you might want to look into this strange behavior =)
xumbrella Friendxumbrella
- Join date:
- June 2010
- Posts:
- 100
- Downloads:
- 0
- Uploads:
- 10
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
April 7, 2014 at 1:35 pm #529785<em>@arucardx 341593 wrote:</em><blockquote>Just want to add some feedback on this “fix” after some testing. I’m not sure how this bufferpx is calculated on mobile devices, but on the iphone / android phone it’s clearly not working there. But on the desktop & tablet, the bufferpx does works. Could be a landscape vs portrait thing.. or some device limitation.
Anyway, you don’t want to set the value too high because it could cause the tablet to load infinite scroll twice almost simultaneously due to insufficient content height. The result is rather strange when that happens. I’m unclear at this point whether it’s because the emulator is lagging or the script bugged. But I’ve encountered jamming where lazyload simply doesn’t load the images for new articles loaded by infinite scroll and in some cases, I encounter a internal 500 error for that session. (Tablet only, Desktop has no issues but that might be because my resolution is high)
Reducing the bufferpx from my initial value of 1000 to 250 resolves the issue. So for anyone attempting to set a high value for this to imitate pininterest, you might want to look into this strange behavior =)</blockquote>
Hi I was wondering if any one ever resolved the above? I am having issues when the lazy load or infinite scroll is “loading the next set of posts” for me this action is taking around 15 secs which is very high and will result in lost users very quickly. It is also strange that my site (with clear cache) takes around 6 seconds to load. I find this strange because in this instance it loads the whole page plus 10 posts, when lazy load kicks in it is only loading the next 10 posts but is nearly 3 times slower!
I have all my js and css minified, I am fully gzipped and using a CDN and I still experience this lag… could it be to do with a buggy script?
Has any one else experienced, explored this issue?
thanks.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
erickpaulino Frienderickpaulino
- Join date:
- May 2013
- Posts:
- 78
- Downloads:
- 12
- Uploads:
- 25
- Thanks:
- 19
- Thanked:
- 3 times in 1 posts
June 14, 2014 at 10:10 pm #538918Hello,
I am using the auto infinite scroll on JA Magz, and now I am trying to fine tune the load of the set of related articles but changing the parameters of extraScrollPx and bufferPx on templates/ja_magz/js/script.js doesn’t seem to make no difference
The loading is being triggered too soon. I would like to trigger the loading when the user is almost at the end of the page.
Can you help me?
Thank you,
Erick
-
AuthorPosts
This topic contains 10 replies, has 6 voices, and was last updated by erickpaulino 10 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum