Lurker News

Comments (229) 60 threads

Show all comments

Showing thread 11 of 60

russellbeattie#
At this point, browsers should allow non-markup files - specifically JS or WASM - to be the base of a web page. Browsers will already automatically add in and into the DOM if they're missing on a page, so literally, you could have a website that's just a and it'd be parsed and run without issues.

The index page at this point is mostly just a DOM skeleton on which to hang references to CSS, media, scripts and metadata. We might as well cut out the last step already.
If there was an official HTML-to-JSON format, we could even use that as well. It would probably already exist, but the question is always what to do with node attributes, text nodes and child-nodes. There's a dozen ways to organize them in JSON.