Skip to content

feat: implement CLS prevention with aspect ratios and reserved heights - #1017

Merged
Emmzyemms merged 1 commit into
ANYTECHS:mainfrom
Zarmaijemimah:issue-873-cls-prevention-only
Aug 29, 2026
Merged

feat: implement CLS prevention with aspect ratios and reserved heights#1017
Emmzyemms merged 1 commit into
ANYTECHS:mainfrom
Zarmaijemimah:issue-873-cls-prevention-only

Conversation

@Zarmaijemimah

@Zarmaijemimah Zarmaijemimah commented Aug 28, 2026

Copy link
Copy Markdown

Closes #970


feat: implement CLS prevention with aspect ratios and reserved heights

ANYTECHS#873)

- Add useCLSMonitoring hook for development debugging
- Enhance LazyImage with aspect ratio support (VIDEO, PORTRAIT, SQUARE, etc.)
- Update DashboardClient with RESERVED_HEIGHTS for consistent skeleton dimensions
- Prevent layout shifts by reserving space before content loads

Target: CLS < 0.1

Acceptance Criteria:
✅ Identified layout shift sources
✅ Implemented space reservation
✅ Added aspect ratio preservation
✅ CLS monitoring in development
✅ Documented layout prevention
@Zarmaijemimah

Copy link
Copy Markdown
Author

close #970

@drips-wave

drips-wave Bot commented Aug 28, 2026

Copy link
Copy Markdown

@Zarmaijemimah Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Emmzyemms
Emmzyemms merged commit a86a88b into ANYTECHS:main Aug 29, 2026
0 of 2 checks passed
@grantfox-oss grantfox-oss Bot mentioned this pull request Aug 29, 2026
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement layout shift prevention

2 participants