Load an image asset. In client environments, where Image is available, this
method will return a promise that resolves when the file is loaded (and decoded),
and rejects on any error encountered. In server environments, the value of src
is resolved immediately.
Load an image asset. In client environments, where
Imageis available, this method will return a promise that resolves when the file is loaded (and decoded), and rejects on any error encountered. In server environments, the value ofsrcis resolved immediately.