https://github.com/yunsii/idlization
Helper classes and methods for implementing the idle-until-urgent pattern, based on TypeScript, and SSR compatible.
https://github.com/yunsii/idlization
cancelidlecallback generator idle idle-until-urgent idlize requestidlecallback until urgent
Last synced: about 1 year ago
JSON representation
Helper classes and methods for implementing the idle-until-urgent pattern, based on TypeScript, and SSR compatible.
- Host: GitHub
- URL: https://github.com/yunsii/idlization
- Owner: yunsii
- License: mit
- Created: 2023-08-04T13:22:50.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-20T01:20:01.000Z (over 2 years ago)
- Last Synced: 2025-02-03T13:47:03.182Z (about 1 year ago)
- Topics: cancelidlecallback, generator, idle, idle-until-urgent, idlize, requestidlecallback, until, urgent
- Language: TypeScript
- Homepage:
- Size: 151 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# idlization
Helper classes and methods for implementing the idle-until-urgent pattern, based on TypeScript, and SSR compatible.
[](https://www.npmjs.com/package/idlization)
## Features
- All features of [GoogleChromeLabs/idlize](https://github.com/GoogleChromeLabs/idlize)
- TypeScript supported
- SSR compatible
- `IdlePromise` based on [generator function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*)
## References
- [Idle Until Urgent](https://philipwalton.com/articles/idle-until-urgent/)
- [Measure performance with the RAIL model](https://web.dev/rail/#response:-process-events-in-under-50ms)
- [Generators for idle-until-urgent](https://til.florianpellet.com/2020/02/29/Generator-idle-promise/)
## Build & Publish
- `npm run build`
- `npx changeset`
- `npx changeset version`
- `git commit`
- `npx changeset publish`
- `git push --follow-tags`
> [`changeset` prerelease doc](https://github.com/changesets/changesets/blob/main/docs/prereleases.md)
## License
[MIT](./LICENSE) License © 2023 [Yuns](https://github.com/yunsii)