Inline
AstroCritters is an Astro integration that brings critters to your Astro project. With the Critters plugin, you can inline your app’s critical CSS and lazy-load the rest. However, it’s important to note that AstroCritters will only inline your statically generated build and pre-rendered routes, and not inline your requests.
There are two ways to add the AstroCritters integration to your project.
astro add
command. This command will install all necessary dependencies and peer dependencies, and update your astro.config.*
file to apply the integration. To install AstroCritters using this method, run the following command in your project directory:npx astro add critters
npm install critters
After installing the dependencies, you need to apply the AstroCritters integration to your astro.config.*
file using the integrations
property.
AstroCritters is an Astro integration that allows you to inline critical CSS and lazy-load the rest in your Astro project. It provides various features such as overriding default options, adding multiple paths to inline, file filtering, input-output mapping, and controlling logging. By following the installation guide, you can easily add AstroCritters to your project and take advantage of its powerful features.