veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

295
active users

#javascript

113 posts90 participants0 posts today

🌘 絕不自行撰寫日期解析函式庫
➤ 從Luxon到原生JavaScript,Eleventy優化日期解析的旅程
zachleat.com/web/adventures-in
作者Zach Leatherman分享了Eleventy專案中,從採用Luxon日期解析函式庫到最終放棄,改用原生JavaScript的原因。Luxon雖然功能強大,但體積過大,佔用了Eleventy整體資源的22%。經過評估多個替代方案後,發現Day.js雖然體積小巧,但準確性不足。最終,Eleventy決定採用更嚴格的ISO 8601格式,並期待未來JavaScript的Temporal API。
+ 很有意思的經驗分享,讓我更瞭解選擇函式庫時需要考量的不僅是功能,還有體積和效能。
+ 期待Temporal API的到來,這會是JavaScript處理日期和時間的重要進步。
#網頁開發 #JavaScript #Eleventy

Zach LeathermanNever write your own Date Parsing Library—zachleat.com
More from Zach Leatherman :11ty:

The Invoker Commands API is the new hotness for a declarative #HTML solution to the problem “click and see something happen!!”

However…

If we’re inside shadow DOM and the button being clicked is supposed to do a thing via its host component, then uh, nope. 🤨

Thankfully there’s always a workaround in the Wide World of the Web, so I’ve written it up and here it is!

😁 Yay for building directly on top of platform mechanics. 👏 #JavaScript #WebComponents #WebDev

thathtml.blog/2025/07/more-fun

That HTML Blog · More Fun with Invoker Commands and Web Components
More from Jared White (🏳️‍⚧️ ally)

Wow this site is going to take up a lot of my time! Amazing!

unsuckjs.com/

Lists small #javascript providing reactivity and web component helpers without a build step.

I'm so sick of build steps and bloat and things that "compiled OK last month". It's fine if you have a massive budget, but my clients don't. So I'm always looking for ways to reduce maintenance while still providing tools that meet their needs and work as they should.

unsuckjs.comUnsuckJS