-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: Optimize Largest Contentful Paint #8
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
Conversation
- Compress and resize large images - Convert to modern formats (WebP/AVIF)
- Add low quality image placeholder - Implement smooth transition to high-res images - Support multiple formats (AVIF/WebP/PNG) with picture element
- Configure code splitting for game-related pages in GameLayout loader - Add preloading for Lobby, GameRoom and Result pages on MainPage button hover - Implement lazy loading for help modal component with hover-based initialization
- Add font-display: swap for system font fallback during loading - Implement preload for woff2 font to prioritize loading
|
๐ Storybook preview deployed to: Visit Storybook Preview |
|
๐ Storybook preview deployed to: Visit Storybook Preview |
- Changed critical imports to use ๏ฟฝwait to ensure they are loaded during the loader's execution. - Handled non-critical imports with ๏ฟฝoid Promise.all for asynchronous preloading.
|
๐ Storybook preview deployed to: Visit Storybook Preview |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ์๋ ๋๋ถ์ ๋ง์ด ๋ฐฐ์ ์ต๋๋ค ์์ ๐๐ปโโ๏ธ
|
๐ Storybook preview deployed to: Visit Storybook Preview |
|
๐งน Storybook preview for PR #8 has been removed. |
๐ ์์ ๋ด์ฉ
closes #1
๐ก ์์ธํ ์ค๋ช
์ด๋ฏธ์ง ์ต์ ํ
์ค๋์ค ์ต์ ํ
audioRef.current.preload = 'metadata';์์ฑ์ ์ค์ ํ์ฌ ์ด๊ธฐ ๋ก๋ ์ ๋ฉํ๋ฐ์ดํฐ๋ง ๋ก๋ํ๋๋ก ๋ช ์ํ์์ต๋๋ค.์ฝ๋ ์คํ๋ฆฌํ
MainPage์ [2]LobbyPage + GamePage + ResultPage๋ก ๊ตฌ๋ถํ์ฌ, [1] ์ง์ ํ ๋ฐฉ ์์ฑ ๋ฒํผ hover ์ [2]๋ฅผ ์ฌ์ ๋ก๋ ํ๋๋ก ๊ตฌํํ์ต๋๋ค.๋ ๋๋ง ์ฐจ๋จ ๋ฆฌ์์ค ์ ๊ฑฐ
font-display: swap;์ค์ ๊ณผ ํฐํธ ํ๋ฆฌ๋ก๋ฉ์ ํตํด ํฐํธ ๋ก๋ฉ์ ์ต์ ํํ๊ณ , ์ด๊ธฐ ๋ ๋๋ง ์ค ์์คํ ํฐํธ๋ฅผ ์ฌ์ฉํ์ฌ ์ฝํ ์ธ ๋ฅผ ์ฆ์ ์ ๊ณตํ ์ ์๋๋ก ํ์ต๋๋ค.๐ ์ฐธ๊ณ ์๋ฃ & ๊ตฌํ ๊ฒฐ๊ณผ (์ ํ)
FCP, LCP ์ต์ ํ ์ ์ฉ๊ธฐ
๐ข ๋ฆฌ๋ทฐ ์๊ตฌ ์ฌํญ (์ ํ)
๐ฉ ํ์ ์์ (์ ํ)
โ ์ ํ ์ฒดํฌ๋ฆฌ์คํธ
main์ด ์๋๋๋ค.)