Simple implementation of JSONP.
Requires
Methods
(static) getCount() → {number}
Gets count of active requests.
- Source:
Returns:
- Type:
-
number
Returns count of active requests.
(static) load(url, paramopt, timeoutopt) → (non-null) {Promise}
Performs JSONP request.
- Source:
- See:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
url |
string
|
The URL to which to send the request. | |
param |
string
|
<optional> |
Optional callback query-string parameter name. |
timeout |
number
|
<optional> |
The maximum execution timeout. |
Returns:
- Type:
-
Promise
Returns the result as a Promise object.