The name of the package
True when the package is just for reference, not loading
Protected
dependenciesThe packages that this one depends on
Protected
dependencyThe number of dependencies that haven't yet been loaded
Protected
dependentsThe packages that require this one
True if the package has failed to load
True when the package has been loaded successfully
Protected
isTrue when the package is being loaded but hasn't yet finished loading
The package name
Protected
noTrue if this package should be loaded automatically (e.g., it was created in reference to a MathJax.loader.ready() call when the package hasn't been requested to load)
A promise that resolves when the package is loaded successfully and rejects when it fails to load
Protected
providedThe sub-packages that this one provides
Protected
rejectThe function that rejects the package's promise
Protected
resolveThe function that resolves the package's promise
The result of loading a module via the custom loader
Static
packagesThe set of packages being used
True when the package can be loaded (i.e., its dependencies are all loaded, it is allowed to be loaded, isn't already loading, and hasn't failed to load in the past)
Add a package as a dependent, and if it is not just for reference, check if we need to change our noLoad status.
The package to add as a dependent
The noLoad status of the dependent
Protected
checkCheck if a package is really ready to be marked as loaded (When it is loaded, it may set its own checkReady() function or extraLoads array as a means of loading additional packages. E.g., an output jax may load a font package, dependent on its configuration.)
The configuration's checkReady() function returns a promise that allows the loader to wait for addition actions to finish before marking the file as loaded (or failing to load).
If this package is marked as noLoad, change that and check all our dependencies to see if they need to change their noLoad status as well.
I.e., if there are dependencies that were set up for reference and a leaf node needs to be loaded, make sure all parent nodes are marked as needing to be loaded as well.
Protected
failedCalled when the package fails to load for some reason
Mark it as failed to load Reject the promise for this package with an error
The error message for a load failure
Attempt to load this package
Protected
loadLoad using a custom require method (usually the one from node.js)
The URL to load from
Called when the package is loaded.
Mark it as loaded, and tell its dependents that this package has been loaded (may cause dependents to load themselves). Mark any provided packages as loaded. Resolve the promise that says this package is loaded.
Protected
loadLoad in a browser by inserting a script to load the proper URL
The URL to load from
Protected
makeThe array of promises that must be resolved before this package can be loaded
Protected
makeThe array or promises that must be resolved before this package can load
The promise indicating when this file is loaded
The names of the packages that this package provides
This is called when a dependency loads.
Decrease the dependency count, and try to load this package when the dependencies are all loaded.
Static
loadAttempt to load all packages that are ready to be loaded (i.e., that have no unloaded dependencies, and that haven't already been loaded, and that aren't in process of being loaded, and that aren't marked as noLoad).
Static
loadThe package configuration to be loaded
A promise for when extra files and checkReady have been fulfilled
Static
resolveCompute the path for a package using the loader's path filters
The name of the package to resolve
True if .js should be added automatically
The path (file or URL) for this package
The Package class for handling individual components