to the header or the fotter of your site. Of course you have to adopt the paths (the example uses a folder called js).
If you prefer only using this script in case the brwoser of your visitor does not have native support for WebP you can use this script
which tests if the browser understands WebP and only loads the WebPJS script if the browser does not.
This solution works for nearly all browsers and supports WebP images used as a source of img-tags. By the way the flashscript is only used with IE…what else…
WebPJS does not work for embed an opbject tags.
Maybe I should write a small wordpress plugin to integrate this one ….