# Page load speed optimization settings

There are several ways to include Setka Editor Styles on the page depending on particular CMS features (for example, on the site markup and how pages are loaded).

Three Setka Editor WordPress plugin settings can help with managing Styles for your page.

## (Default) Only load styles are needed for a specific Setka Editor post.

All Setka Editor styles will be loaded on the page as separate (standalone) files. This provides a balance between user experience and speed.

The example set of files:

| File   | URL                                                                                         | Description                                                                                                                                                                                        |
| ------ | ------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Common | https://ceditor.setka.io/common\_css/common\_css\_version.css                               | Setka component styles that are independent of a particular style and layout grid                                                                                                                  |
| Style  | https://ceditor.setka.io/clients/company-id/css/style-id.css                                | A file describing the particular design system ([style](https://editor-help.setka.io/hc/en-us/articles/213108629-Creating-and-editing-post-styles)), that was used for the current post decoration |
| Layout | https://ceditor.setka.io/clients/company-ID/layout\_option\_builds/company-id/layout-id.css | A file describing the particular [Layout Grid](https://editor-help.setka.io/hc/en-us/articles/213111509-Configuring-Grid-Systems-), that was used for current post decoration                      |

## Inline critical Styles into a page and load the rest of the styles asynchronously

This will reduce the delay to display post content but might result in post content redraws after the full page load.&#x20;

This way to include the styles that fit the best when someone would like to achieve the best [First Contentful Paint](https://web.dev/fcp/) score.

In the post there will be inlined critical Styles:

Compared to the previous default styles the size of CSS that is inlined is less than is being contained in separate (standalone) styles.

The example set of critical files:

| File            | URL                                                                                         | Description                                                                                                                                                                                                                                                                                                                                                     |
| --------------- | ------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Critical Common | https://ceditor.setka.io/common\_css/common\_css\_critical\_version.css                     | Setka component styles that are independent of a particular style and Layout Grid. Contains decoration for the basic components that with a high probability will be used to design the first screen of the post.                                                                                                                                               |
| Critical Style  | https://ceditor.setka.io/clients/company-id/css/style-id\_critical.css                      | File describing the particular design system ([style](https://editor-help.setka.io/hc/en-us/articles/213108629-Creating-and-editing-post-styles)), that was used for current post decoration. Contains decoration for the basic components that with a high probability will be used to design the first screen of the post.                                    |
| Layout          | https://ceditor.setka.io/clients/company-id/layout\_option\_builds/company-id/layout-id.css | A file describing the particular [Layout Grid](https://editor-help.setka.io/hc/en-us/articles/213111509-Configuring-Grid-Systems-) used for current post decoration. Layout styles can’t be divided into the critical and deferred styles as far as the post layout is one of the main things that determine the post appearance. So layout styles are inlined. |

Inlined styles apply to Setka content as soon as it is loaded on-screen.

Moreover, there is a list of deferred styles that load asynchronously thus don’t block the page render. Deferred styles are the rest of the styles that are necessary for the content decoration and that were not included in the set of critical styles.

The example set of deferred files:

| File            | URL                                                                                                                    | Description                                                                                                                                                                                                                                                                                                                         |
| --------------- | ---------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Deferred Common | https://ceditor.setka.io/common\_css/common\_css\_deferred\_version.css                                                | Setka component styles that are independent of a particular style and Layout Grid. Contain decoration for the basic components that with a high probability will be **NOT** used to design the first screen of the post.                                                                                                            |
| Deferred Style  | [https://ceditor.setka.io/clients/company-id/](https://ceditor.setka.io/clients/company-id/)css/style-id\_deferred.css | File describing the particular design system ([style](https://editor-help.setka.io/hc/en-us/articles/213108629-Creating-and-editing-post-styles)), that was used for current post decoration. Contain decoration for the basic components that with a high probability will **NOT** be used to design the first screen of the post. |

## (Legacy) Load a combined CSS file with all your Setka Editor styles.

This will increase the assets' size and might affect load speeds. Use only if you plan on displaying on a single page several Setka Editor posts in different styles that are loaded by JS. In this case, you need to have all the styles in one CSS to render multiple posts correctly.

The example file:&#x20;

| File                        | URL                                                                         | Description                                                                                                                  |
| --------------------------- | --------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| Combined Styles and Layouts | https://ceditor.setka.io/clients/company-ID/css/company-id\_version.min.css | Rules for all the styles and grids of a company, created in [Content Design System Manager (CDSM)](https://editor.setka.io/) |
