Alternatively, if you have issues with `execute_async_script`, here's a simpler (although less performant) version:

```python
def is_ajax_complete(_driver):
    return world.browser.evaluate_script("jQuery.active") == 0

@world.absorb
def wait_for_ajax_complete():
    world.wait_for(is_ajax_complete)
```