How to load webp images?

I’m using starling framework to make a slot game (on web)
I tried to use but it gave me an error on web while compiling
need to load webp images in my project
can anyone help?

WebP support is browser specific on HTML5:

I would not currently recommend it, unless you also have a backup for browsers that do not support it