Live data from Hacker News

You might not need JavaScript

youmightnotneedjs.com

1–10 of 254 posts

Re: You might not need JavaScript

#3
post #2

The site makes no claims as such, but it undermines its own credibility if it uses .js files. Surely they could have figured a way to do without them.

At the start of the article they do state that you might need javascript. The point was to show off things you can do without javascript, not say that you never need it.

Re: You might not need JavaScript

#5
It's sad that this site uses SCSS for displaying the rules, I'm using it in production and fully understand it, but it's needlessly abstracting the rules for the sake of a few extra words in each declaration.

That aside, these are some pretty cool examples. Are there ways of doing this with CSS which doesn't screw with my browser back button?

Re: You might not need JavaScript

#8
post #7
post #4

The issue with CSS sliders is that they mess with the browser history. I expect my back button to open the previous page, not to move an image slider.

aren't you talking about the view switcher ( http://youmightnotneedjs.com/#view_switcher ) ?

In this demo yes, however I have seen CSS image sliders with buttons which happily sit on the back button.

Re: You might not need JavaScript

#9
The you don't need jQuery website had a concrete use case - you need not include an entire library into your website for some simple tasks which makes your website faster.

Though, this site is cool in showing the power of CSS, I am not sure if there is any specific advantage of using CSS over JS to design tabs, sliders, etc. Just use the best tool for the job!

Post reply on HN