Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

store cache for WidgetWebView between loads #2648

Merged
merged 4 commits into from
Aug 23, 2021
Merged

store cache for WidgetWebView between loads #2648

merged 4 commits into from
Aug 23, 2021

Conversation

dkanada
Copy link
Contributor

@dkanada dkanada commented Jan 9, 2021

The sticker widget is extremely inefficient due to these lines, reloading every asset on the page any time the sticker widget is opened. I made a new sticker widget and made this change on my personal builds to avoid ten second load times every time I wanted to send a sticker. This should only cause issues for widgets hosted on servers that don't properly invalidate caches as far as I can tell, but the WebView cache can also be manually reset with the Reset Cache option in the app settings.

@dkanada
Copy link
Contributor Author

dkanada commented Feb 20, 2021

Are there any specific issues with this pull request or is it just a low priority? I'll just close it if there are concerns with other widgets or something.

@bmarty
Copy link
Member

bmarty commented Feb 22, 2021

Thanks for the PR. To be honest, I'm not sure about the impact with other widget, or even with the sticker widget.
@ganfra WDYT?

@Bubu
Copy link
Contributor

Bubu commented May 26, 2021

This would fix #2066 if merged.

Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's merge the PR, I'll add a file for towncrier on develop. Thanks @dkanada !

@bmarty bmarty merged commit 25cb78b into element-hq:develop Aug 23, 2021
@bmarty
Copy link
Member

bmarty commented Aug 23, 2021

Done in 8a38f1c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants