iPad Problems

Status
Not open for further replies.

Oelph

Ars Tribunus Militum
2,661
Lately with long pages which take a while to load ill end up scrolling down before it's finished, only to have the page keep jumping back to the top. It's now happening when reading comments, but this is after the page has loaded, as if some sort of refresh timer is kicking in, sending me back to the top of the comments.

It's really annoying and making ars quite frustrating to read from my iPad.
 

dfiler

Ars Tribunus Militum
2,078
This is killing my use of ars! Or at least I no longer read comments on news articles. It is pretty much impossible to read comments when the page scrolls back to the top of the section every few seconds.

While it is apparently a bug in the browser, ars is the only site on which ive seen it happen. Would it be reasonable to turn this off until the problem is fixed?
 

Aurich

Approximate Knowledge of Many Things
43,455
Ars Staff
No, it would not be reasonable, it's an anchor link. It's really basic HTML, and it's entirely necessary. If someone can point out some reason that it's broken on Ars and not somewhere else we can look into fixing it, but until then I guess just submit a bug report to Apple.

Sorry it's frustrating, but I dunno what else we can do about it.
 
A.W.":3jtq4mnd said:
The URL fragment (the part after the # in the URL) is the name of an HTML anchor on the page. The iPad's browser waits until the page is fully loaded, and then jumps back to the anchor, even if you've scrolled elsewhere on the page in the mean time.

But the page IS fully loaded. That's the problem. It keeps jumping back to the top at random intervals, even if you're not touching the screen.

(struck through irrelevant info.)
 

Clintology

Ars Legatus Legionis
15,566
Subscriptor
Aurich is right, it's literally just a page anchor. Your browser waits until its ready and then hops to it. The reason I think this might be happening is because once the DOMContentLoaded event fires, we start loading a few things asynchronously to keep browser performance decent. What I'm guessing is that these things, or even the loading of new images, or anything that causes the layout to reflow or repaint, triggers the jump to the anchor in the URL.

What should be happening is that the browser should cancel that behavior if something has manually scrolled. This doesn't manifest itself anywhere except on the iOS browsers as far as I'm aware, so I'm not sure what I could do besides disabling some of those behaviors for iPads and iPhones.
 
Aurich":16ebd9bb said:
Right. It's an iOS bug, not some fancy HTML.
Just my .02¢ but whether it's an iOS or an Ars bug is irrelevant at this point. It's a problem for end-users.

Pushing it off as an iOS bug does nothing to solve the problem. There are literally dozens (if not hundreds) of techniques to serve up information on a website. If Ars is thinking that Apple is worried about or going to allocate resources to fixing a problem that only seems to happen in this little tiny piece of the online universe than you're fooling yourselves. It's not Apple's problem it's an Ars problem. End-users like me avoid areas where navigation is FUBAR'd.

Then again, that's based on the assumption that Ars wants to maintain or increase traffic. If you don't care, then you don't care. I suspect though that someone in that organization, at some point, is going to look at the traffic logs ask why they get so little iPad traffic in the comments of those sections.

Answering that it's a Apple bug but could've been avoided by using an alternative coding technique is only going to get the web dev's yelled at. Again, just my .02¢
 

Aurich

Approximate Knowledge of Many Things
43,455
Ars Staff
I hear you, but there's just not much to be done at this point. It's a bug, I get it all over the web on my iPad. Apple has to fix it. Anchor links are some pretty basic shit. I get that it's annoying, it annoys me too, file bug reports with Apple. Every other browser on the plant seems to handle an anchor link just fine even if the page is loading.

If we figure out some magic solution we'll do it of course. We use iPads, we like iPads, but our hands are somewhat tied.
 

cc bcc

Ars Praefectus
3,376
Subscriptor
I've seen it elsewhere but only while the page is loading. Only on Ars it keeps jumping back, there must be some timed script forcing this bug to appear somehow..
I simply stopped reading comments on the frontpage when on my iPhone. I hope this will be fixed by Apple, I would even be happy if Ars disabled anchors for iOs devices, but that's probably not possible.
 

Clintology

Ars Legatus Legionis
15,566
Subscriptor
The problem with just "not doing this" on the iPad is that when someone clicks a comment link, whether it be on the homepage or within the article itself, when the reload happens, it will appear to most people that nothing has happened. The url textfield is probably going to be too short to indicate that the URL has even changed and the page will appear just as it did when you first loaded it.

Are people going to know what's happening and even if they do, will they be happy with scrolling through a—potentially long article—that they just possibly worked their way thru, just to get down to the comments. And when they move to the next page of comments, it'll happen all over again.

I would fully expect to receive email rage the likes I've not seen in a while if I simply removed the anchor-action for iPad users.
 

Clintology

Ars Legatus Legionis
15,566
Subscriptor
cc bcc":2twdk3z5 said:
I've seen it elsewhere but only while the page is loading. Only on Ars it keeps jumping back, there must be some timed script forcing this bug to appear somehow..
I simply stopped reading comments on the frontpage when on my iPhone. I hope this will be fixed by Apple, I would even be happy if Ars disabled anchors for iOs devices, but that's probably not possible.

Items on a page can still be loading even if the progress spinner has disappears on iOS. We do a lot of deferred loading of scripts for several widgets on the page (reddit, facebook, etc) that all happens after the DOMContentLoaded event has fired. Most of these load or generate their own subdocuments (iframes) that in turn all have their own ``ready`` and ``DOMContentLoaded`` events. What I'm guessing is happening is that when the main page is done loading (onready/domcontentready), the browser jumps to the anchor, but as the other subdocuments go through their life cycle, something is being triggered in iOS.

What I may or may not try doing is experimenting to see if I can key off a different loading event to minimizing the hopping, I'm not sure if it'll have any effect though.

Another alternative would be to just not do all this deferred loading for iPad users, but the whole page loading scenario will be slower and the browser may possibly lock and stutter-scroll while everything attempts to load at once.
 

A.W.

Ars Tribunus Angusticlavius
6,790
Why don't you just keep a hidden div on the page for comments, and when the user clicks "show comments" you could load the comments asynchronously, stick them in that div, and then scroll to that div via javascript (not an anchor)? It's more complicated, certainly, but it would probably result in a smoother experience in most circumstances (including the iPad).
 
Aurich":3j3hnwqo said:
I hear you, but there's just not much to be done at this point. It's a bug, I get it all over the web on my iPad. Apple has to fix it. Anchor links are some pretty basic shit. I get that it's annoying, it annoys me too, file bug reports with Apple. Every other browser on the plant seems to handle an anchor link just fine even if the page is loading.

If we figure out some magic solution we'll do it of course. We use iPads, we like iPads, but our hands are somewhat tied.
Not to be argumentative but sure there is, change your code.

I've only encountered this problem here on Ars, only on the Comments section of front page articles. It doesn't happen on the main forums, on any other pages here, or on any other site I've visited. I've literally stopped visiting those pages now.

There's isn't only one way to present information on the web. You could fix it tomorrow if you made it a priority. If it isn't, then it isn't. I understand, we all have long to-do lists. :)

To repeat myself, it isn't an Apple problem, it's an Ars problem. Ars is losing page-views because of it. Apple could probably care less.

Do you have special insight that Apple is indeed addressing this? If not, then how long are you wiling to righteously stand by without adapting? Are you hoping that the occasional update (does that even happen monthly?) will fix it? Or will it come with the next major update? That's at least 4-6 months away, maybe more.

What if it isn't addressed then? Then 6 months have passed and you'll probably have to change the code anyway.

It isn't nice to accept but adapting to bugs in others' code is a web dev's lot in life. I mean, look at all the convolutions done just to get IE to work in the recent history.

Again, not trying to be argumentative. Just drawing on my history of fighting the 'man' in my web development past. Best of luck. ;)
 

Aurich

Approximate Knowledge of Many Things
43,455
Ars Staff
JungleJoe":3spbkb6b said:
Aurich":3spbkb6b said:
We do that already for our subscribers.
I have a basic subscription. Maybe I'm missing it or does that not qualify?
Yeah, basic sub doesn't do any of the new features, it doesn't even exist anymore, we just grandfathered in all the old users.
 
Aurich":1nmems6y said:
I hear you, but there's just not much to be done at this point. It's a bug, I get it all over the web on my iPad.

At the risk of beating a dead horse, I just wanted to add that I browse extensively on my iPad, and the comments on Ars articles are the only place this has ever occurred. I really don't mean to insult you by being skeptical, but because this only happens on Ars, I can't help but think that it really is just something that you guys are doing wrong. You guys do a great job overall.

Can you provide an example of another site that does the same thing?
 

Aurich

Approximate Knowledge of Many Things
43,455
Ars Staff
Guys, can you read the entire thread please, we've already explained what's happening (deferred loading of content to keep our pages faster). It's not a bug, it's by design, and it keeps Ars running smoothly for millions of people. Every other browser handles it just fine, as they should, it's not some kind of incredible voodoo to handle an anchor link.

I get that this is frustrating, we'll explore solutions, but this is a genuine iOS bug, not something "wrong" with Ars.
 
Status
Not open for further replies.