#!/usr/bin/env node // check-leaf-hints — a map leaf gives the browser its origins early; a non-map leaf carries no map hint. // // ★ WHY. A first visit to a map leaf ran serially: leaf HTML → the bundle (250–470 KiB gz, parsed) → // only THEN the engine (from cdn.jsdelivr.net or api.mapbox.com) → the style host → tiles → data. Four // origins, discovered one after another, none pre-connected — the shape behind A9's 3–5 s cold map // (_qa-cycle/03-deployment-cycle/A9-MAP-LOAD-STATIC.md). generate-tree now emits, per MAP leaf, a // preconnect for the engine + style + data origins and (on the 'auto' leaf, which carries no engine //