Fix home-page performance: drop the hero flow canvas - #26
Merged
Merged
Conversation
The canvas ran a requestAnimationFrame loop drawing up to 90 particles, each with ctx.shadowBlur (a per-particle blur) and a fresh radial gradient every frame — enough to make the home page janky. Drop the canvas and its script entirely; the ambient glow is now a single .hero::before layer that animates transform only, so it stays on the compositor and costs effectively nothing. Runtime cost is back to the original (just the log's setInterval). The dark palette and the gradient headline are pure CSS and are kept. Applied to all ten home pages; reduced motion disables the drift. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
blessdyb
added a commit
that referenced
this pull request
Oct 1, 2026
Restores every home page (source and built docs) and the sitemap to their state at 8a54361 — the dark palette, gradient headline and hero animation (PRs #25 and #26) are removed entirely. The home returns to the original light/adaptive design, which is the guaranteed-fast baseline. Site-only, no version bump. The tree is now identical to 8a54361. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The hero flow canvas made the home page janky: a
requestAnimationFrameloop drawing up to 90 particles per frame, each withctx.shadowBlur(an expensive per-particle blur) plus a freshly created radial gradient every frame.setInterval)..hero::beforelayer animatingtransformonly, so it stays on the compositor thread and costs effectively nothing.prefers-reduced-motiondisables the drift.check_siteclean (0 problems);docs/rebuilt.Site-only, no version bump, no tag.
🤖 Generated with Claude Code