Skip to content

Vue support #11

Description

@darkcharmander

I am using Vue for my website, and I cannot get this polyfill to work.

When using the require/register method in the Readme, Edge will complain with the following error (On localhost):

An SSL certificate error occurred when fetching the script.
Which is strange, because the website works fine. The certificate is self-signed, but it is accepted.

When directly importing the files like this:

import 'avif.js/avif.js';
import 'avif.js/avif-sw.js';

Nothing happens. Safari on iOS doesn't seem to do anything in the above scenarios. I cannot debug on desktop Safari, because I haven no more mac OS devices.

Not that it's of much value, but Firefox and Chrome both don't work. On Firefox it's because of the ServiceWorker being unsupported, I believe that this is a known issue.

Does anyone know how to get this working in Vue? I would love AVIF support in browsers which do not support it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions