Are you referring to the class switch on the html tag? You said it would be fine in the external js file? It's also external in bedrock so I think it will be fine there? I don't have enough content yet to test if there's a FOUC.