-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.0.2 regression #49
Comments
@rounce thank you for this report, i will investigate this as soon as i can |
okay, i've done a quick investigation into this issue. the problem: workaround solution: <img src="https://godon.ru/kyh1009.png"/>
<img src="https://forumupload.ru/uploads/0019/3c/8c/46/376640.webp" /></p>
<script src="https://unpkg.com/[email protected]/dist-cjs/polyfills.js"></script>
<script src="https://unpkg.com/[email protected]/dist-cjs/webp-hero.bundle.js"></script>
<script>
var webpMachine = new webpHero.WebpMachine({
// this setting should fix the issue
detectWebpImage: webpHero.defaultDetectWebpImage,
// this setting is for debugging and testing,
// to force webpHero to convert webp's,
// even when it's not necessary
webpSupport: Promise.resolve(false),
});
webpMachine.polyfillDocument();
</script> |
Thanks for the quick response. The workaround works |
🍻 i should also mention that the workaround operates by checking for ".webp" extensions, which means, using the workaround, all your webp images must end in the |
for example:
don't work. v0.0.1 works just fine.
The text was updated successfully, but these errors were encountered: