2 ms·
That's what our product, Elevate Web Builder, does. It uses special JSON control interface files to describe the element styling: http://www.elevatesoft.com/ma
by TimJYoung 11y ago
That's what our product, Elevate Web Builder, does. It uses special JSON control interface files to describe the element styling:
http://www.elevatesoft.com/manual?action=viewtopic&id=ewb2&topic=Control_Interfaces http://www.elevatesoft.com/manual?action=viewtopic&id=ewb2&t...
The benefit of using JSON is that a JS compiler can include it in the HTML loader for the JavaScript application, minimizing any more round-trips to the web server, and can treat the JSON as a "resource" that can be manipulated in an easier fashion than CSS at runtime. Furthermore, the JSON can be compressed/uncompressed using identifier compression, making it tiny compared to CSS.
CSS is perfect for web sites that primarily use static/dynamic HTML organized as pages. It's a bad fit for single-page JS applications that act more like traditional desktop/mobile applications.