<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/you-don-t-need-javascript-for-that-ghdrvlg6e" -->

---
title: You don&#x27;t need JavaScript for that | daily.dev
description: The article discusses the rule of least power in web development, which advocates for choosing the least powerful language suitable for a given purpose. It...
canonical: https://daily.dev/posts/you-don-t-need-javascript-for-that-ghdrvlg6e
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: You don&#x27;t need JavaScript for that | daily.dev
og:description: The article discusses the rule of least power in web development, which advocates for choosing the least powerful language suitable for a given purpose. It...
og:url: https://daily.dev/posts/you-don-t-need-javascript-for-that-ghdrvlg6e
og:image: https://api.daily.dev/og/posts/GhDRVLG6E.png
og:image:alt: You don&#x27;t need JavaScript for that
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# You don't need JavaScript for that

**[Hacker News](https://daily.dev/sources/hn)** · 13 min read · 285 upvotes · 14 comments

## Summary

The article discusses the rule of least power in web development, which advocates for choosing the least powerful language suitable for a given purpose. It highlights examples of using native HTML and CSS instead of JavaScript, such as creating custom switches, using the datalist element for autosuggest, utilizing the native color picker, implementing accordions, and using dialog modals. The article also mentions future features that will further reduce the need for JavaScript.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.htmhell.dev/adventcalendar/2023/2/>

## Community discussion

Top comments from developers on daily.dev.

**@olanetsoft** · 1 upvotes

> Thanks for sharing

**@johnkatmj** · 1 upvotes

> Nice article. Thanks for sharing

**@73m3r007** · 1 upvotes

> Amazing!

**@hectorzr** · 1 upvotes

> This is an awesome resource. A lot of knowledge not everyone out there knows or even cares about

**@nityamas** · 1 upvotes

> Excellent post about reducing the amount of js and trying to use more html and css instead. I like that the user is still looking for ways to cut down on or eliminate js. Thank you for sharing.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#javascript](https://daily.dev/tags/javascript), [#css](https://daily.dev/tags/css), [#html](https://daily.dev/tags/html)

[View this post on daily.dev](https://daily.dev/posts/you-don-t-need-javascript-for-that-ghdrvlg6e)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"You don't need JavaScript for that","url":"https://daily.dev/posts/you-don-t-need-javascript-for-that-ghdrvlg6e","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/you-don-t-need-javascript-for-that-ghdrvlg6e"},"datePublished":"2023-12-02T14:15:11.441Z","dateModified":"2023-12-02T14:15:09.565Z","description":"The article discusses the rule of least power in web development, which advocates for choosing the least powerful language suitable for a given purpose. It...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c1793a61f60cd87d5e9e8c79ffc02221?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c1793a61f60cd87d5e9e8c79ffc02221?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":14,"discussionUrl":"https://daily.dev/posts/you-don-t-need-javascript-for-that-ghdrvlg6e","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":285},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":14}],"keywords":"webdev,javascript,css,html","timeRequired":"PT13M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"You don't need JavaScript for that"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/you-don-t-need-javascript-for-that-ghdrvlg6e","comment":[{"@type":"Comment","text":"Thanks for sharing","datePublished":"2023-12-04T17:43:55.435Z","url":"https://daily.dev/posts/GhDRVLG6E#c-nFRqgnz0d","author":{"@type":"Person","name":"Idris Olubisi","url":"https://daily.dev/olanetsoft","image":"https://lh3.googleusercontent.com/a-/AOh14GhW1OA0MCBAhz6NmI0GgWZ_AohlivuRjfa6UfxMZQ=s100"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Nice article. Thanks for sharing","datePublished":"2023-12-07T05:50:37.764Z","url":"https://daily.dev/posts/GhDRVLG6E#c-HC99MhDhq","author":{"@type":"Person","name":"Johnkat Mj","url":"https://daily.dev/johnkatmj","image":"https://media.daily.dev/image/upload/s--0UfJY2aL--/f_auto,q_auto/v1695667588/avatars/avatar_RIu9fterrYq3xlY4PaECm"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Amazing!","datePublished":"2023-12-07T14:45:25.060Z","url":"https://daily.dev/posts/GhDRVLG6E#c-4qV25zVM9","author":{"@type":"Person","name":"Petar Kolev","url":"https://daily.dev/73m3r007","image":"https://lh3.googleusercontent.com/a/ALm5wu2jEq5qaVO1BG0L8GwAdGz9J_o38qWtlBBuxZEymQ=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"This is an awesome resource. A lot of knowledge not everyone out there knows or even cares about","datePublished":"2023-12-06T14:00:20.121Z","url":"https://daily.dev/posts/GhDRVLG6E#c-P7kx6ES21","author":{"@type":"Person","name":"Hector Zurga","url":"https://daily.dev/hectorzr","image":"https://avatars1.githubusercontent.com/u/35118597?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Excellent post about reducing the amount of js and trying to use more html and css instead. I like that the user is still looking for ways to cut down on or eliminate js. Thank you for sharing.","datePublished":"2024-02-09T15:50:29.140Z","url":"https://daily.dev/posts/GhDRVLG6E#c-S7NszvUSO","author":{"@type":"Person","name":"Nityam Sheth","url":"https://daily.dev/nityamas","image":"https://lh3.googleusercontent.com/a/ACg8ocKQFOZp7KrIzM9G3Bf45Kr9ynopD5VPKn2UtLft1zY4AI8=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

