This will call a server function once after 5 seconds:
def index(): callback = js.call_function(handle_it) page.ready(js.delay(callback, 5000)) return dict() def handle_it(): return js.alert("Gotcha!")
Greetings.