Re:Entire website in a single HTML file
by dredmorbius on Thursday December 23, 2021 @11:26PM
(#29670188)
I prefer the denotation of a single file site (SFS). Perhaps alternatively a multi-paged file (MPF), as there might still be multiple such pages on a site, or a site comprised of a mix of MPFs, SPAs, and traditional static single-page URLs.
MP-SFS
But what is the benefit?
Showing the capabilities of the web browser as an application target, directly. You have HTML, CSS, and JS available.
No build tools required. Take this file and open it with a web browser. Then modify it, and refresh the browser.
Distribution and Development for applications is about as straightforward and accessible as it gets.
But what benefit is there for the end user?
Source code that is readable. Viewing the source on web pages in the 90s was how I learned to make my first web pages.
There is a concept of a single file app (SFA). You can share an html file, and that is the application.
It can have inlined micro js/css frameworks, or hand-rolled everything. An SFA should be human readable though- viewing the page source is useful.
I think it’s a concept worth exploring.