ready-signal

command
v4.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 3 Imported by: 0

README

Ready Signal

Fires a deterministic "app is mounted" signal after the first commit — both to Go code and to the host page — so external scripts can wait for a real first frame instead of guessing.

What it shows

  • ui.OnReady(fn) — a Go callback that runs once, right after the first commit to the DOM.
  • The gwc:ready DOM event dispatched at the same point, which any host-page script (or test harness) can listen for.

Run

gwc dev examples/public/ready-signal

The page logs the Go OnReady callback firing and receives the dispatched gwc:ready event after the first render.

Documentation

Rendered for js/wasm

Overview

Command ready-signal is the e2e fixture for G16 (ui.OnReady + the gwc:ready DOM event): it records the Go ready callback firing, and the host page listens for the dispatched gwc:ready event — both after the first commit.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL