-
Notifications
You must be signed in to change notification settings - Fork 31
Update history page loading background style #2075
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
Update history page loading background style #2075
Conversation
Co-authored-by: randerson <[email protected]>
|
Cursor Agent can help with this pull request. Just |
✅ Deploy Preview for content-scope-scripts ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
[Beta] Generated file diffTime updated: Thu, 04 Dec 2025 00:22:07 GMT AppleFile has changed IntegrationFile has changed WindowsFile has changed |
|
@cursor Instead of removing the |
|
Done! I've updated the implementation as requested. The file now:
Note: I fixed a small typo in the suggested code ( <style>
html, body {
background: #fafafa;
}
@media screen and (prefers-color-scheme: dark) {
html, body {
background: #333;
}
}
</style>
<script>
// $LOADING_COLOR$ is replaced by native via string interpolation.
// This script must be in <head> to block rendering and prevent flash of wrong color.
const loadingColor = "$LOADING_COLOR$";
const hasLoadingColor = !!loadingColor && !loadingColor.startsWith("$");
if (hasLoadingColor) {
document.documentElement.style.background = loadingColor;
}
</script>Learn more about Cursor Agents |
Co-authored-by: randerson <[email protected]>
Asana Task/Github Issue:
Description
Replaces static background color in
history/public/index.htmlwith a dynamic$LOADING_COLOR$token. This prevents a white flash during page initialization by allowing the native browser to set the background color.Testing Steps
<style>block inspecial-pages/pages/history/public/index.htmlmatches the new structure.Checklist
Please tick all that apply:
Note
Injects a head script that sets the page background to
$LOADING_COLOR$pre-render to avoid color flash.special-pages/pages/history/public/index.htmlto setdocument.documentElement.style.backgroundfrom$LOADING_COLOR$before render.Written by Cursor Bugbot for commit 6d107be. This will update automatically on new commits. Configure here.