0.3.1 • Published 5 years ago

@knowledgecode/nowait v0.3.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

nowait

This is a better async function than the setTimeout(..., 0) for the browser. It will execute the passed function asynchronously with the best way in supported by the running browser. The setTimeout(..., 0) will be used if there is no other better way.

Installation

via npm:

npm install knowledgecode@nowait --save

Usage

ES modules:

import nowait from './dist/nowait.es.min.js';

nowait(fn);

Traditional:

<script src="./dist/nowait.min.js"></script>
<script>
  nowait(fn);
</script>

Browser support

Chrome, Android Chrome, Firefox, Safari, iOS Safari, Edge, IE

0.3.0

5 years ago

0.2.0

5 years ago

0.3.1

5 years ago

0.1.2

5 years ago

0.1.0

5 years ago