You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to add critical CSS in head? Is there any way to do in Next js?
Can it be done by adding data-css-critical=true and all the css for that will be added to the head?
Is there any current solution ? i am using Tailwind and I don't know who should support this at build time Next js or Tailwind.
<ul bg-red h-20 w-20 data-css-critical>
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li>
<li>Aliquam tincidunt mauris eu risus.</li>
<li>Vestibulum auctor dapibus neque.</li>
</ul>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How to add critical CSS in head? Is there any way to do in Next js?
Can it be done by adding
data-css-critical=true
and all the css for that will be added to the head?Is there any current solution ? i am using Tailwind and I don't know who should support this at build time Next js or Tailwind.
Beta Was this translation helpful? Give feedback.
All reactions