Interfaces in Go make web apps more modular, testable, and easier to evolve. Start concrete, then extract an interface when you need flexibility (new implementations or tests).
If your script contains a static container ID, you’ll need to update it after every rebuild,
making the process impractical and error-prone.
Loaders are helpful, but if poorly designed they can create problems: they announce useless information to screen readers, move the interface too much, and challenge contrast or perception.