Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Preact refresh CLS issues with Tailwind#1719

Caligulaa started this conversation inGeneral
Jul 26, 2022· 1 comments· 3 replies
Discussion options

I'm trying to use tailwind with preact. Everything works well in dev.

In prod my breakpoint size classes cause the layout to flash on first page load/refresh.
Looks like anything in "lg:mt-2....." takes a few ms to be applied, causing weird CLS.

Anyone know how to fix this behavior?

Thanks <3

You must be logged in to vote

Replies: 1 comment 3 replies

Comment options

Is this with Preact-CLI?

You must be logged in to vote
3 replies
@Caligulaa
Comment options

Yes, visible on resistance.biz the main header text content flash the small screen version first, then display what ever is in my lg: parameters.

@rschristian
Comment options

Please make an issue in that case with a minimum reproduction.

@Sirleid
Comment options

Sim

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
3 participants
@Caligulaa@rschristian@Sirleid

[8]ページ先頭

©2009-2025 Movatter.jp