Re:Google AMP lowered our page speed, and there's no choice ...
by cromwellian on Wednesday April 10, 2019 @09:57PM
(#19630487)
> specify some rules / annotations that would help its analyzer answer "Yes" to more pages
Isn't that exactly what AMP is? Whatever "rules" Google specifies will in fact, define a DSL/subset of HTML that can efficiently answer "yes". As people demand more and more capability in this ruleset, eventually you'll end up with something like AMP, only the syntax will be slightly different, but the fact that it is a weird subset of HTML will remain.
Re:Google AMP lowered our page speed, and there's no choice ...
by cyxxon on Thursday April 11, 2019 @03:04AM
(#19631816)
In a way yes, but isn't one of the "rules" that is has to be cached/re-served from Googles servers as well? That is a rather problematic one, especially wrt antitrust issues...
Re:Google AMP lowered our page speed, and there's no choice ...
by lern_too_spel on Thursday April 11, 2019 @11:13AM
(#19635311)
No, those rules guarantee that the page is safe to preload. It will also be cached and preloaded by Bing, Baidu, and Cloudflare.
Re:Google AMP lowered our page speed, and there's no choice ...
by lern_too_spel on Wednesday April 10, 2019 @10:11PM
(#19630555)
AMP doesn't allow arbitrary JS. It only allows a fixed set of components. That's what makes it amenable to (trivial) static analysis -- just verify that the page contains only the elements allowed by AMP.
This isn't how static analysis works. Yes, the halting problem says you can't determine safety of any possible input in a Turing-complete language, and yes, JS is Turing-complete. But it doesn't say you can't determine safety of some inputs. You can write an algorithm that outputs "Yes," "No," and "I don't know" just fine. Google can, if they desire, specify some rules / annotations that would help its analyzer answer "Yes" to more pages. They've chosen not to do that, and instead to only build an analyzer for AMP.
Besides, preloading pages is about fetching content, not rendering them, I think.