Whenever I apply the autofocus="autofocus"
attribute to an input element, it causes a brief glitch in Firefox. The content briefly appears without the CSS styling applied, resulting in elements not centered and headings rendered in default fonts.
If I take out the autofocus attribute, the page loads smoothly and displays correctly once ready.
Is there a way to prevent this temporary display issue while still utilizing the autofocus feature in Firefox?