Live data from Hacker News

No more CSS and HTML, just JS

ojjs.org

1–10 of 191 posts

Re: No more CSS and HTML, just JS

#7

Seems similar to Reactive Coffee: http://yang.github.io/reactive-coffee/ Having proper components is a big win. However, it seems it requires a command line dependency to the build app, which would be nice not to: http://ojjs.org/docs.html#file-types

Author here -- Just to clarify OJ is a javascript library (oj.js) with only one dependency jQuery. It doesn't need specific file types to work and the files types in the docs are just talking about the (optional) command-line tool -- basically a static site generator to make simple sites (github pages) easier to make.

Check out this JSFiddle to see how the dependences work: http://jsfiddle.net/evanmoran/c3Reb/

(Notice that OJ doesn't need HTML or CSS!)

Re: No more CSS and HTML, just JS

#8
This would be terrible from a performance perspective on mobile. Not because the phone executes JS slowly (it might, but that's not issue). The problem is the network latency around downloading the initial html (whatever little html you need) and then sending a further request to download the JS.

Pagespeed goes into this a bit here: https://developers.google.com/speed/docs/insights/Prioritize...

Re: No more CSS and HTML, just JS

#9
Love the concept, but the site itself (which I assume was built using the framework) is visibly laggy (in Chrome, on a MacBook Pro) - I'd be worried about using this for anything where performance was important, and for mobile (esp Android), it would probably be too slow to use. :-(
Post reply on HN