Entire website in a single HTML file
21–30 of 333 posts
Re: Entire website in a single HTML file
#22This 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…
Re: Entire website in a single HTML file
#23My 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
#24My gut instinct is that these CSS tricks may be bad for accessibility. Does anyone know how well a screen reader would deal with it?
i recently read that display:none elements are hidden from screen readers
Re: Entire website in a single HTML file
#25This 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…
You're describing PDF files, but unfortunately Adobe didn't invest much time or money into making them interactive with a scripting language.
Re: Entire website in a single HTML file
#26How is this news? React SPAs have been around for years, and SPAs existed long before React too.
This thing is fast unlike anything built as a spa nowadays that make your laptops fan spin so fast it wants to take off.
Though almost no one is able to do it.
Which is weird, as it's objectively easier than writing enterprise react crap.
Re: Entire website in a single HTML file
#27How is this news? React SPAs have been around for years, and SPAs existed long before React too.
No, not a SPA. 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.
Re: Entire website in a single HTML file
#28Normal 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
#29This 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…