Infinite Scroll

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Infinite Scroll
« Reply #105, on October 3rd, 2013, 12:50 AM »
Can't believe it, I actually fixed my test page with broken embeds and all that crap...!!

I started going into complicated stuff, for several DAYS of course, and then I fixed it all by reverting all of my changes, and doing a simple test.
I'd completely forgotten that swfobjects was hard to load from an Ajax page -- and ultimately, this is what an infinite scroller is; but internally, Wedge considers infinite scroll pages as 'normal' pages, so that it gets the proper rendering. That's a bit of a wrong thing to do, especially because in some places, infscroll needs the Ajax code path (e.g. embeds), and in others, it needs the non-Ajax code path. Very funny, really...
So, I just double-checked, and now all Flash embeds should properly work in infinite scroll pages, and thus NOT stop the new page from loading, and my friends, that is a frigging victory!

I also rewrote many things in the infscroll process, so that it sends MUCH less data per request; you can save up to 80% of the page data, if there's not much content in the next page. Otherwise, it's between 20% to 50%. Also executes a bit faster.

Tomorrow, I'm gonna give a try at pre-fetching the next page while marking the previous page (not the current page) as read, to ensure that one can safely stop reading through an infinitely scrolling page, and later come back through an Unread link, and find themselves on the page they were currently viewing at that point (i.e. last 15 posts in the infinite scroll page), which is cool. Well, I'm not very familiar with the markread code, so every little victory like this is good to me.

Phew... Then, it means I can keep the current implementation. And that it's going to become much more useful. :)

MultiformeIngegno

  • Posts: 1,337
Re: Infinite Scroll
« Reply #106, on October 3rd, 2013, 01:02 PM »
I can't see the like button from my phone (Wireless theme) but I like this A LOT!! Compliments :-))

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Infinite Scroll
« Reply #107, on October 3rd, 2013, 05:59 PM »
It's not my local version, so I'm guessing you completely missed on this feature before, right..? ;)

Also, normally Wireless has a Like button, actually I'm in Wireless right now... :^^;:

Okay, today I've been rewriting it again, attempting to solve its main drawback, i.e. the sometimes long Ajax loading times. Instead of wheeling several times past the page end, I'm rewriting to adopt a more 'classic' method, i.e. prefetching the page while you're reading the posts, but with a trick to, hopefully, keep usability at its best:

- first of all, Wedge will determine if you've been scrolling past a certain point (3 pages before the end of the page).
- if yes, it'll prefetch the page. Mark the topic as read up to the post BEFORE the new page being prefetched. (Meaning, if you come back later through non-infinite scrolling, you'll be redirected to the last 'safe' page that we know you've been through, it's important to me...)
- then, it'll test whether you've attempted to scroll past the end. I'm no longer waiting for an extra wheel roll, because at this point, it's likely that the page is already in cache, so there's no reason not to show it. Also, I'm not showing it as soon as it's available to show, because I want to give users the opportunity to interact with the footer.
- if the page newly shown is the last in the topic, mark the topic as read.
- I'm considering showing a 'Click for more posts' banner at the bottom of the page when more posts are available to show; this would make it possible to show the next page without ever 'knowing' that you have to scroll past the end, I guess...

Unfortunately, it's not working right now, I'm having some difficulties, but I've been fighting difficulties all day, and I've made progress, so... Whatever!

MultiformeIngegno

  • Posts: 1,337
Re: Infinite Scroll
« Reply #108, on October 3rd, 2013, 06:30 PM »
Oh I see the problem with the like icon, it's at the edge of the screen and you can't zoom out:h ttps://www.dropbox.com/s/n58twtqluflwmi7/Foto%2003-10-13%2018%2028%2058.png

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Infinite Scroll
« Reply #109, on October 3rd, 2013, 09:05 PM »
It's not Wireless...?!

MultiformeIngegno

  • Posts: 1,337
Re: Infinite Scroll
« Reply #110, on October 4th, 2013, 04:23 AM »
I assumed I had Wireless set by default when I was browsing from mobile..

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Infinite Scroll
« Reply #111, on October 4th, 2013, 07:29 AM »
Unless you changed the skin manually.

Why didn't you ever report the bugs of a severely broken skin, otherwise? I assume you would have..?

MultiformeIngegno

  • Posts: 1,337
Re: Infinite Scroll
« Reply #112, on October 4th, 2013, 03:00 PM »
Quote from Nao on October 4th, 2013, 07:29 AM
Unless you changed the skin manually.

Why didn't you ever report the bugs of a severely broken skin, otherwise? I assume you would have..?
It looked better some days ago!

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Infinite Scroll
« Reply #113, on October 4th, 2013, 03:55 PM »
Well, I'm just surprised you're getting that viewport size. In non-Wireless, normally it shouldn't adapt to your screen, it's got a set size.
Anyway, infinite scrolling is available in Wireless, so it shouldn't be a problem...

I've finally stabilized my local codebase for inf scrolling, BTW.

And it's super-cool now. :) Will try to commit soon, but I've got many changes to sort through, as often.

MultiformeIngegno

  • Posts: 1,337
Re: Infinite Scroll
« Reply #114, on October 4th, 2013, 04:37 PM »
I checked in my settings and I have Wireless set!! :o

Nao

  • Dadman with a boy
  • Posts: 16,082

MultiformeIngegno

  • Posts: 1,337

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Infinite Scroll
« Reply #117, on October 4th, 2013, 11:55 PM »
Would it be due to your upgrade to v7..?
Posted: October 4th, 2013, 10:13 PM

I'm sure it's the OS version. Definitely.
The difference is that iOS 7 Safari supports flexbox, so I enabled it by default for Safari 7, but... Well, if the result looks like this, their implementation is definitely buggy, I'd say...!

The one problem I have, is that I don't remember using flexbox in Wireless, but perhaps it's really, really fucked up.
Since flexbox works in IE 10, IE 11, Chrome and Firefox, I'm assuming I 'got it right', and iOS has to behave. If it doesn't, I'll have to disable flexbox on Safari, which I really wouldn't mind doing, since I have no interest in Safari at this point.

Anyway...

Anyone else with Safari 7 around..? I tried browserstacks and browsershots, but they only provide Safari 6 screenshots, argh...
Re: Infinite Scroll
« Reply #118, on October 5th, 2013, 08:46 AM »
Quote from Nao on October 3rd, 2013, 05:59 PM
It's not my local version, so I'm guessing you completely missed on this feature before, right..? ;)
Lol...
I re-read the early posts. Obviously I should have, before suggesting that... ;)
Re: Infinite Scroll
« Reply #119, on October 5th, 2013, 01:15 PM »
So... What do you guys think about the rewrite..? Like if you do! :P

From what I can see, it works better than the previous version, but it has one definitive drawback: it executes the new page in the background before showing it, and it 'stops' my page from scrolling for a second or so. I don't know if it will happen in any browser, this is what I'm getting on this very topic in Wireless on my Windows 7 rig under Chrome 30.