I did that for a single page web app once, but I took it a step further and inlined the JS too. I was surprised how much I enjoyed developing that way, and how much it didn&#x27;t bother me. I kept libraries such as Jquery separate. Just the code I was editing I kept all inline in one large HTML file.<p>The self-contained simplicity was appealing, the only hurdle was navigating a large file in my editor. But there&#x27;s ways to manage that with bookmarks and neatly organised sections and so on.<p>I liked how the smallest component of the app, was the app itself.
I see HTML, CSS and JS working together as one unit anyway in a single-pager, so I wanted them living and versioned together. On this particular app, I had lots of dynamic elements updating around and lots of exploring new concepts. Wanted to avoid dependency fragmentation headaches. And to be honest, switching between frontend files can be annoying (to me) when I&#x27;m doing lots of tinkering. I&#x27;d rather switch between locations in the same file.