Repository navigation
perf: quick wins from DebugBear speed test - #157
Merged
Merged
Conversation
- Remove intro animation (opacity:0→1) from #main and .page__hero that was hiding H1 content for 1.71s, directly delaying LCP - Convert homepage images to WebP: hero bg-1 (345KB→78KB), carbon-deps (57KB→12KB), carbon-install (52KB→12KB), carbon-java (49KB→8KB), feature-appstore (126KB→48KB), feature-ide (104KB→40KB) — total savings ~488KB - Add loading=lazy to feature row images and YouTube iframe (~1MB of YouTube scripts deferred until scroll) - Defer highlight.js loading (render-blocking → non-blocking)
|
🙈 The PR is closed and the preview is expired. |
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.
Addresses low-hanging fruit from DebugBear speed test (score: 93% Crux / 74% Lab).
Changes:
Remove intro animation —
opacity:0→1on#mainand.page__herowas hiding H1 content for 1.71s, directly delaying LCP. This was the document migration from maxandersen to jbangdev package sources #1 recommendation.Convert homepage images to WebP — ~488KB total savings:
Lazy load below-fold content —
loading=lazyon feature row images and YouTube iframe (~1MB of YouTube scripts deferred until scroll)Defer highlight.js — Was render-blocking; now loaded with
deferand CSS withmedia=printswap trickExpected impact: Faster FCP/LCP (content visible immediately instead of after 1.71s animation), ~500KB smaller initial page weight, ~1MB less third-party JS on initial load.