News for hackers. Stuff that matters.
Re:No more CSS and HTML, just JS by mstrem on Friday September 13, 2013 @09:03PM (#6384182)
I agree, also I personally prefer the idea of having things separate, HTML for the structure, CSS for the style, and JavaScript for the behavior. You can create very clean and neat pages like that especially if you don't mix each technology e.g. keep everything separate in different files..

I am however open to new ways of doing things so I will keep an eye on this, but I must admit, that index page looks a lot more daunting to edit than a normal HTML page, especially if you are not familiar with JavaScript.

Re:No more CSS and HTML, just JS by iopq on Saturday September 14, 2013 @03:26AM (#6384958)
Except CSS sucks for styling. You can't even make a "scroll to top button" disappear with CSS because it doesn't know if the document is at the top. CSS is missing a ton of things.
Re:No more CSS and HTML, just JS by hrjet on Saturday September 14, 2013 @11:25AM (#6385846)
One could argue if that is "style" or "behaviour".
Re:No more CSS and HTML, just JS by iopq on Monday September 16, 2013 @02:05AM (#6391879)
I mean I want that button to disappear when the page is already scrolled to the top. The scrolling up part I'm fine with making with JS. I just don't feel right about attaching a scroll handler to have a very unoptimized implementation of such a thing since that scroll handler will fire EVERY SINGLE SCROLL. But the browser could optimize away "is document at the top" CSS calls by knowing we scrolled down (and by definition we can't be at the top then).