You might not need JavaScript

Back to Posts

You might not need JavaScript

Why create an additional dependency for yourself when you don’t need it? This site shows you how to make things that you might be tempted to build with JavaScript using HTML, CSS or Sass. Examples include an image slider, view switcher, colour picker, forms, file upload and more.

JavaScript is great, and by all means use it, while also being aware that you can build so many functional UI components without the additional dependency.

Maybe you can include a few lines of utility code, or a mixin, and forgo the requirement. If you’re only targeting more modern browsers, you might not need anything more than what the browser ships with.

This site is fully copied from youmightnotneedjquery.com, an excellent resource for vanilla JavaScript created by @adamfschwartz and @zackbloom. But this time, we take a look at the power of modern native HTML and CSS as well as some of the syntactic sugar of Sass. Because, you might not need scripts for that task at all!

[button size=’large’ style=” text=’Click here for more details & demo’ icon=’fa-angle-right’ icon_color=” link=’http://youmightnotneedjs.com/’ target=’_blank’ color=” hover_color=” border_color=” hover_border_color=” background_color=” hover_background_color=” font_style=” font_weight=” text_align=” margin=”]

Back to Posts