Skip to content

Speed up loading#111

Open
veronika-tseleva-cleantalk wants to merge 9 commits into
devfrom
speed-up-loading
Open

Speed up loading#111
veronika-tseleva-cleantalk wants to merge 9 commits into
devfrom
speed-up-loading

Conversation

@veronika-tseleva-cleantalk
Copy link
Copy Markdown
Contributor

# Conflicts:
#	dist/doboard-widget-bundle.js
#	dist/doboard-widget-bundle.min.js
#	dist/doboard-widget-bundle.min.js.map
#	js/src/widget.js
Copilot AI review requested due to automatic review settings May 23, 2026 11:03
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to “speed up loading” of the DoBoard widget by introducing short-lived (60s) UI caching for several widget screens and by avoiding some repeated data fetches when data is already available.

Changes:

  • Add HTML/state caches for all_issues, spot_menu, and concrete_issue rendering paths to reuse previously generated DOM within a TTL.
  • Add wsSpotfix.isActive() and use it to conditionally reload tasks / gate certain refresh behaviors.
  • Update the compiled dist/doboard-widget-bundle.js with the new logic.

Reviewed changes

Copilot reviewed 2 out of 5 changed files in this pull request and generated 8 comments.

File Description
js/src/widget.js Adds screen-level caches and modifies task-loading/refresh logic based on cache/WS state.
js/src/websocket.js Adds isActive() helper to check WS connection state.
dist/doboard-widget-bundle.js Bundled output reflecting the new caching/WS logic.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread js/src/widget.js Outdated
Comment thread js/src/widget.js Outdated
Comment thread js/src/widget.js Outdated
Comment thread js/src/widget.js Outdated
Comment thread js/src/widget.js Outdated
Comment thread js/src/widget.js Outdated
Comment thread js/src/widget.js
Comment thread js/src/widget.js Outdated
Copilot AI review requested due to automatic review settings May 23, 2026 11:56
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 6 changed files in this pull request and generated 4 comments.

Comment thread js/src/handlers.js
Comment thread js/src/widget.js Outdated
Comment thread js/src/widget.js
Comment thread js/src/widget.js
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.

2 participants