Skip to content

Conversation

@tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Feb 1, 2026

What is this pull request for?

Instead of a JS solution, which can fail on some
browsers (looking at you Safari) we use a CSS only solution1 which gracefully fails and shows the content even if custom elements are not defined yet. Making the page at least somehow usable.

Checklist

Footnotes

  1. https://dev.to/stuffbreaker/reducing-fouc-with-web-components-1jnh

Instead of a JS solution, which can fail on some
browsers (looking at you Safari) we use a CSS only
solution[^1] which gracefully fails and shows the content
even if custom elements are not defined yet. Making
the page at least somehow usable.

[^1]: https://dev.to/stuffbreaker/reducing-fouc-with-web-components-1jnh
@tvdeyen tvdeyen requested a review from a team as a code owner February 1, 2026 11:39
@tvdeyen tvdeyen added bug backport-to-8.0-stable Needs to be backported to 8.0-stable labels Feb 1, 2026
@tvdeyen tvdeyen enabled auto-merge February 1, 2026 11:42
@codecov
Copy link

codecov bot commented Feb 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.48%. Comparing base (2021fb9) to head (e3c5868).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3611   +/-   ##
=======================================
  Coverage   97.48%   97.48%           
=======================================
  Files         314      314           
  Lines        8256     8256           
=======================================
  Hits         8048     8048           
  Misses        208      208           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@sascha-karnatz sascha-karnatz left a comment

Choose a reason for hiding this comment

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

Nice

@tvdeyen tvdeyen merged commit 17cb9d0 into main Feb 2, 2026
24 checks passed
@tvdeyen tvdeyen deleted the fouc-fix-css branch February 2, 2026 08:34
@alchemycms-bot
Copy link

alchemycms-bot bot commented Feb 2, 2026

💔 All backports failed

Status Branch Result
8.0-stable Backport failed because of merge conflicts

You might need to backport the following PRs to 8.0-stable:
- Remove dialog sitemap css code
- Fix sitemap highlight color in dark mode
- Make create element dialog wider (#3445)
- Fix element icon hover for elements with warning (#3444)
- Fix select2 close icon visibility (#3443)

Manual backport

To create the backport manually run:

backport --pr 3611

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

@alchemycms-ci-bot
Copy link
Collaborator

💚 All backports created successfully

Status Branch Result
8.0-stable

Questions ?

Please refer to the Backport tool documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-8.0-stable Needs to be backported to 8.0-stable bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants