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

Disable inlineCriticalCss by default for better SSR performance #2944

Merged
merged 1 commit into from
May 15, 2024

Conversation

tdonohue
Copy link
Member

@tdonohue tdonohue commented Apr 15, 2024

References

Description

This PR changes the default setting of inlineCriticalCss to false (disabled) in order to improve the SSR (Server Side Rendering) performance.

For details about this change, see discussion in #2067, especially #2067 (comment)

Also see other references on web about poor performance of inlineCriticalCss:

Instructions for Reviewers

  • For detailed testing, I'm going to deploy this minor change immediately to https://sandbox.dspace.org . That will allow us to test this new default setting via Testathon and beyond.

Porting to dspace-7_x

If accepted, this should be ported to dspace-7_x. However, it will need to be a manual port because the inlineCriticalCss setting has changed in Angular 17 (see #2934 ). So this setting is slightly different on main and dspace-7_x branches.

@tdonohue tdonohue added performance / caching Related to performance, caching or embedded objects configuration 1 APPROVAL pull request only requires a single approval to merge labels Apr 15, 2024
@tdonohue tdonohue added this to the 8.0 milestone Apr 15, 2024
@tdonohue tdonohue added the port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release label Apr 15, 2024
@tdonohue
Copy link
Member Author

tdonohue commented Apr 15, 2024

Update: This has been deployed to https://sandbox.dspace.org via the dspace-8.0-testathon branch & can be tested there.

@tdonohue tdonohue requested a review from atarix83 May 9, 2024 14:59
Copy link
Contributor

@atarix83 atarix83 left a comment

Choose a reason for hiding this comment

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

thanks @tdonohue

LGTM

@tdonohue tdonohue merged commit 782352d into DSpace:main May 15, 2024
13 checks passed
@dspace-bot
Copy link
Contributor

Backport failed for dspace-7_x, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin dspace-7_x
git worktree add -d .worktree/backport-2944-to-dspace-7_x origin/dspace-7_x
cd .worktree/backport-2944-to-dspace-7_x
git switch --create backport-2944-to-dspace-7_x
git cherry-pick -x ee174747c2cce5b7fa55537f7bd9ec5ac6057126

@tdonohue
Copy link
Member Author

Manually ported to 7.x in #3051

@tdonohue tdonohue removed the port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 APPROVAL pull request only requires a single approval to merge configuration performance / caching Related to performance, caching or embedded objects
Projects
No open projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants