4 ms·
Seems to me the right approach would be for sites to embrace the HTML5 semantic tags (<nav>, <article> and so forth), and browsers to offer a way to view just t
by EvilTerran 9y ago
Seems to me the right approach would be for sites to embrace the HTML5 semantic tags (<nav>, <article> and so forth), and browsers to offer a way to view just that semantically-marked-up content - without scripts, with restricted CSS, and maybe with some kind of filtering out of third-party content. Something like Firefox's "reader view", but including more bits of the page.
So the browser would still be downloading the exact same HTML document (straight from the publisher's server, how you want it) - just then ignoring all the clutter. Compare to AMP, which AFAICT necessitates serving a whole separate version of the page with only the blessed markup... it reminds me of the bad old days, having a separate mobile site instead of a single responsive design for all devices. All seems rather antithetical to that grand ideal of separating structure and presentation.
- captainmuon 9y agoAn idea I've been floating for a while is to have two HTML profiles in the future. Call it HTML6 document and HTML6 app. HTML6 document is a restricted subset, similar to what you suggest. I would still allow complete design flexibility, and I might even allow a subset of JS, but only for presentation purposes. Definitely not turing complete, and no ajax etc.. Probably I wouldn't allow cross-origin resources with credentials. So you could include an image or stylesheet, but the browser would not send along cookies. What I'm aiming for is a replacement for PDF, something you could read on an ebook, etc.. Just a plain document. On the other hand, I'd have HTML6 app to be able to use the complete web platform.
- madeofpalk 9y agoThis sounds good as a dream, but in reality it would actually achieve anything because everyone, including the publishers, would just use 'HTML6 app'.
- codedokode 9y agoYou can make light web pages with current technologies but nobody wants a page without advertisement, popups, analytics and notifications.
- swift 9y agoHTML6 document is essentially epub, which is HTML and CSS under the hood.
- Vinnl 9y agoIsn't that pretty much what AMP is? IIRC, you don't need a separate version of the page with only AMP on it - Google's cache just extracts only the AMP parts of your page when caching. Or has this changed since I saw it? (And if so, why - that would probably also be an argument against your solution :) )