App Freezes while loading link

Reddit-to-go is my favorite win8 reddit app by far. However the one thing that really irks me is that when you click on a story while the link loads in the preview pane you cannot select a new story. You can scroll the list and tap but nothing will load until the previously selected story is fully loaded. Which then if you have tapped a new story all your taps will instantly be recognized, thus selecting new links to load. This becomes a problem on a slow connection, large website or loading a large image.

The app is still fantastic don't get me wrong, it's just really frustrating when the app freezes like this. Is this something that is possible to fix? Will it be fixed?

Posted Mar 18, 2014, 12:55 AM UTC

24
ross456MOD•

The root cause of this problem is that the website being loaded in the preview pane is stealing CPU time from the rest of my app. Fundamentally I have no control over this; one thing I did to lessen the severity was to disable JavaScript by default on the embedded website (have you been enabling JS on websites?).

Win8.1 added a new way of embedding websites, and I'm working on an update that will take advantage of this and other new features, but it'll still be a problem (just hopefully less).

If you're curious, the reason you can still scroll while the app is otherwise frozen is that panning and zooming happen on a separate thread, not the main UI thread. This is part of the WinRT platform (it's called Direct Manipulation). Even though the UI thread is blocked, this other thread is still able to run.

or loading a large image.

I've never noticed this issue when viewing an image; it's always been loading a website that's script-heavy. Can you elaborate on this more? The WinRT platform forces long-lasting activities such as downloading files to be asynchronous; they should never block the UI thread.

EDIT: went to r/gifs on my tablet; was able to select new links while the current gif was still loading. Don't see any issues.

1
klomp10OP•

Awesome, thank you for explaining this. Usually the only time when it freezes on loading an image is high res images (4k or so) and on a slower connection. But as you pointed out it is almost always on a website.

1
ross456•

If you can link me to reddit posts linking to images that trigger this for you, I can look into them further.

1
klomp10OP•

I had trouble finding something big enough but this one does it slightly. The lag is nothing compared to loading a website but it does freeze sometimes on a slow connection (tethering). I'm running reddit-to-go on a surface pro 2 8gb ram. http://i.imgur.com/XRTRLcO.jpg < this image did it very slightly but it's mostly the extremely high res images, unfortunately I'm having trouble finding something that large right now. Honestly this is pretty much a non-issue for me. It was the websites causing selection issues that are really bad.

Also, bought reddit-to-go pro today, thanks for your hard work!

1