idle-task
vswr
Our great sponsors
idle-task | vswr | |
---|---|---|
6 | 2 | |
142 | 108 | |
- | - | |
8.3 | 0.0 | |
1 day ago | about 2 years ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
idle-task
- Why don't you do it when the browser is free instead of setInterval?
-
Validate Form during Browser Idle for Performance Optimization
This article introduces the example using idle-task (v3.3.1) which wraps requestIdleCallback conveniently.
- Improve Responsiveness to User Interactions
-
Import Strategies for Performance Optimizationâš¡
I introduced you to some import strategies for performance optimization and I recommend to use idle-task .
-
Show HN: Speed up your site by running JavaScript when the browser is idle
`idle-task` has shim as below .
https://github.com/hiroki0525/idle-task/blob/main/src/index....
References
vswr
-
How do I cache the result of an axios request for subsequent loads?
You should look into the stale-while-revalidate pattern. Here is a vue implementation: https://github.com/ConsoleTVs/vswr
-
VSWR (Vue Stale While Revalidate) now supports <Suspense>
You can learn more by visiting: https://github.com/ConsoleTVs/vswr
What are some alternatives?
network-idle-callback - Like requestIdleCallback, but for detecting network idle
vue-query - Hooks for fetching, caching and updating asynchronous data in Vue
hyper-fetch - âš¡ Fetching and realtime data exchange framework.
react-query - 🤖 Powerful asynchronous state management, server-state utilities and data fetching for TS/JS, React, Solid, Svelte and Vue. [Moved to: https://github.com/TanStack/query]
partytown - Relocate resource intensive third-party scripts off of the main thread and into a web worker. 🎉
vanilla-swr - `stale-while-revalidate` caching stratergy for vanilla web-apps
backfill - A JavaScript caching library for reducing build time
abaca - OpenAPI TypeScript SDK generator with strong type guarantees and minimal boilerplate
guess - 🔮 Libraries & tools for enabling Machine Learning driven user-experiences on the web