How to write a JavaScript-free todo app using just HTML and CSS
1–10 of 49 posts
Re: How to write a JavaScript-free todo app using just HTML and CSS
#2Re: How to write a JavaScript-free todo app using just HTML and CSS
#3Re: How to write a JavaScript-free todo app using just HTML and CSS
#4Re: How to write a JavaScript-free todo app using just HTML and CSS
#5Re: How to write a JavaScript-free todo app using just HTML and CSS
#6These kinds of tricks are nice for progressive enhancement - you can have a navigation section in your server-side-rendered SPA that outputs a fully usable nav like this, and if a user has JS disabled, they'll still be able to navigate around your site, albeit with hard page reloads instead of more instant transitions. It's funny that people are using js frameworks to render js-free snippets that are then progressive…
Re: How to write a JavaScript-free todo app using just HTML and CSS
#7So you can but... looking at the code... you don't want to.
Re: How to write a JavaScript-free todo app using just HTML and CSS
#8So you can but... looking at the code... you don't want to.
Right, but I find these demos interesting nonetheless - in that they reveal capabilities of HTML + CSS that, as a casual frontend developer, you wouldn't normally think of them as having.
It's not an exercise in efficiency, or even attempting to prove that HTML + CSS is somehow better than a JS version. I think it's about getting as much as you can out of CSS and HTML. As a viewer, looking at these projects usually give me 2-3 tricks to add to my collection and is worth the read.
I honestly don't think I'll ever NEED to implement a CSS+HTML calculator sans JS, but it's nice to know that it's possible and it could be something I look at if I want to implement a piece of it for something similar.
Re: How to write a JavaScript-free todo app using just HTML and CSS
#9So what happens when I create my 51st todo?
You could also make more than 50 in his js renderer file on github if you needed more
Re: How to write a JavaScript-free todo app using just HTML and CSS
#10So what happens when I create my 51st todo?