[r34] log webp support
This commit is contained in:
parent
8308a21cb1
commit
a89090cfa9
1 changed files with 3 additions and 0 deletions
|
@ -26,6 +26,9 @@ $header_html
|
||||||
<script defer src="https://unpkg.com/webp-hero@0.0.0-dev.21/dist-cjs/webp-hero.bundle.js"></script>
|
<script defer src="https://unpkg.com/webp-hero@0.0.0-dev.21/dist-cjs/webp-hero.bundle.js"></script>
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
webpHero.detectWebpSupport().then(x => {
|
||||||
|
shm_log("webp", x);
|
||||||
|
});
|
||||||
var webpMachine = new webpHero.WebpMachine()
|
var webpMachine = new webpHero.WebpMachine()
|
||||||
webpMachine.polyfillDocument()
|
webpMachine.polyfillDocument()
|
||||||
});
|
});
|
||||||
|
|
Reference in a new issue