> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# heavy-media-in-request-handler

> Heavy image (sharp) or PDF rendering runs directly inside an HTTP request handler.

## What it flags

`sharp` image processing, Puppeteer `page.pdf()` or `html-pdf` rendering runs inside a request handler.

## How to review or fix

Move it to a job queue or worker thread. Contextual, because offloading changes the API.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "heavy-media-in-request-handler": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.