pklauzinski / jscroll

An infinite scrolling plugin for jQuery.

Home Page:http://jscroll.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

delay as option ?

opened this issue · comments

Is there a possibility to add a delay as an option?
Before displaying content in seconds or milliseconds.

thanks for read.

@gitrey10 can you provide a use case?

@pklauzinski I too would like to see this feature. The loading and displaying of content happens in a millisecond and basically negates the need for infinite scroll because most end users dont even know it happened. For example its mostly the same as just displaying all content instead of loading as you scroll.

@stardothosting That depends on the speed of your server. But yes, if you want the user to actually see the new content loading rather than it being immediate or unnoticeable, a delay option could be implemented. I wonder how common a use case this is, however; and why a user would care to see new content loading rather than just continuing to scroll for a seamless experience.

Additionally, you can use the loadingFunction and callback options to add a delay before displaying the response, if desired. That may make more sense in this case since I don't believe this is a common requirement.

See the following options documentation:
loadingFunction
callback