Skip to content

do not set default values for loading, decoding, etc #46

@leoj3n

Description

@leoj3n

I believe you may be overriding the browser's ability to discern what is best by having default values for loading and decoding:

https://github.com/zerodevx/svelte-img/blob/master/src/lib/SvelteImg.svelte#L13-L16

As far as I understand how it's supposed to work, I believe it's best to leave these unset so the browser can make its own educated decision. Same with fetchpriority, if you were to add that.

As it currently stands, these values will always be set, and the browser will have no ability to discern on its own.

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