Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Revisit inline <style> issue #1115

Open
@Conduitry

Description

@Conduitry

In an attempt to fix #1076, I recently merged #1098, but this seems to have had an unpleasant side effect of moving a whole bunch of styles from .css files to the inline <style> block. Some stuff needs to be rethought here.

I asked Rich what he recalls being the 'critical' CSS that was supposed to end up in an inline <style> tag, and he said

the intent was that any component styles that were depended upon by the current route would be considered critical, along with (IIRC) any CSS that couldn't be definitively associated with one specific route, e.g. import './global.css'
actually no, wait
i'm not sure that's right
gah, you know what? i can't remember. i feel like in most situations it would just create a link for a CSS chunk, and then it could skip that chunk whenever it was lazily requested. i can't remember exactly what would cause something to be promoted to inline styles

so there's definitely some confusion here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions