> For the complete documentation index, see [llms.txt](https://matteo-gabriele.gitbook.io/vue-progressive-image/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://matteo-gabriele.gitbook.io/vue-progressive-image/placeholder-image.md).

# Placeholder image

The best way to use this plugin is to have a much smaller placeholder image to serve before the full-size image gets loaded; this will allow the plugin to fill the space with a blurred image that fades out to reveal the full-size sharper image underneath.

The placeholder image should be 1-2% of the original image size and maintain the same aspect ratio so that the transition between the picture is as natural as possible. Since the placeholder image is just a fraction in size of the original, it will be downloaded by the browser very quickly and give immediate feedback to the user that something is loading.

```html
<template>
  <ProgressiveImage
    placeholder-src="https://picsum.photos/id/1080/19/10"
    src="https://picsum.photos/id/1080/1980/1080"
  />
</template>
```

Unfortunately, generating on-the-fly placeholder images is not possible in the browser. Still, you can achieve this using module bundlers like Webpack or Rollup, or it can be done with Node or PHP in your backend and served via an API end-point, for example.


---

# 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://matteo-gabriele.gitbook.io/vue-progressive-image/placeholder-image.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.
