---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.0
alternate:
  - https://divkit.tech/docs/en/concepts/divs/2/div-download-callbacks.md
  - https://divkit.tech/docs/ru/concepts/divs/2/div-download-callbacks.md
  - href: https://divkit.tech/docs/en/concepts/divs/2/div-download-callbacks.md
    type: text/markdown
    title: Markdown version
  - href: https://divkit.tech/docs/en/llms.txt?revision=r21749084
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://divkit.tech/docs/en/llms.txt?revision=r21749084

# div-download-callbacks
Callbacks that are called after [data loading](https://divkit.tech/docs/en/concepts/interaction.md#loading-data).

## Parameters
| Parameters | Description |
| --- | --- |
| `on_fail_actions` | <p>**array**</p><p>Actions in case of unsuccessful loading if the host reported it or the waiting time expired.</p> |
| `on_success_actions` | <p>**array**</p><p>Actions in case of successful loading.</p> |

<details>
<summary>JSON</summary>

```json
{
  on_fail_actions: [
    {
      download_callbacks: div-download-callbacks,
      is_enabled: "bool_int",
      log_id: "string",
      log_url: "string",
      menu_items: [
        {
          action: div-action,
          actions: [ div-action, ... ],
          text*: "string"
        },
        ...
      ],
      payload: "object",
      referer: "string",
      scope_id: "string",
      target: "string",
      typed: div-action-typed,
      url: "string"
    },
    ...
  ],
  on_success_actions: [
    {
      download_callbacks: div-download-callbacks,
      is_enabled: "bool_int",
      log_id: "string",
      log_url: "string",
      menu_items: [
        {
          action: div-action,
          actions: [ div-action, ... ],
          text*: "string"
        },
        ...
      ],
      payload: "object",
      referer: "string",
      scope_id: "string",
      target: "string",
      typed: div-action-typed,
      url: "string"
    },
    ...
  ]
}
```
</details>
