OptionalonabortOptionalonerrorScript to be run when an error occurs when the file is being loaded
OptionalonloadScript to be run when the file is loaded
OptionalonloadstartScript to be run just as the file begins to load before anything is actually loaded
OptionalonprogressThe progress event is fired periodically when a request receives more data.
Script to be run on abort