# June 2025

## More flexibility for render instruction set

With our [Rendering Instruction Set](/javascript-rendering/rendering-instruction-set.md) it is possible to instruct the browser on specific interactions before rendering the page.&#x20;

To give you even more control, we introduced some new events that you can use together with the `wait_for_event` instruction.

#### <mark style="background-color:purple;">Wait\_for\_event => Stabilize page before rendering</mark>

By default this is 5 seconds. If the page needs more time though, you can add the event `stabilize`  to your `wait_for_event` instruction and set a maximum of 30 seconds before the page is rendered.&#x20;

**Example:**

```
[{
    "type": "wait_for_event",
    "event": "stabilize",
    "seconds": 10
}]
```

#### <mark style="background-color:purple;">Wait\_for\_event =>  Wait for network idle</mark>

You will be flexible in how long you want to wait for the network idle after you were e.g. clicking on a button. In that case you can add the `networkidle` as event to the `wait_for_event` instructions and define how long it should wait (in seconds).&#x20;

**Example:**

```
[{
    "type": "wait_for_event",
    "event": "networkidle",
    "timeout": 10
}]
```

You can find all instruction set options and details about the wait\_for\_event instruction here.&#x20;

<p align="center"><a href="/pages/y5Th18eZsMFJ3Yh5e3ws" class="button primary">Instruction set </a></p>


---

# 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.scraperapi.com/resources/release-notes/june-2025.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.
