Skip to main content

PriorityFetch

Classes

FetchRequest
PriorityFetch

Wraps fetch api and adds concurrency management to it by queueing requests, as well as prioritization in that queue

Constants

priority_value_map : Object
DEFAULT_CONCURRENCY : number

Functions

extract_priority_from_resource(p)number
get_priority_score(request)number

FetchRequest

Kind: global class

new FetchRequest(resource, options)

ParamType
resourceRequest | string
optionsObject

priority_value_map : Object

Kind: global constant
Read only: true

DEFAULT_CONCURRENCY : number

Kind: global constant
Read only: true

extract_priority_from_resource(p) ⇒ number

Kind: global function

ParamType
pstring | undefined

get_priority_score(request) ⇒ number

Kind: global function

ParamType
requestFetchRequest