Skip to content

perf(background): render the static grid once#30

Merged
Younesfdj merged 1 commit into
Younesfdj:devfrom
TheAlexLichter:fix-grid
Jul 7, 2026
Merged

perf(background): render the static grid once#30
Younesfdj merged 1 commit into
Younesfdj:devfrom
TheAlexLichter:fix-grid

Conversation

@TheAlexLichter

Copy link
Copy Markdown
Contributor

The decorative grid is deterministic but still rendered as React elements (and then serialized into an RSC payload on every request).

This PR precomputes the grid once as a static SVG string and inject via dangerouslySetInnerHTML

This should improve the RSC payload size, reduce the HTML doc and improve mobile Speed Index measurably.

@Younesfdj Younesfdj changed the base branch from master to dev July 7, 2026 00:45
@Younesfdj Younesfdj merged commit c5c66ec into Younesfdj:dev Jul 7, 2026
@Younesfdj

Copy link
Copy Markdown
Owner

@TheAlexLichter Landed on dev, goes out with the next release. Thanks for contributing to Gitfut

@TheAlexLichter TheAlexLichter deleted the fix-grid branch July 7, 2026 06:57
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