There's a newer version of Pico CSS!

Loading

aria-busy="true" enable a loading indicator.

<button aria-busy="true">Please wait…</button>
<button aria-busy="true" class="secondary"></button>

It can be applied to any block:

<article aria-busy="true"></article>

Or any text element: