# fast-raf

> A better requestAnimationframe

Latest version **1.1.1** (published 2020-12-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install fast-raf
pnpm add fast-raf
yarn add fast-raf
bun add fast-raf
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2020-12-09 |
| First published | 2020-12-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | myWsq |
| Maintainers | wsq961 |

## Links

- npm: https://www.npmjs.com/package/fast-raf
- Repository: https://github.com/myWsq/fast-raf
- Homepage: https://github.com/myWsq/fast-raf#readme
- Issues: https://github.com/myWsq/fast-raf/issues
- npm.io page: https://npm.io/package/fast-raf

## Recent versions

- 1.1.1 (latest) — 2020-12-09
- 1.1.0 — 2020-12-09
- 1.0.0 — 2020-12-08

## README

# Fast Raf

![GitHub package.json version](https://img.shields.io/github/package-json/v/myWsq/fast-raf) ![NPM](https://img.shields.io/npm/l/fast-raf)

A better requestAnimationFrame. Fast Raf can merge multiple requestAnimationframes into one for you. And the usage is the same as before.

# Live Demo

Check [this demo](https://mywsq.github.io/fast-raf/example/). Open your devtools - performance, take a recording for comparing.

**Fast Raf Disabled**

![disabled](./fast-raf-disabled.jpg)

**Fast Raf Enabled**

![enabled](./fast-raf-enabled.jpg)

## Installation

(Recommended) Use npm and bundler. Just import it on the top of you code.

```shell
$ npm install fast-raf
```

```js
import "fast-raf";
```

You can also use `script` tag

```html
<script src="https://unpkg.com/fast-raf@1.0.0/dist/fast-raf.js"></script>
```

## License

MIT License

Copyright (c) 2020 myWsq

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

---
_Source: https://npm.io/package/fast-raf · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
