# jquery.resizestart

> A jQuery plugin that allows for window resize-start event handling.

Latest version **0.1.1** (published 2015-08-18) · 0 weekly downloads

## Install

```sh
npm install jquery.resizestart
pnpm add jquery.resizestart
yarn add jquery.resizestart
bun add jquery.resizestart
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2015-08-18 |
| First published | 2015-08-15 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Erik Nielsen |
| Maintainers | nielse63 |
| Keywords | jquery-plugin, resizestart, jQuery, events, scroll |

## Links

- npm: https://www.npmjs.com/package/jquery.resizestart
- Repository: https://github.com/nielse63/jquery.resizestart
- Homepage: https://nielse63.github.io/jquery.resizestart/
- Issues: https://github.com/nielse63/jquery.resizestart/issues
- npm.io page: https://npm.io/package/jquery.resizestart

## Dependencies (1)

- [node-promise](https://npm.io/package/node-promise.md) ^0.5.10

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 0.1.1 (latest) — 2015-08-18
- 0.1.0 — 2015-08-15

## README

### jQuery resizestart

A jQuery plugin that allows for window resize-start event handling.

## Demo

See the demo <a href="http://nielse63.github.io/jquery.resizestart/" target="_blank">here</a>.

## Usage

Include both the jQuery library and the resizestart plugin in your project:

```
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="js/jquery.resizestart.js"></script>
```

Execute the resizestart method to an element, instatiate options (if so desired), and run a callback functions:

```js
$(window).resizestart({
	delay : 250
}, function() {
	// ...
});
```

Or bind an element to the event, passing in options and event handler:

```js
$(window).on('resizestart', 250, function() {
	// ...
});
```

If you want to use the default delay setting of 250ms, simply don't include the options object:

```js
$(window).resizestart(function() {
	// ...
});
```

## Options

The only option available is the delay time (in milliseconds) to execute the callback after the browser has stopped being resized. The default value is 250ms. This can be passed as either a number or object:

```js
// As a number
$(window).on('resizestart', 250, function() {
	// ...
});

// As an object
$(window).on('resizestart', { delay : 250 }, function() {
	// ...
});
```

## License

This plugin is licensed under the <a href="http://opensource.org/licenses/MIT" target="_blank">MIT license</a>.  A copy of the license is included in this package.

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/nielse63/jquery-resizestart/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

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