From 44d563c97126bb1b60ed5124858ac7bcdba71950 Mon Sep 17 00:00:00 2001 From: Leilukin Date: Thu, 13 Jun 2024 22:54:02 +0800 Subject: [PATCH] Add info about reducing JavaScript dependence to Now page --- src/pages/now.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/pages/now.md b/src/pages/now.md index f1a9a543..d8f93729 100644 --- a/src/pages/now.md +++ b/src/pages/now.md @@ -1,6 +1,6 @@ --- title: Now -updated: 2024-06-09 +updated: 2024-06-13 eleventyNavigation: key: Now order: 3 @@ -16,6 +16,16 @@ You can also check out my [status.cafe profile](https://status.cafe/users/leiluk ## What I am Working on +### Reduce Website's JavaScript Reliance + +In order to accommodate visitors who have disabled JavaScript, I have been working on reducing this website's dependence on JavaScript to perform basic functions. + +Previously, the navigation bar's hamburger menu on mobile needed JavaScript to open and close, while the "Back to top" button used JavaScript to hide or display based on the visitor's scroll position. Now I have removed JavaScript from being needed to perform these functions, though the hamburger menu still uses JavaScript to enable pressing the Escape key to close to improve accessibility for keyboard navigation. + +For components that still require JavaScript, such as my status.cafe widget and the Website Carbon badge on the home page, I have added `