admin管理员组

文章数量:1122846

We are working on a CMS which is based on ASP.NET Core Blazor & TailwindCSS. we've developed multiple blocks using tailwindcss and used tailwind's cdn script for development. but it's performance is not good in lighthouse test. If we add defer or async tags for tailwind's script, initial load of page won't have styles.

Whad do you suggest for our workflow? Should we use static css with common tailwind classes (tailwind v2 approach) or build styles after each time page content changed? or any better idea?

Thanks

We've tried using tailwind's cdn script and it's performance is not good for production use.

We are working on a CMS which is based on ASP.NET Core Blazor & TailwindCSS. we've developed multiple blocks using tailwindcss and used tailwind's cdn script for development. but it's performance is not good in lighthouse test. If we add defer or async tags for tailwind's script, initial load of page won't have styles.

Whad do you suggest for our workflow? Should we use static css with common tailwind classes (tailwind v2 approach) or build styles after each time page content changed? or any better idea?

Thanks

We've tried using tailwind's cdn script and it's performance is not good for production use.

Share Improve this question asked Nov 21, 2024 at 14:58 Hadi AhmadiHadi Ahmadi 91 bronze badge 1
  • Please provide enough code so others can better understand or reproduce the problem. – Community Bot Commented Nov 21, 2024 at 15:18
Add a comment  | 

1 Answer 1

Reset to default 0

definitely build your styles after each change and publish built pages.

本文标签: cssHow to use TailwindCSS with dynamic content which came from DBStack Overflow