Skip to content

feat: Optimize server loading by deferring inactive webviews#3028

Merged
jeanfbrito merged 3 commits intomasterfrom
chore/not-load-logget-out-servers
May 12, 2025
Merged

feat: Optimize server loading by deferring inactive webviews#3028
jeanfbrito merged 3 commits intomasterfrom
chore/not-load-logget-out-servers

Conversation

@jeanfbrito
Copy link
Copy Markdown
Member

@jeanfbrito jeanfbrito commented May 9, 2025

This PR introduces an optimization to defer the loading of server webviews.

Changes:

  • Conditional Webview Loading: Server webviews for inactive (not currently selected) tabs will now only have their content loaded if the user is known to be logged in or if their login status is not yet determined. If a server is inactive and the user is known to be logged out, its webview content will not be loaded, saving bandwidth and initial resource usage.
  • User Experience: When a user clicks on a server that was previously unloaded due to being logged out, the webview will now load as expected, allowing them to log in.

Goal:

The goal is to reduce unnecessary bandwidth consumption and improve performance by avoiding the loading of content for servers that are not actively in use and where the user is logged out.

https://rocketchat.atlassian.net/browse/CORE-1147

@jeanfbrito jeanfbrito changed the title perf: Optimize server loading by deferring inactive webviews feat: Optimize server loading by deferring inactive webviews May 9, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented May 9, 2025

Windows installer download

@github-actions
Copy link
Copy Markdown

github-actions bot commented May 9, 2025

@github-actions
Copy link
Copy Markdown

github-actions bot commented May 9, 2025

@jeanfbrito jeanfbrito merged commit 92ce268 into master May 12, 2025
9 checks passed
@jeanfbrito jeanfbrito deleted the chore/not-load-logget-out-servers branch May 12, 2025 16:48
sreeja2007 pushed a commit to sreeja2007/Rocket.Chat.Electron that referenced this pull request Mar 2, 2026
…hat#3028)

* perf: Optimize server loading by deferring inactive webviews

* bump version

* remove duplicated code
Ram-sah19 pushed a commit to Ram-sah19/Rocket.Chat.Electron that referenced this pull request Mar 10, 2026
…hat#3028)

* perf: Optimize server loading by deferring inactive webviews

* bump version

* remove duplicated code
Ram-sah19 pushed a commit to Ram-sah19/Rocket.Chat.Electron that referenced this pull request Mar 10, 2026
…hat#3028)

* perf: Optimize server loading by deferring inactive webviews

* bump version

* remove duplicated code
Ram-sah19 pushed a commit to Ram-sah19/Rocket.Chat.Electron that referenced this pull request Mar 10, 2026
…hat#3028)

* perf: Optimize server loading by deferring inactive webviews

* bump version

* remove duplicated code
Ram-sah19 pushed a commit to Ram-sah19/Rocket.Chat.Electron that referenced this pull request Mar 10, 2026
…hat#3028)

* perf: Optimize server loading by deferring inactive webviews

* bump version

* remove duplicated code
Ram-sah19 pushed a commit to Ram-sah19/Rocket.Chat.Electron that referenced this pull request Mar 10, 2026
…hat#3028)

* perf: Optimize server loading by deferring inactive webviews

* bump version

* remove duplicated code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant