Skip to content

Implemented lazy loading to desired components#671

Closed
tazsq wants to merge 2 commits intoRocketChat:developfrom
tazsq:issue#383/tazsq
Closed

Implemented lazy loading to desired components#671
tazsq wants to merge 2 commits intoRocketChat:developfrom
tazsq:issue#383/tazsq

Conversation

@tazsq
Copy link
Copy Markdown

@tazsq tazsq commented Nov 19, 2024

Issue #383

Brief Title

implemented lazy loading

Acceptance Criteria fulfillment

  • MessageToolbox in Message.js
  • Menu in ChatHeader.js
  • EmojiPicker in ChatInputFormattingToolbar.js
  • AudioMessageRecorder in ChatInputFormattingToolbar.js
  • ThreadHeader in ChatHeader.js
  • Attachments in Message.js

#Fixes Issue #383

PR Test Details

I have used react lazy, and suspense to ensure the components are rendered upon there first render and the initial bundle size is reduced
This pull request introduces code-splitting and lazy loading for several components across different parts of the application to improve performance by reducing the initial load time. The changes primarily involve the use of React's lazy and Suspense for dynamic imports.

Lazy loading and code-splitting:

Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-<pr_number> after approval. Contributors are requested to replace <pr_number> with the actual PR number.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Nov 19, 2024

CLA assistant check
All committers have signed the CLA.

@tazsq
Copy link
Copy Markdown
Author

tazsq commented Nov 21, 2024

@Spiral-Memory @sidmohanty11 please review

@Spiral-Memory
Copy link
Copy Markdown
Collaborator

Hey @tazsq

We'll have to see if we need lazy loadings here.. maybe we aren't looking for it right now.. still I'll look into it and let you know

@tazsq tazsq changed the title implemented lazy loading to the desired components implemented lazy loading to desired components Nov 22, 2024
@tazsq tazsq changed the title implemented lazy loading to desired components Implemented lazy loading to desired components Nov 22, 2024
@tazsq
Copy link
Copy Markdown
Author

tazsq commented Dec 7, 2024

Hey @tazsq

We'll have to see if we need lazy loadings here.. maybe we aren't looking for it right now.. still I'll look into it and let you know

Hey @Spiral-Memory @sidmohanty11 can you revert on this issue?

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.

3 participants