# 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="https://727245914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIDIcmPiz7q6Sr6ZHHQxV%2Fuploads%2FxFTwOm0orehS0HmMNNyt%2Fimage.png?alt=media&#x26;token=56c266bb-ad8d-48ae-bf46-336d76435f58" 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="https://727245914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIDIcmPiz7q6Sr6ZHHQxV%2Fuploads%2F100pm41bo4wN0Hx8Hcj5%2Fimage.png?alt=media&#x26;token=f10dd928-01c7-49bf-aab8-5fd5ecdb4a52" 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="https://727245914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIDIcmPiz7q6Sr6ZHHQxV%2Fuploads%2FkHI5X8d1Bqfe5NPbNJoE%2Freact-native-1.svg?alt=media&#x26;token=3ced1726-cddd-4eb1-b675-64f54b0a1711" 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="https://727245914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIDIcmPiz7q6Sr6ZHHQxV%2Fuploads%2FG42p3gjJmFhr6SVg1Ur7%2Fimage.png?alt=media&#x26;token=7fd2d951-b94e-4e1f-bb61-8e658c70badb" 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="https://727245914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIDIcmPiz7q6Sr6ZHHQxV%2Fuploads%2FmuBf4QHKCuYqXad1knya%2Fimage.png?alt=media&#x26;token=34e50a8e-3363-4833-886d-10b05259833f" 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: 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://docs.cloudimage.io/implementation/responsive-images-js-plugin.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.
