Vyasa is not rendering a page in one atomic step. It is letting the browser interleave head initialization, framework CSS, local CSS, HTML paint, HTMX swaps, and later diagram rendering. A race condition appears when two of those steps both have the right to change the UI, but the visible result depends on which one finishes last. The important point is that these are usually not "bad code" bugs; they are ordering bugs. Once you see the page as a sequence of competing arrivals instead of a single render, the failures become easier to explain.