Skip to content

Update to proper MIME type #1

@theMikeD

Description

@theMikeD

Great code, playing with it now in WordPress. After setting it up I noticed error like the following in the Chrome dev tools console

Resource interpreted as Font but transferred with MIME type application/x-font-woff2

Looking through the JS I noticed this

var localStoragePrefix = 'x-font-' + fontName;

Isn't the official MIME type for this without the x- part? Changing this made the errors go away.

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