Skip to content

Optimizing for Production

Tailwind CSS generates CSS based on the actual usage of the project, aiming to produce the smallest possible CSS file and improve performance. Even for large projects, when combined with minification, Tailwind CSS generate a single CSS file that’s less than 10kB, which can be downloaded once and cached for all pages.

Yabe Siul uses a hybrid approach to integrate Tailwind CSS into WordPress.

During development, Yabe Siul uses the Play CDN to dynamically create the required page styles. The Play CDN is designed for development purposes only, and is not the best choice for production.

For the most performance in the production environment, Yabe Siul will use engine running right on your browser to generate a tiny single cached CSS file. We use Lightning CSS to vendor prefixing, fallbacks for modern syntaxes, handling nesting, and minifying for the smallest possible build with widest browser support. None of your data is transferred over the network. Everything is done on your browser.

Step 1: Generating the cached CSS file

Section titled Step 1: Generating the cached CSS file

To generate the cached CSS file, you can go to Yabe Siul → Settings and open the Performance panel. Then, click the Generate button.

Generating the cached CSS file

Step 2: Using the cached CSS file

Section titled Step 2: Using the cached CSS file

Now that the cached CSS file is generated, you can start using it on the front end by ticking the Use cached CSS if available checkbox.

Using the cached CSS file

Save the changes and you are ready to get the best performance out of Tailwind CSS in WordPress.