Celebrate JavaScript Naked Day every year on April 24
Originally posted at: https://js-naked-day.org/
Today my personal web site is being served sans-JavaScript in honor of JavaScript Naked Day.
I implemented this on my web site using a global JS_ENABLED
in my Eleventy configuration file (propagated to templates via Eleventy’s global data). This removed the <script>
elements in the output of the site’s build.
Origin Story
It started with a toot celebrating CSS Naked Day:
It’s #CSSNakedDay! I love this trend—it highlights the importance of a foundation of good HTML. We need a similar one for JavaScript! #JSNakedDay should be April 10 😅
Related: I first wrote about CSS Naked Day in April 2020.
And then Simon MacDonald ran with it, settling on April 24:
In some countries, “April 24” can be written as “4/24” — which is also the HTTP error code for a failed dependency. JS Naked Day promotes the fact that websites should work without a dependency on JavaScript.
Simon even built a web site: js-naked-day.org
4 Comments
catraxx :v_cat: :antifa:
@zachleat Jokes on you! My site doesn't use JS to begin with
I’m just Nick ????
@zachleat I misunderstood the premise and now I’m unemployed
Zach Leatherman :11ty:
@chileannick the emperor has no clothes! Is it too late to take over as head of a monarchy?
Zach Leatherman :11ty:
@catraxx every day is a holiday for you!