Tailwind CDN script not loading
Anonymous
HOBBYOP

15 days ago

Everything was working fine and out of the blue one of the app page starts to overlay grids on each other. The console log is saying "3.3.5:64 cdn.tailwindcss.com should not be used in production. To use Tailwind CSS in production, install it as a PostCSS plugin or use the Tailwind CLI: https://tailwindcss.com/docs/installation (anonymous) @ 3.3.5:64 Tailwind CDN script not loading reliably on some Railway deployments, causing the grid layout to fall back to a default block.

$10 Bounty

2 Replies

Status changed to Awaiting Railway Response Railway 15 days ago


pixelpartyza-a11y
FREE

15 days ago

You should download the script and upload it with your site instead of using tailwind cdn.

Literally as the console response is saying, follow the installation link.


isaulx
FREE

13 days ago

Hey there!

As the console says, the Tailwind CDN file is heavy, and contains all the clases, it shouldn't be using on production, it contains a lot of styles because that file isn't purged from what your app needs.

You have two options:

  • You should use the Tailwind tool along with your app, so it can only serve the CSS that is actually need it. Please check it out at their docs, it's well-documented, worth spending a couple minutes: Tailwind Docs

  • You can still download the Tailwind CSS file from the CDN, but you should host it on your applications.


Loading...