# srcset — the attribute for image size optimization

Page load speed directly affects the number of users that will read through your article and the experience these users will get from interacting with it. One of the most important factors affecting the page load speed is the size of images.

We use the `srcset` attribute to optimize image sizes. This attribute receives multiple versions of an image in various sizes. Thus, the reader will automatically get the image that fits the size of his screen. E.g., small images for mobile and full-size images for desktop devices.

Your site should generate several sizes of the same image to implement this technology. WordPress generates several sizes by default. Additional sizes can also be generated with theme settings and other plugins.

You can select sizes that will be available on the post page in the Setka Editor plugin settings. To keep image proportions, we only show sizes with the `crop=false` setting activated. The original image size is on by default.

![Screenshot of Setka Editor plugin settings in WordPress: srcset sizes](/files/-MSYoVvWPjcwLm3uM7Ar)

Please note that WordPress will not generate the image if its' size exceeds the [content width](https://codex.wordpress.org/Content_Width) of your theme, even if you select it in the Setka Editor plugin settings. You can fix it by changing the content width of your theme.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://setka.gitbook.io/help-center/integrations/setka-and-wordpress/srcset-the-attribute-for-image-size-optimization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
