Infinite Scroll

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Infinite Scroll
« Reply #15, on February 11th, 2013, 07:05 PM »
The same issues present themselves anyway even with paginated content.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

MultiformeIngegno

  • Posts: 1,337

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Infinite Scroll
« Reply #17, on February 11th, 2013, 07:33 PM »
Yes it does, that's the point.

You've put a permalink into my post. What happens if that post is deleted? Or merged with another thread? Or moved to another thread?

The permalink will then refer to the topic as a whole, though IIRC it will at least likely get the right page of the topic (but it will point to the top of that page)

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Infinite Scroll
« Reply #18, on February 22nd, 2013, 09:27 AM »
Want me to get started on this, guys .?

MultiformeIngegno

  • Posts: 1,337

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Infinite Scroll
« Reply #20, on June 6th, 2013, 10:17 PM »
So, a bit late, but just to tell you guys -- I've started working on this... ;)

This is only for topics, nothing else.
Right now, what's happenin' is that it's working (yay). I have yet to deal with URLs, though, but it seems to be doing fine otherwise.
It won't work on mobile (for now), because I'm doing my tests on the mousewheel event, rather than scroll. Why? Because the scroll event doesn't trigger if you try to scroll beyond the end of a page, it only triggers if there's movement in the page. The mousewheel event thus allows me to 'cancel' any Ajax loading until a few more wheel attempts, indicating that we 'really' want to load the next page of the topic, and that's it..

Anyway, pretty happy with what I've done, but it's no fun to test when you have a huge debug log at the bottom of the page, it means I don't get to see the effect of adding posts... :lol:

MultiformeIngegno

  • Posts: 1,337
Re: Infinite Scroll
« Reply #21, on June 6th, 2013, 10:21 PM »
Would love to see it in action :D

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Infinite Scroll
« Reply #22, on June 6th, 2013, 11:22 PM »
And... Here we go!! ;)
Posted: June 6th, 2013, 11:21 PM

And it doesn't work, lol. Gimme a minute to check it...
Posted: June 6th, 2013, 11:22 PM

Voilà, should work now!

MultiformeIngegno

  • Posts: 1,337
Re: Infinite Scroll
« Reply #23, on June 6th, 2013, 11:57 PM »
I really really like it!! :D
I like also the fact that it takes a few more scrolls down when you arrive at the end of the page to actually have it activated.

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Infinite Scroll
« Reply #24, on June 7th, 2013, 01:43 AM »
Yup, as intended...
Although I'd really like to make it work on mobile.

Okay, I'm over bed time by 2 hours, so it's time to go... Please guys, give some feedback... ;) I'm surprised only Lorenzo is interested in this..?

live627

  • Should five per cent appear too small / Be thankful I don't take it all / 'Cause I'm the taxman, yeah I'm the taxman
  • Posts: 1,670
Re: Infinite Scroll
« Reply #25, on June 7th, 2013, 01:46 AM »
Quote from MultiformeIngegno on June 6th, 2013, 11:57 PM
I really really like it!! :D
I like also the fact that it takes a few more scrolls down when you arrive at the end of the page to actually have it activated.
+1 and +1
A confident man keeps quiet.whereas a frightened man keeps talking, hiding his fear.


agent47

  • Now I see the changes you're talking about.
  • Posts: 115
Re: Infinite Scroll
« Reply #27, on June 7th, 2013, 08:15 AM »
I love it, I really do.
I know as of now this is supposed to work only for topics. However it also seems to be taking effect inside boards (though, not really). Inside boards the page number keeps moving forward though content from the next page isn't brought up. Just thought I'd let you guys know.

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Infinite Scroll
« Reply #28, on June 7th, 2013, 12:03 PM »
Topic list, yeah, I wanted to give it a try too, so I didn't build in in-topic restrictions to my code; but in the meantime, I decided to focus on topics only, and I forgot to add a restriction.

Also, there's a huge problem with this feature, and I'm surprised no one noticed it. I actually didn't reproduce it until a few minutes ago, and I barely slept last night because I kept thinking this must be buggy!, and yes, unfortunately it was...
Thing is, the JS is broken in new posts added through infinite scrolling.
Reason is that the new page's JS is thrown away, instead of added to the current footer. I'm trying to consider things to fix that, but if I can't, it means I can't have both 'optimized-bytesize' mini-menus and infinite scrolling in Wedge, and I'll have to rewrite mini-menus, or something...

Hard day ahead... -_-
Posted: June 7th, 2013, 08:31 AM

So... I tried multiple solutions for this problem, and it didn't work.
Anyway-- I'm currently rewriting the code, nearly from scratch, and this time it should work. It's not as elegant as the current implementation, but what matters is that it works, hell...

MultiformeIngegno

  • Posts: 1,337