Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've been wondering for a while if we could create an extremely simplified rendering engine that would only accept modern markup and css:

- forget everything about quirksmode and all kinds of workarounds that browsers have today.

- only accept Javascript from a vetted repository that contains things like autocomplete and ajax reload.

- and here comes the smart part: embed it next to an ordinary engine, ideally in Firefox, add a meta tag or content type or something that will get the browser to try to render it in this engine.

1. The idea is to get it to run extremely fast, and

2. get a few websites to optimize for it (Wikipedia?)

3. once people recognize certain pages loads extremely much faster in that browser they'll flock to it

4. more sites will start optimizing

5. since Javascript is extremely limited we get back to a saner content web



A better use case for this engine would be Electron replacement.

Much easier to get adoption if you can demonstrate performance benefits and electron apps are more performance sensitive than webpages in general (who really cares about Wikipedia rendering speed - it renders fast enough)



You may be interested in a project that's doing almost exactly that: a new content type that sits alongside the "classic" web, with a heavy focus on performance and only JavaScript from a vetted repository allowed.

https://amp.dev/


Isn't this the thing Google is pushing?

If so it has some huge downsides that overshadowes it.


What downsides does AMP have that your proposal would not?

Another way to think about this is, people were already thinking along these lines and tried to build something, and that thing is AMP. If you want to build something that avoids the failings you see in AMP, you're going to need to think hard about how your plan is different.


For starters I'm not suggesting

- that everyone has to serve all their content from a single domain. I only suggest serving optional Javascript from a single vetted repo.

- that the distribution repo should be owned and controlled by one if the worlds largest advertising companies.

- that the solution only should cover mobile.


Those are mostly not the case anymore for AMP; the only one that looks correct to me is that AMP documents have to include the AMP runtime. If you wanted to make a pure HTML+CSS page, with no JavaScript, I can't think of any technical reason why the AMP specification couldn't be extended to consider that valid AMP. I think the main question is whether there are many sites that would be interested in serving that way?

For your other points:

* The AMP project is now part of the OpenJS foundation, along with Node, Electron, and others: https://openjsf.org/blog/2020/06/23/openjs-world-day-one-hig...

* AMP is not specific to mobile, though it did start that way; there are sites that serve all of their pages in AMP format to both mobile and desktop users.

(Disclosure: I work for Google, speaking only for myself)


> If you wanted to make a pure HTML+CSS page, with no JavaScript, I can't think of any technical reason why the AMP specification couldn't be extended to consider that valid AMP.

Meaning that right now it isn't that way, right?

> The AMP project is now part of the OpenJS foundation, along with Node, Electron, and others: https://openjsf.org/blog/2020/06/23/openjs-world-day-one-hig....

For some reason everyone still seems to associate amp with Google, and the only times I can remember finding AMP pages are when I search with Google.

If a site is technically AMP but served from a non Google domain, I admit I haven't noticed it.


> Meaning that right now it isn't that way, right?

Correct, the current spec doesn't allow that. But, as I said, I think that is something that could reasonably easily change if many sites wanted to publish with vanilla CSS and HTML.

> For some reason everyone still seems to associate amp with Google, and the only times I can remember finding AMP pages are when I search with Google

Google started the project, and is still by far the biggest contributor. But Bing also supports AMP, caching and serving AMP pages: https://www.bing.com/webmaster/help/bing-amp-cache-bc1c884c




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: