---
title: "preview.advance: Advance preview time — HTML kit command — Kition"
description: "Runs the page's timers and animations forward by `millis` milliseconds (a whole number), without changing the saved source; answers whether the rendered page changed."
canonical: "https://developer.kition.ai/docs/kits/html/commands/preview.advance"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/html/commands/preview.advance](https://developer.kition.ai/docs/kits/html/commands/preview.advance)

# preview.advance

**Advance preview time.** Runs the page's timers and animations forward by `millis` milliseconds (a whole number), without changing the saved source; answers whether the rendered page changed.

- Kit: HTML 0.1.0 (HTML (.html or .htm)); reference: [HTML kit commands](https://developer.kition.ai/docs/kits/html.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `millis` | `integer` | no |  |

## Call through html_run

```text
html_run {
  "path": "<file>.html",
  "steps": [{ "command": "preview.advance" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `millis`. html_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `changed` | `boolean` | yes | whether the rendered page changed |

```json
{
  "additionalProperties": false,
  "properties": {
    "changed": {
      "description": "whether the rendered page changed",
      "type": "boolean"
    }
  },
  "required": [
    "changed"
  ],
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "millis": {
      "type": "integer"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/html-darwin-arm64@0.1.0 and the kit itself (html_commands through @kition/cli@0.1.1, built from KitionAI/kition-html@e0ad2d3).
