Entire website in a single HTML file
41–50 of 333 posts
Re: Entire website in a single HTML file
#42The hell happened? Did I get cryogenically frozen and just woke up?
Re: Entire website in a single HTML file
#43Using url fragments seems to limit how well Google can index it. site:john-doe.neocities.org in a google search only finds the main page and dist page.
Re: Entire website in a single HTML file
#44Earlier quoted context omitted.
MHT did this 20 years ago and got all but abandoned (probably for good reasons).
Interestingly, the support for mht/multipart is still there in Chrome and Firefox; or at least it was relatively recently. However it only works for files and not when accessing an mht file over http. The format itself is relatively simple.
A lot of the issues "solved" in modern frameworks could have been addressed by using this, but instead things went a different path.
Re: Entire website in a single HTML file
#45My gut instinct is that these CSS tricks may be bad for accessibility. Does anyone know how well a screen reader would deal with it?
Re: Entire website in a single HTML file
#46Re: Entire website in a single HTML file
#47Anyone here absolutely godsmacked that this is the top news on HN? The hell happened? Did I get cryogenically frozen and just woke up?
Re: Entire website in a single HTML file
#48This looks like one of those sites I made as a kid. What is the significance of this?
Re: Entire website in a single HTML file
#49This 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 #anch…
This method even works well with the back/forward browser buttons, something that a naive show/hide JavaScript solution wouldn’t.
Re: Entire website in a single HTML file
#50Normal 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.