News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Automatic loading of new posts/topics

Started by Petter B, March 07, 2013, 02:07:42 AM

Previous topic - Next topic

Petter B

When watching the topics of a board, recent, unread... in Tapatalk 2, new topics loads automaticly when you have scrolled to the bottom of the page. I have also seen this feature in webshops. Would it be possible to implement it in the forum? It would be nice and maybe also save some traffic when not reloading a new page by pressing next page, just fetching new topics.


All Colours Sam

There is a mod floating around here, do a search for "infinite scroll". Def mod material.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Kindred

yes... that would potentially KILL the server on any active forum.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

emanuele



Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Kindred

like any "autoload" option....
if 25 people are doing it... no worries, if 250 people are doing it, that's a load...  if 600 people are doing it, that is a heavy load.


In order to autoload, it would either need to provide ALL possible messages at the time of the initial page load or with would beed to query the database each time the user browsed to the end of the page....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

All Colours Sam

False.

You ain't messing with the queries, all you are doing is changing the presentation, the way SMf fetches the messages remains intact.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Kindred

hmmm....   really?

I think we are perceiving this request in two different ways.
However, if your way works without extra load, then it's all good. :)

(Still mod material, though, I agree with that) :)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor

Well, ultimately what we're talking about is triggering the next page of results being queried when the user gets to the bottom of the page without them having to hit a button. Potentially a marginal extra load but not a significant one in most cases.

Emanuele did a mod for this for topics already ;)
Holder of controversial views, all of which my own.


All Colours Sam

There is no different ways.

SMF already loads the next batch of messages when someone clicks on any of the pagination links, all infinite scroll does is saving the user from clicking that link. All you need to do is strip all other data and only retrieve messages.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Kindred

suki, huh ???

of coruse there are differnet ways to PERCEIVE requests.

as evidenced by the fatc that I, obviously perceived something very different in the request than you did, hence my statement and your correction. :P
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

All Colours Sam

.___.

Whos talking about perceptions?

There is no extra server load, period.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Arantor

Actually, that's not strictly true. If you're autoloading, you're loading things earlier than you would otherwise, sometimes of which it may not be desired, meaning you might accidentally make some more requests - but the amount of requests extra is likely to be barely measurable.
Holder of controversial views, all of which my own.


All Colours Sam

Quote from: Arantor on March 07, 2013, 01:20:50 PM
Actually, that's not strictly true. If you're autoloading, you're loading things earlier than you would otherwise, sometimes of which it may not be desired, meaning you might accidentally make some more requests - but the amount of requests extra is likely to be barely measurable.

Yes, autoloading can speed things up, however, under the context of "autoloading will kill your server" you can safely assume thats not true.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Arantor

Yup.

I'd also note that there are other side effects attached, like having to fix the URL displayed to users, amongst other things.
Holder of controversial views, all of which my own.


Petter B

Quote from: Suki on March 07, 2013, 08:17:20 AM
There is a mod floating around here, do a search for "infinite scroll". Def mod material.

Thanks, but the only thing I found was a link to http://www.infinite-scroll.com ? Is that what you meant?


emanuele



Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Advertisement: