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

SPA Lazy Imports #512

Merged
merged 12 commits into from
Oct 10, 2024
Merged

SPA Lazy Imports #512

merged 12 commits into from
Oct 10, 2024

Conversation

g-saracca
Copy link
Contributor

@g-saracca g-saracca commented Sep 30, 2024

What this PR does / why we need it:

Applies react lazy imports for page modules. Each page within the SPA application build will be a separate module with its corresponding javascript and css. This will reduce the initial load time, loading only the assets needed for the SPA requesting path.

Which issue(s) this PR closes:

Special notes for your reviewer:

I made changes to the i18n configuration.
Several locale files were deleted and their content was moved to a shared file -- shared.json.

Suggestions on how to test this:

Code visual inspection and re-run of tests actions.
This is difficult to test, as it is a progressive performance enhancement, that's why I suggest re running github action tests.
Another option is on your local environment, run npm run build at the root folder of the project in this particular branch to see the build result and maybe do the same in develop branch and compare them.

Does this PR introduce a user interface change? If mockups are available, please link/include them here: No.

Is there a release notes update needed for this change?: No.

Additional documentation:

@g-saracca g-saracca added Size: 3 A percentage of a sprint. 2.1 hours. performance Improve performance of an existing feature GREI Re-arch GREI re-architecture-related SPA SPA.Q3 Not related to any specific Q3 feature FY25 Sprint 7 FY25 Sprint 7 (2024-09-25 - 2024-10-09) Original size: 10 labels Sep 30, 2024
@g-saracca g-saracca changed the title Feature/381 implement lazy loading 2 SPA Lazy Loading Sep 30, 2024
@g-saracca g-saracca changed the title SPA Lazy Loading SPA Lazy Imports Sep 30, 2024
@coveralls
Copy link

coveralls commented Sep 30, 2024

Coverage Status

coverage: 97.342% (-0.2%) from 97.53%
when pulling 09edc74 on feature/381-implement-lazy-loading-2
into ff8ed38 on develop.

@ekraffmiller ekraffmiller self-assigned this Oct 2, 2024
Copy link
Contributor

@ekraffmiller ekraffmiller left a comment

Choose a reason for hiding this comment

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

It looks great, and it's much faster! 🚀
Just had questions about the testing

@g-saracca
Copy link
Contributor Author

g-saracca commented Oct 4, 2024

@ekraffmiller I added a component test for the AppLoader component and solved merge conflicts 👍🏼

@g-saracca g-saracca assigned ekraffmiller and unassigned g-saracca Oct 4, 2024
Copy link
Contributor

@ekraffmiller ekraffmiller left a comment

Choose a reason for hiding this comment

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

looks good, approved!

@GPortas GPortas added SPA.Q4 Not related to any specific Q4 feature and removed SPA.Q3 Not related to any specific Q3 feature labels Oct 9, 2024
@cmbz cmbz added the FY25 Sprint 8 FY25 Sprint 8 (2024-10-09 - 2024-10-23) label Oct 9, 2024
@ofahimIQSS ofahimIQSS self-assigned this Oct 10, 2024
@ofahimIQSS
Copy link
Contributor

Ran tests in local, no issues discovered. This will be tested more over time.

@ofahimIQSS ofahimIQSS merged commit 36c7b07 into develop Oct 10, 2024
10 of 14 checks passed
@ofahimIQSS ofahimIQSS deleted the feature/381-implement-lazy-loading-2 branch October 10, 2024 16:20
@ofahimIQSS ofahimIQSS removed their assignment Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FY25 Sprint 7 FY25 Sprint 7 (2024-09-25 - 2024-10-09) FY25 Sprint 8 FY25 Sprint 8 (2024-10-09 - 2024-10-23) GREI Re-arch GREI re-architecture-related Original size: 10 performance Improve performance of an existing feature Size: 3 A percentage of a sprint. 2.1 hours. SPA.Q4 Not related to any specific Q4 feature SPA
Projects
Status: Done 🧹
Development

Successfully merging this pull request may close these issues.

Implement lazy loading
6 participants