What problem does it solve?
This Skill ensures that your JavaScript code adheres to Folio's conventions, improving readability, performance, and maintainability.
Core Features & Use Cases
- Modern JavaScript Practices: Follows ES6+ standards for a cleaner codebase.
- Stimulus Framework Integration: Utilizes Stimulus for interactive component behavior.
- DOM API Best Practices: Implements native DOM methods over jQuery for performance.
- API Wrapper Usage: Provides a structured approach to making HTTP requests using
Folio.Api.
- Event Handling and Cleanup: Offers guidance on managing event listeners to prevent memory leaks.
- Debounce and Throttle: Techniques for managing rapid-fire callbacks like scroll and resize.
- Quick Start for Developers: Helps developers write efficient and maintainable JavaScript code for Folio projects.
Quick Start
Integrate JavaScript into your Folio application using ES6+ conventions and Stimulus for interactivity.