URLUtils:36
Utilities that assist with parsing load items, and determining file types, etc.
buildURIsrc
[data]
Defined in
buildURI:155
A utility method that builds a file path using a source and a data object, and formats it into a new path.
A formatted string that contains the path and the supplied parameters.
formatQueryStringdata
[query]
Defined in
formatQueryString:134
Formats an object into a query string for either a POST or GET request.
isCrossDomainitem
Defined in
isCrossDomain:184
If the load item is loading from a different domain than the current location.
isLocalitem
Defined in
isLocal:204
If the load item is loading from the "file:" protocol. Assume that the host must be local as well.
parseURIpath
Defined in
parseURI:67
Parse a file path to determine the information we need to work with it. Currently, PreloadJS needs to know:
http://, file://, or
//networkPath)../ or /path (or similar)name.ext.path
String
An Object with an absolute and relative Boolean values,
the pieces of the path (protocol, hostname, port, pathname, search, hash, host)
as well as an optional 'extension` property, which is the lowercase extension.
ABSOLUTE_PATH
Defined in
ABSOLUTE_PATH:42
The Regular Expression used to test file URLS for an absolute path.
EXTENSION_PATT
Defined in
EXTENSION_PATT:58
The Regular Expression used to test file URLS for an extension. Note that URIs must already have the query string removed.
RELATIVE_PATH
Defined in
RELATIVE_PATH:50
The Regular Expression used to test file URLS for a relative path.