Entire website in a single HTML file
css-tricks.com
Entire website in a single HTML file
1–10 of 333 posts
Re: Entire website in a single HTML file
#2Re: Entire website in a single HTML file
#3How is this news? React SPAs have been around for years, and SPAs existed long before React too.
Re: Entire website in a single HTML file
#4How is this news? React SPAs have been around for years, and SPAs existed long before React too.
The difference compared to SPAs is that this doesn't use javascript.
Re: Entire website in a single HTML file
#5Normal websites used to be one file way back in the day. It was a "pro tip" to split out the JS & CSS into a separate files.
Re: Entire website in a single HTML file
#6See also: https://stackoverflow.com/a/46503187 https://news.ycombinator.com/item?id=29661935
And the linked site garnered some discussion as a "show hn":
"Show HN: A simple way to make HTML websites": https://news.ycombinator.com/item?id=25170078
Re: Entire website in a single HTML file
#7No post body was provided.
Re: Entire website in a single HTML file
#8This is something I've always wanted for virtual textbooks. A single .html file with all the JS, CSS, images as inline data blobs, etc. For most physics, math, CS, etc books, this should be possible. It would make it trivial to download the book for offline use and share it with others. Other than the raster images, the entire content of these types of books would probably fit in a couple MB of text. The use of #anchors or other smart URL manipulation would also make it easy to share internal hyperlinks if you want to tell a friend to look at chapter/section #foo_bar of the book.
Re: Entire website in a single HTML file
#9[deleted]
Re: Entire website in a single HTML file
#10How is this news? React SPAs have been around for years, and SPAs existed long before React too.
Also, those SPAs are loading the React literary off of a CDN. It’s not inlined into the page.