openedx-unsupported / edx-app-android

The Open edX mobile app for Android!
https://docs.google.com/document/d/15MYZ2LAmahB82P5wkPkQOqjszfou0Qkeae3qz7STxUQ/edit
Apache License 2.0
299 stars 334 forks source link

Pages download way too much data than needed #1132

Open sh-zam opened 6 years ago

sh-zam commented 6 years ago

When clicking on the text section in course or any section with text the page, it takes way too much time to load 4-5 seconds. Even if the page has only few KBs of text in it. I tried recording and found that a page less than 100KB downloaded content of about 5MB.

edxtest

^ this page consumed downloaded 5MBs of data

sh-zam commented 6 years ago

I think it might be because your AuthenticatedWebView is authenticating after every single page request, as written in the class documentation.

TPiotr commented 6 years ago

Agree, sometimes you have to wait quite a while to just load checkbox. But question is if this could be changed to something better.

miankhalid commented 6 years ago

This is something that we know and is on our radar to be taken care of in the near future. p.s. Don't have a strict timeline as to when we'll be looking at it, but its there in our upcoming projects.

Thanks for flagging the issue though! It'll be great if you guys can propose a solution may be through an open source pull request. We'll be more than happy to review it and get the job done!