Skip to content

Conversation

@chenba
Copy link
Contributor

@chenba chenba commented May 28, 2025

Because:

  • we don't want the CSS request to block rendering

This commit:

  • change the link tag's initial rel to preload and switch to stylesheet on page load

Because:
 - we don't want the CSS request to block rendering

This commit:
 - change the link tag's initial rel to preload and switch to stylesheet
   on page load
@chenba chenba requested a review from a team as a code owner May 28, 2025 22:15
filename: 'static/css/[name].[contenthash:8].css',
chunkFilename: 'static/css/[name].[contenthash:8].chunk.css',
}),
isEnvProduction &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we do this all the time and not just prod?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could remove that but it wouldn't have an effect since that tag isn't injected and the css file isn't built for the dev env.

Copy link
Contributor

@vbudhram vbudhram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@chenba chenba merged commit 957f0a1 into main Jun 2, 2025
19 checks passed
@chenba chenba deleted the FXA-11759 branch June 2, 2025 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants