META: UFR keeps crashing on Chrome mobile

Submitted by Cousin Larry on October 1st, 2021 at 9:47 AM

I noticed with both UFRs this week that my Chrome window kept crashing as it was opening the page.  Is anyone else experiencing this?  I’ve also noticed there’s a lot of videos that are suddenly coming up as auto-play whereas they weren’t before, and I’m thinking that’s causing issues for me.

Seth

October 1st, 2021 at 11:35 AM ^

No idea what's causing that. The site is made of Drupal. Might be an issue with gfycat though. In general Safari problems are 99% Apple doesn't care problems, not we don't care problems. They leave gaping holes and everyone else has to program around that.

dragonchild

October 1st, 2021 at 2:20 PM ^

I use Firefox on iPhone and it happens to me as well.  (Also happens in Safari for me.)  The page constantly re-loads and eventually the browser crashes.  I have to hard restart the phone to get it to work, but that's a temporary solution.

When it happens across multiple platforms (Chrome, iPhone) and browsers, it's usually the site.  Usually.  However, I have a (speculative) explanation.

In my time troubleshooting mobile issues for a CDN (always a fun* time), I would occasionally see failing HTTP requests originating from the browser.  Not specific to MGoBlog, but it's quite common.  I mean when you load a site, only the initial hit is triggered by the end user.  Everything else should be due to embedded content (typically confirmed by the presence of the "referer" header).  Ah, but mobile browsers have other ideas.  They have various means of conserving device resources and bandwidth.  Sites do too, but some mobile optimizations are baked into the browser.  One optimization that seems particularly impacted by UFR is the piecemeal page load, which is a common front-end means of conserving resources.  These browser-initiated requests tend to be more fickle than end user or embedded content hits, and there's nothing either the end user or site owner can do to prevent them.

Mind you, this is an educated guess.  I can't actually troubleshoot the issue because the failure points are as opaque as what's going on in Schembechler Hall.  HOWEVA.  All other MGoBlog features work fine, at least for me, and the one thing they all have in common that does not apply to UFR is relatively short page length.  (I presume there's nothing special about how the UFR page is put together on the back end.)  Any mobile browser I use (re-)loads the page piecemeal, something they don't do (or need to do) as much for shorter columns.  Whatever they're using also seems buggy as hell, because somewhere along the line the cache or memory gets corrupted and the browser starts an infinite reload loop.

Suffice to say, they (as in Apple, Mozilla, Google, etc.) are not going to do anything about it.  Seth could give the Drupal community a try, but I can't speak for the odds he'll get a response.  It might be gfycat, but when I see the page load start to break down, it doesn't seem to be having problems with the images.  Also, when Ace was around, I don't remember seeing One Frame at a Time breaking my browser in the same way.  So, my first guess -- which may not be better than anyone else's -- is the piecemeal page load optimization is getting some kind of overflow by the sheer size of the HTML itself.  One possible solution is to make the UFR table a separate page and link to it, but that's probably something to consider/test during the offseason.

EDIT:  One thing to note about gfycat and autoplay is that it's something the piecemeal load optimization has to track across the whole page.  To conserve resources, the browser only autoplays media that's displayed on the screen (this is also to prevent cacophony when a page has multiple video clips), but to do that, it has to parse the entire page HTML so it knows where you're at.  It's trying to only load content you're viewing, but it also has to know where you are, so while it can delay loading the media content, it can't do anything about the voluminous HTML.  Usually the media is heavier (resource-wise and bandwidth-wise) than the HTML, but UFR is a glaring exception.  This is not the fault of gfycat, per se.  Browsers need to stop overriding autoplay settings (then they wouldn't need to parse the full page), but they won't do that, so again, I think the page itself needs to be broken up.

*it was not fun

Ghost of Fritz…

October 1st, 2021 at 9:57 AM ^

In general the site does not work well anymore.  Takes forever to load.  Many other problems.  Seems like no one is paying attention and it is running off of a Commodore 64.  Joking aside, it works worse that the internet worked back in the early dial-up connection days...

Gulogulo37

October 1st, 2021 at 10:42 AM ^

I haven't had that problem, but on my desktop, the gifs skipped a lot. Even after running through a few times. Weird thing was when I switched the gigs to HD they actually worked better. Took a second to load but then were fine.

Also, if I make a comment on any front page article, it takes me right to the post I just made. On the board it still always kicks me to the last page. It would seem there's already a fix for this?

Seth

October 1st, 2021 at 1:21 PM ^

For the record here's the embed code I use for gfycats:

<iframe src='https://gfycat.com/ifr/NAMEOFVIDEO?autoplay=0' frameborder='0' scrolling='no' hd='1' width='100%' height='405' allowfullscreen></iframe>

the autoplay=0 code is supposed to turn off autoplay, which is supposed to prevent high load times, but I think some browsers are skipping autoplay checks lately because they're mostly used to prevent video ads from loading.

VikingDiet

October 1st, 2021 at 1:33 PM ^

My guess is that it is the gfycat stuff. Every instance of it crashes in the Brave browser on Android (just shows a death face).

I really like the gfycat stuff, a lot more than YouTube clips (especially when they are referencing a timecode within the video... then keep playing a lot more stuff), but it is not actually a GIF and introduces the same performance problems as having multiple YT videos embedded and all playing at once.

long4wind

October 1st, 2021 at 6:14 PM ^

UFR’s crash my Safari on iPad all the time. I can’t read them any more on that device. Previously I could open them, but they were excruciatingly slow. 

I think it’s due to the massive size of the page. I ran a performance test using WebPageTest.org. The results were not good. 

Page Load Time: 45 seconds

Total Page Size: 11 megabytes

569 requests 

Seth, you might want to consider ways to reduce the size and complexity of these pages. Or may try breaking them up into 2 or 3 posts to reduce the size. Another idea is to load the comments in a separate thread. 

Things definitely got worse when you went to using GiffyCats instead of YT videos. But I suspect that is the straw that broke the camel’s back.