electron_audit_performance
Analyzes Electron main, renderer, and preload code to detect and fix 7 performance anti-patterns including eager module loading and synchronous operations.
Instructions
Analyze Electron app code for 7 official performance anti-patterns: eager module loading, synchronous main-process operations, excessive BrowserWindows at startup, unnecessary polyfills, CDN-loaded assets, heavy preload scripts, and unbundled dependencies. Returns specific fixes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mainCode | No | Main process code to analyze | |
| rendererCode | No | Renderer process code to analyze | |
| preloadCode | No | Preload script code to analyze | |
| packageJson | No | package.json content to check for bundling and dependencies |