> For the complete documentation index, see [llms.txt](https://docs.cloudimage.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudimage.io/implementation/responsive-images-js-plugin.md).

# Responsive images JS plugin

Responsive images libraries adapt the image size according to the screen or container size of the end user, thereby allowing websites and mobile apps to load faster across various screen sizes.

For example, on an iPhone, Cloudimage will deliver smaller images than it would on a 24" desktop computer screen, thus accelerating the page loading time.

Managing a responsive site manually can be tedious, especially for a site with more than a handful of images needing to be displayed on the ever-growing number of different devices & various screen-sizes. Therefore, the Cloudimage team has developed a JS plugin to automate everything for you. Check it out [here](https://github.com/scaleflex/js-cloudimage-responsive) as well as a [demo](https://scaleflex.github.io/js-cloudimage-responsive/).

{% hint style="info" %}
For a good intro to Responsive Images, read through our blog article on [Responsive Images](https://medium.com/cloudimage/responsive-images-in-2019-now-easier-than-ever-b76e5a43c074).
{% endhint %}

The Cloudimage JS lib will adapt all your URLs automatically and offers built-in Responsive Design, Lazyloading, and many more features to make your website responsive and fast as well as add nice loading effects to your images

<table data-header-hidden><thead><tr><th width="374"></th><th></th></tr></thead><tbody><tr><td><div><figure><img src="/files/3UvYWvAMc5wR9w2t5ViF" alt="" width="135"><figcaption></figcaption></figure></div></td><td><p>Vanilla JS:<br><a href="https://scaleflex.github.io/js-cloudimage-responsive/">demo page</a></p><p><a href="https://github.com/scaleflex/js-cloudimage-responsive">github</a></p><p><a href="https://codesandbox.io/s/6jkovjvkxz">code sandbox</a></p></td></tr><tr><td><div><figure><img src="/files/pmvF7HQFsqzRYGpZt6yg" alt=""><figcaption></figcaption></figure></div></td><td><p>React:<br><a href="https://scaleflex.github.io/react-cloudimage-responsive/">demo page</a></p><p><a href="https://github.com/scaleflex/react-cloudimage-responsive">github</a></p><p><a href="https://codesandbox.io/s/1840nl707j">code sandbox</a></p></td></tr><tr><td><div><figure><img src="/files/dKveHlBPQcxwMV1Z7lc4" alt="" width="188"><figcaption></figcaption></figure></div><p></p></td><td><p>React Native:</p><p><a href="https://github.com/scaleflex/react-native-cloudimage-responsive">github</a></p><p>code sandbox (tba)</p></td></tr><tr><td><div><figure><img src="/files/LhRYB3s2sqclKjEp6TlK" alt="" width="135"><figcaption></figcaption></figure></div></td><td><p>Angular:<br><a href="https://scaleflex.github.io/ng-cloudimage-responsive/">demo page</a></p><p><a href="https://github.com/scaleflex/ng-cloudimage-responsive">github</a></p><p><a href="https://codesandbox.io/s/qr6zzr8rj?fontsize=14&#x26;module=%2Fsrc%2Fapp%2Fapp.module.ts&#x26;">code sandbox</a></p></td></tr><tr><td><div><figure><img src="/files/ri0xO6wSUk6ZdpkYwyYq" alt="" width="135"><figcaption></figcaption></figure></div></td><td>Vue.js:<br><a href="https://scaleflex.github.io/vue-cloudimage-responsive/">demo page</a><br><a href="https://github.com/scaleflex/vue-cloudimage-responsive">github</a><br><a href="https://codesandbox.io/s/vue-cloudimage-responsive-example-bqg7g">code sandbox</a></td></tr></tbody></table>

#### &#x20;<a href="#od_20318ce5" id="od_20318ce5"></a>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.cloudimage.io/implementation/responsive-images-js-plugin.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
