perf: Fix non-composited animations and reduce critical-path waste#122
Merged
vibemarketerpromax merged 1 commit intomainfrom Feb 23, 2026
Merged
perf: Fix non-composited animations and reduce critical-path waste#122vibemarketerpromax merged 1 commit intomainfrom
vibemarketerpromax merged 1 commit intomainfrom
Conversation
- Replace FAQ height animation (AnimatePresence) with CSS grid-template-rows transition - Replace Timeline scroll-driven height with scaleY transform - Replace Testimonials dot width transition with scaleX transform - Replace Services decorative line width transition with scaleX transform - Add missing "use client" directive to card-hover-effect.tsx - Downgrade Cal.com preconnect to dns-prefetch on contact page
Deploying website with
|
| Latest commit: |
751d489
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1a748f4e.website-yiq.pages.dev |
| Branch Preview URL: | https://fix-pagespeed-diagnostics.website-yiq.pages.dev |
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.
Summary
height,widthanimations withscaleY/scaleXtransforms that run on the GPU compositor thread.preconnecton/contact-uswastes a TCP+TLS handshake during the critical rendering window — downgraded todns-prefetch."use client"directive tocard-hover-effect.tsx(usesuseStateand event handlers).Changes
components/sections/FAQ.tsxAnimatePresenceheight animation with CSSgrid-template-rowstransitioncomponents/ui/timeline.tsxheightanimation withscaleYtransformcomponents/sections/Testimonials.tsxwidthtransition withscaleXtransformcomponents/sections/Services.tsxwidthtransition withscaleXtransformcomponents/ui/card-hover-effect.tsx"use client"directiveapp/contact-us/layout.tsxpreconnecttodns-prefetchWhy these matter
Non-composited animations (
height,width) trigger layout recalculation on every frame, blocking the main thread. Transform-based alternatives (scaleY,scaleX) run entirely on the GPU compositor, eliminating jank and reducing main-thread work — directly addressing PageSpeed's "Avoid non-composited animations" diagnostic.Test plan
npx tsc --noEmit)NOTION_TOKENdependency)