first
This commit is contained in:
commit
8538ab969a
434 changed files with 44051 additions and 0 deletions
11
.cursor/rules/performance.mdc
Normal file
11
.cursor/rules/performance.mdc
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
description:
|
||||
globs:
|
||||
alwaysApply: true
|
||||
---
|
||||
This rule describes how to optimize the code for performance.
|
||||
|
||||
- Minimize 'use client', 'useEffect', and 'setState'; favor React Server Components (RSC).
|
||||
- Wrap client components in Suspense with fallback.
|
||||
- Use dynamic loading for non-critical components.
|
||||
- Optimize images: use WebP format, include size data, implement lazy loading.
|
||||
Loading…
Add table
Add a link
Reference in a new issue