loadJsonp(urlOrResource, callbackParameterName, request)Promise.<Object>|undefined

Requests a resource using JSONP.
Name Type Default Description
urlOrResource Resource | String The URL to request.
callbackParameterName String 'callback' optional The callback parameter name that the server expects.
request Request optional The request object. Intended for internal use only.
a promise that will resolve to the requested data when loaded. Returns undefined if request.throttle is true and the request does not have high enough priority.
Deprecated: true
// load a data asynchronously
resource.loadJsonp().then(function(data) {
    // use the loaded data
}).otherwise(function(error) {
    // an error occurred