Feat/liquidglass optimization for iOS - #5
Merged
Merged
Conversation
…mponents Framer Motion baked opacity:0 into server-rendered HTML via initial="hidden", making the page appear blank until JS hydrated (~20s on mobile). Fix: - page-transition: no-op wrapper (content always visible) - reveal, animated-skills, animated-stats: mounted guard renders plain HTML on SSR; switches to IntersectionObserver + CSS animation after hydration
CvDialog was fetching /cv.md on every page load (from GitHub CDN) just to decide whether to show the button, blocking Safari's loading indicator until the request resolved. Now fetches only when the user taps "View CV".
swift-logo.png: 192KB → 16KB (12× smaller) tri.png: 12KB → 8KB Both loaded on every page view in the fixed navbar.
- glass-card: backdrop-blur-2xl only on md+; mobile gets opaque background - navbar pill: same — opaque on mobile, blur only on desktop - fluid blobs: hidden on touch devices (filter:blur(50px) animated shapes) - contact circles: removed backdrop-blur-md (over solid bg, no visual benefit) - about glow: hidden on mobile (blur-[120px] on 600×600 div) - globals.css: CSS keyframes for reveal, skill, stat, float, marquee, scroll-progress animations replacing Framer Motion equivalents
Framer Motion (~120KB) was pulled into the initial bundle by multiple components in the critical render path, adding ~20s of JS parse/execution time on mobile Safari. Replacements: - hero-image: CSS @Keyframes float animation - animated-marquee: CSS @Keyframes infinite scroll - back-to-top: CSS opacity/translate transition classes - tactile-button: CSS active:scale-95 - use-glass-tilt: direct DOM style writes (no spring, CSS transition instead) - experience-card + project-card: CSS grid-template-rows 0fr→1fr expand - navbar: CSS scroll-driven progress bar, CSS max-height mobile menu, webp logo references, backdrop-blur deferred to md+ breakpoint Framer Motion is now absent from all source files and the output bundle.
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 of what changed end-to-end: