brumate/ui

How the parts resume

A brumate page ships no code before someone uses it. The parts are built for that, and a few of their behaviors come from it.

Handlers run after the event

The loader catches an event, loads the code of its handler, and runs it once the browser is done with the event. So a handler cannot call preventDefault, and focus can have moved by the time it runs. prevent(handler, keys) from brumate/events is what applies during the event, before any code loads.

The server renders first

Without scripts