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
1 Answer
Reset to default 0definitely build your styles after each change and publish built pages.
本文标签: cssHow to use TailwindCSS with dynamic content which came from DBStack Overflow
版权声明:本文标题:css - How to use TailwindCSS with dynamic content which came from DB? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736309693a1934109.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论