mu-afq

1.0.1 • Public • Published

mu-afq

Asynchronous Function Queue

Usage

First of you should add the afq oneliner in the top of you page, preferably in the HEAD tag

<script>
window.afq = window.afq || function () { (afq.q = afq.q || []).push(arguments) };
</script> 

Now you are ready to load the script

<script src="afq.js" async="true"></script>

After that call your methods like so :

afq("methodName", 1, 2, 3);

Methods are provided like so :

afq("provide", "methodName", function(a, b, c) {});

Readme

Keywords

none

Package Sidebar

Install

npm i mu-afq

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • eyalar
  • garryyao
  • mikaelkaron