Skip to content

fix: preload main CSS#2486

Merged
aeneasr merged 2 commits intomasterfrom
preload-fast
Mar 24, 2026
Merged

fix: preload main CSS#2486
aeneasr merged 2 commits intomasterfrom
preload-fast

Conversation

@aeneasr
Copy link
Copy Markdown
Member

@aeneasr aeneasr commented Mar 24, 2026

Related Issue or Design Document

Checklist

  • I have read the contributing guidelines and signed the CLA.
  • I have referenced an issue containing the design document if my change introduces a new feature.
  • I have read the security policy.
  • I confirm that this pull request does not address a security vulnerability.
    If this pull request addresses a security vulnerability,
    I confirm that I got approval (please contact security@ory.com) from the maintainers to push the changes.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added the necessary documentation within the code base (if appropriate).

Further comments

aeneasr and others added 2 commits March 24, 2026 14:52
Adds a Docusaurus postBuild plugin that replaces the blocking
<link rel="stylesheet"> Docusaurus injects for the hashed main CSS
bundle with an async preload+onload pattern. The CSS is fetched at
high priority but never blocks the initial render; a <noscript>
fallback ensures it loads without JS.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@aeneasr aeneasr changed the title perf: preload main CSS fix: preload main CSS Mar 24, 2026
@aeneasr
Copy link
Copy Markdown
Member Author

aeneasr commented Mar 24, 2026

IMG_2158

@aeneasr aeneasr merged commit 3a7b9d7 into master Mar 24, 2026
12 of 13 checks passed
@aeneasr aeneasr deleted the preload-fast branch March 24, 2026 19:01
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