Discourse is a Javascript app that runs in the browser. It is not static HTML and CSS. It is a ball of JS code that is delivered to the browser, which then executes that code.
View your F12 network tab in the browser if you don’t believe me. Watch the requests that come through.