←back to thread

578 points smusamashah | 1 comments | | HN request time: 0s | source
Show context
johnfn ◴[] No.42463936[source]
I think "single HTML file" sets up a certain expectation that a five-thousand-line long HTML file with ~3500 lines of embedded JS doesn't really live up to. I mean, hey, everything can be a single HTML file if you embed the bundle inline in your HTML!

Cool project, though - don't mean to take away anything from it.

replies(14): >>42464100 #>>42464173 #>>42464210 #>>42464396 #>>42464481 #>>42464520 #>>42464775 #>>42465102 #>>42466230 #>>42466423 #>>42466472 #>>42467609 #>>42472114 #>>42474653 #
1. hnlmorg ◴[] No.42465102[source]
Any project can be a single HTML file, but most projects prefer not to.

Most projects prefer to have a separate database, server side rendering and often even multiple layers of compilers too.

A lot of projects even require hundreds of megabytes of language runtime in addition to the browser stack.

So a single HTML file is still unusual even if it’s something nearly any web app could technically do if they wished.

And for this reason alone, I think it’s unreasonable to have expectations of a JavaScript-less, CSS-less code-golfed HTML file. This isn’t sold as a product of the demo scene (that’s another expectation entirely). This is sold as a practical self-hosting alternative for people who need a kanban quickly and painlessly. Your comment even proves that it works exactly as that kind of solution. So having inlined JS is a feature I’d expect from this rather than complain about.