A team that I am working on has gotten into the habit of using tags in random places in the body of our HTML pages. For example:
However, it's also good in that you know the JavaScript code needed for a section of HTML is going to be there for it. Rather than having to assert and build up some inclusion at the top of the file.
So, rather than "if you're going to use this HTML, make sure you import xyz.js" you can just include the HTML and be done with it.
So, it's not necessarily horrible evil. Perhaps not spectacularly awesome, but not utterly terrible either. It kind of depends on the intent.