Skip to content

Ability to specify link media attribute #3097

Open
@espositofulvio

Description

@espositofulvio

Describe the problem

For accessibility and performance it would be good to have a way to specify the media attribute for the generated CSS.
I mean that all the

<link rel="stylesheet" href="_app/index.012930190.css">

could be actually something like

<link rel="stylesheet" href="_app/index.012930190.css" media="screen">

thus many screen or braille readers, etc., could avoid downloading the stylesheets.

Describe the proposed solution

I'm not sure what a good a good solution would be but I guess I would prefer having a default media="screen" if nothing specified and maybe the ability in sfc files to do something like:

<style media="screen"> <!-- or print etc. -->
</style>

Alternatives considered

No response

Importance

nice to have

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions