On Friday, August 14, 2015 at 3:59:23 PM UTC-7, James Burke wrote:
> There does not seem to be a need for extra APIs in the browser for
> controlling layouts or paints using this approach:

Great work James!

I like that we can play with this approach right now, but I'm wondering if we 
should still pursue some API to facilitate this behavior for the Web.

My concern here is that if we don't, we're basically saying that the right way 
to write webapps, is to put their content in a template and then inject the 
template into body when we're done with startup JS.

That feels like a dirty hack, not sure how accessible it is, and it will 
literally do nothing in a scenario of any JS error.

The API, even as a sugar coating on top of the heuristic you described, would 
not only solve the problems but also enable us to provide better UX for error 
case scenarios (your APP did not load properly, restart?) and open up 
possibilities for the engine to optimize for it (maybe HTML/CSS parsing should 
happen in parallel with init JS?).

zb.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to