If you look at line 38-40, you will get
<script id="swift_loading_indicator"> document.documentElement.className=document.documentElement.className+" "+document.documentElement.getAttribute("data-fouc-class-names"); </script>
What changes the class of a document element to include the value set in this attribute.
This allows css to hide "Flash of Unstyled Content" as a loadable page and javascript.
Later, scripts remove this class to load a fully loaded page.
It also seems to be used in the ajax page's loading code, allowing content to load hidden and only appear after all content has been loaded.
Attributes starting with the name data-
are part of the html 5 specification and are private data. They are designed so that web pages can store information on a web page without violating HTML5 validation.
source share