Methods

loadFile(path, type)

Load a file.

Parameters:
NameTypeDescription
pathstring
typestring

Defaults to "text", see MDN.