Skip to content

Prevent multiple insertions of the same style in the header #913

@priandsf

Description

@priandsf

SSR
Styles are currently added to the dom.head without checking if they already have been added through SSR. As a result, the same styles will appear twice, which does not hurt but is unnecessary. Each generated style should be identified by a custom id and checked before being added to the DOM head.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SSRneed helpIf you are looking to contribute to LWC, this is where you start.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions