
Frontend Async Best Practices
Async and Promise optimization rules that eliminate request waterfalls and maximize parallel fetching in loaders and actions.
- skills.sh installs
- 226
- GitHub stars
- 92
- last updated
- Aug 21, 2026
What it does
- Covers five rules: parallel fetching, deferred awaits, chained dependencies, early promise starts in API routes, and Suspense boundaries
- Ranks rules by impact, with
parallel,dependencies, andapi-routesmarked CRITICAL anddefer-awaitandsuspense-boundariesmarked HIGH - Shows bad and good code pairs in TypeScript and TSX for each rule, contrasting sequential awaits with
Promise.all() - Designed for writing, reviewing, or refactoring Remix loaders, actions, and data-fetching code to remove sequential round trips
Install
$ npx -y skills add sergiodxa/agent-skills --skill frontend-async-best-practices -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Async Best Practices
Performance optimization patterns for asynchronous JavaScript code. Contains 5 rules focused on eliminating request waterfalls and maximizing parallelism.
Impact: CRITICAL - Waterfalls are the #1 performance killer. Each sequential await adds full network latency.
When to Apply
Reference these guidelines when:
- Writing Remix loaders or actions
- Implementing data fetching logic
- Working with multiple async operations
- Reviewing code for waterfall patterns
- Optimizing response times
Rules Summary
parallel (CRITICAL) — @rules/parallel.md
Use Promise.all() for independent operations.
// Bad: 3 sequential round trips
const user = await fetchUser();
const posts = await fetchPosts();
const comments = await fetchComments();
// Good: 1 parallel round trip
const [user, posts, comments] = await Promise.all([
fetchUser(),
fetchPosts(),
fetchComments(),
]);
defer-await (HIGH) — @rules/defer-await.md
Move await into branches where actually used.
Details
- Repository
- github.com/sergiodxa/agent-skills
- Categories
- Frontend & UI Code, Backend & APIs
- First seen
- Jun 3, 2026
More from sergiodxa/agent-skills
All 10- Frontend Internationalization Best Practices194
- Frontend Testing Best Practices2.3K
- Owasp Security Check1.8K
- Frontend React Best Practices1.2K
- Frontend Accessibility Best Practices911
- Frontend Tailwind Best Practices468
- Frontend React Router Best Practices404
- Frontend Js Best Practices337
- Ruby On Rails Best Practices282
Similar to Frontend Async Best Practices
More Frontend & UI Code
frontend-react-router-best-practicessergiodxa/agent-skills404 installsReact Router data-loading, action, and route-organization rules with code examples for performance and architecture.
vercel-react-best-practicesvercel-labs/agent-skills905.6K installsPerformance guide of 70 React and Next.js rules, ordered by impact from waterfalls to advanced patterns.
react-performanceaffaan-m/ecc6.4K installsReact and Next.js performance rules grouped into 8 priority categories, from waterfalls to advanced patterns.
react-data-fetchingpatternsdev/skills1.1K installsPractical React data fetching patterns covering TanStack Query, SWR, Suspense, parallel loading, and prefetching.
frontend-react-best-practicessergiodxa/agent-skills1.2K installsReact performance rules and composition patterns covering re-renders, bundle size, and hydration pitfalls.