Optimize Lenis Performance
lenis_optimize_performanceAnalyze your Lenis smooth scroll setup and receive prioritized optimization recommendations with code examples to reduce jank, improve FPS, and optimize for mobile devices.
Instructions
Provides performance optimization recommendations for Lenis smooth scroll setups.
Analyzes the described setup and returns targeted tips for reducing jank, improving fps, and optimizing for mobile devices.
Args:
setup_description (string): Description of current Lenis setup
target_fps (number): Target frames per second (default: 60)
mobile_optimized (boolean): Include mobile-specific tips (default: true)
Returns: Prioritized list of optimization recommendations with code examples.
Examples:
"React app with 50 GSAP animations and parallax" → heavy animation tips
"Simple landing page with smooth scroll" → lightweight optimizations
"E-commerce site with lazy loaded images" → scroll-aware loading tips
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_fps | No | Target frames per second | |
| mobile_optimized | No | Whether to include mobile-specific optimizations | |
| setup_description | Yes | Description of current Lenis setup (e.g., 'React app with 50 GSAP animations and parallax') |