The <script> defining giteaWorkspace() was placed AFTER the <div x-data> in the DOM, causing Alpine to try to evaluate giteaWorkspace() before the function was defined. This resulted in 'Uncaught ReferenceError' for all component properties (fileLoading, fileLanguage, showFile, etc.). Fix: moved the <script> block to appear BEFORE the x-data div in the HTML source, ensuring the function is defined when Alpine initializes.