Follow

Here's an idea: a challenge.

Making a website? Avoid using JavaScript.

See how much of the functionality and design you were planning can be done using plain HTML, CSS and other web technologies that are now embedded in the typical browser without needing JavaScript code to do any of it.

Even if it seems impossible, look it up. It just might be possible.

There's so much stuff in there now, even a seasoned webmaster could be surprised.

· SubwayTooter · 13 · 38 · 24

@polychrome Early days and multiply-broken, but I haven't written a line of JS for this prototype and, ugly as it is, the CSS could be improved and I don't plan to add any. morbid-interregnum.cz/index

@hj it's a challenge, not a mandate :blobowo:

Though I'm fairly sure it's possible to make an interactive gallery with 10 images that doesn't occupy too much space with CSS... :thonking:

@polychrome Agreed. We got a bit stuck with a shopping cart, and have been faffing around with how to hit the server with successive cart updates then displaying the invoice, Not quite there yet, but mildly confident we're gonna do the whole site JS'less.

@polychrome I also really like the 10k website challenge, less restrictive in what you pick but more in where you put code. Newer forms of that challenge also require everything to work without JS, so you can only use it for progressive enhancement (you know... what JS was meant to be at one point)

@polychrome On my website I always use JS when there is no other option, so even with uBlock, uMatrix and NoScript active, no exception are required :)

@polychrome if its for non advanced animations and simple hover effects, or pretty advanced positioning, its totally enough to just add css.

tbh javascript is only good for dynamic "applications" (the whole webapp thingy)
@dirtycommo @polychrome Can confirm, it is awesome.

I'm writing this toot RIGHT NOW in a text-based browser using my no-JS Mastodon client called Planiverse: https://github.com/FuzzJunket/planiverse

Egads! Gadzooks! Zounds! etc.

@polychrome Hmmm I think I can do it. My personal website only has a JS dependency, and I can remove it to use the CSS replacement (it's font-awesome), so...

@polychrome

Why would you avoid using #javascript ?

A different thing of course is to avoid *misusing* JavaScript, which I believe is what your post mainly addresses.

There's also quite a bit of overlap between the different technologies. Sometimes it's obvious what (not) to use, sometimes it's a personal call.

Example of not a good idea: 🙂

experiments.hertzen.com/css3ca

@61 @polychrome But why limit CSS abusues to frontend code? I propose node.css, the world's first server-side framework written entirely in CSS!
Sign in to participate in the conversation
Cybrespace

Cybrespace is an instance of Mastodon, a social network based on open web protocols and free, open-source software. It is decentralized like e-mail.