ushnisha / tranquility-reader-webextensions

Tranquility Reader rewritten using Webextensions API
GNU General Public License v3.0
117 stars 14 forks source link

Keep the original page in cache, so that if you come back to it after you set reader mode, it goes instantaneously #36

Open ericpa06 opened 2 years ago

ericpa06 commented 2 years ago

So, first of all I would like to thank you for your extension, I don't know what you did but most other reader extensions get somewhat fuzzy when extracting the main elements from web page, so it always ends up with formatting issues and yadda yadda, your extension although does it pretty well.

Anyway, I would like to suggest a little improvement: oftentimes on reader extensions, when you set the page to reading mode, and you press to go back the original page (maybe there is something you want to check or whatever), the extension goes back to the original layout pretty much instantaneously, like this:

https://user-images.githubusercontent.com/6937720/164074978-3f905e5b-79e4-4620-b883-705f3c68738b.mp4

In Tranquility Reader though, whenever you press the button, the pages is loaded all over all again, like this:

https://user-images.githubusercontent.com/6937720/164075148-88ba1d09-453c-4405-982a-e30e17e9675e.mp4

It would be nice if the page loaded from cache whenever you press the button again to check something on the page original layout. Anyway, thanks for your attention.

ushnisha commented 2 years ago

Thank you for the feedback and glad you find the extension useful.

The very early versions of the extension (in the days of the native XUL addons) used to cache the original page and restore it fast; but when I moved to webextensions, this feature was left out because during my testing I found that page reloads were quite fast (maybe my own internet connection quality and speed improved).

But as you mention, this is a good feature to have even in cases of fast connections. I will add it to the next release. Since 3.0.24 was released only last week, I will have to combine this with other changes to minimize any burden on the addon reviewers at Mozilla -- so it may take a few weeks before I submit the next release. Thanks again for the feedback and the issue.

ericpa06 commented 2 years ago

Any update on this feature? 🥺