The reference to the document object.
The resource URL.
Is this resource a script or a stylesheet?
OptionalskipLoading: () => booleanFunction to determine if the resource should not be loaded.
Optionalattributes: { [key: string]: string }Extra attributes to add on the HTML element before attaching it to the document.
A function to load a resource and wait for it to load.