So apparently changing the href attribute of a link means that the website has to request for the css file and wait while the component is loaded instantly causing FOUC
So I just copy pasted every css file into the header so the stylesheets are always loaded. And to retain the ability to just id an element as “sidebar” without worrying about conflicts I just wrapped every stylesheet with the id of the main element.
I was also optimizing bit unpacking and casting position and restructuring layouts. I swear I didn’t spend all 5 hours just writing 20 lines of code.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.