This content originally appeared on Zach Leatherman and was authored by Zach Leatherman
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
This content originally appeared on Zach Leatherman and was authored by Zach Leatherman
Zach Leatherman | Sciencx (2024-04-24T00:00:00+00:00) Celebrate JavaScript Naked Day every year on April 24. Retrieved from https://www.scien.cx/2024/04/24/celebrate-javascript-naked-day-every-year-on-april-24/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.