Profile avatar
danieleirsuti.dev
I write javascript stuff to pay my rent Member of GDG Pescara
82 posts 28 followers 168 following
Regular Contributor
Active Commenter

danieleirsuti.dev/blog/chi-con...

Alla fine ho scritto un post sull'IA anch'io danieleirsuti.dev/blog/la-moss...

danieleirsuti.dev/blog/come-ho...

Today, I came across this small piece of code for mocking, but I'm not sure if it's a good approach. The environment is #JSDOM, and the testing tool is #Vitest. The purpose of this test is to mock "window.location.assign" and "window.open" Test experts, help.

Sviluppare applicazioni web frontend è difficile, stare al passo con le novità è stressante e JavaScript è sempre il problema. C'è del vero: dovremmo rivedere il modo in cui lo utilizziamo oggi. danieleirsuti.dev/blog/la-demo...

Just updated my website to #astro 5.2.3 and #tailwind 4.0.3 and my css blew up 🤔 Locally it works but in production... well, not good. No clues what's happening. live: danieleirsuti.dev old build: danieleirsutidev-jqrie8cj8-daniele-irsutis-projects.vercel.app

America RN: youtu.be/bOR38552MJA?...

Dear frontend users: Stop using the "custom" prefix when you have no ideas on how to name things, like: Custom component; customClass; custom date; Stop it. Thank you.

@vitest.dev silently updates to v3.0.0? 👀

Must reads for web developers - how modern browsers work: 1️⃣ bit.ly/browsers-pt1 2️⃣ bit.ly/browsers-pt2 3️⃣ bit.ly/browsers-pt3 4️⃣ bit.ly/browsers-pt4 and browser.engineering a free to read book on the topic

I tried so hard to use astro actions to handle a silly contact form and I don't think is a good idea if you want to use it in a progressive enhancement approach because there are no (ergonomic) ways to get partial input values if something goes in error 🤷‍♂️

Exploring @astro.build and React form actions: is there a way to progressively enhance the form to restore filled values when a validation error occurs in some fields?

Did you know it's called the View Transition API (and not the View Transitions API [plural])? Now MDN knows too (github.com/mdn/content/...) so there's no reason to keep using the wrong name. Learn about this and other misconceptions in this post: developer.chrome.com/blog/view-tr...

TIL: don't spread Request object ✅

Cool, Blizzards design system is custom elements built with @lit.dev

How do you make a button that doesn't change it's width when it's in a loading state? Use CSS Grid to stack items, and visibility: hidden to hide/show spinner! This approach allows the largest item to size the button, and keeps the button text accessible

Someday single page applications will become something "unusual" 🤞 developer.chrome.com/docs/web-pla...

Great artists steal. Let's build some RAD websites @rich-harris.dev 🤝

I've completed The Reindeer Hatch A Plan - Advent of TypeScript 2024 Day #10 adventofts.com/events/2024/10 I didn’t enjoy this one bit ...

One of the biggest problems with UI development is about to be solved! Customizable <select> brings allows us to create totally custom dropdowns with HTML and CSS. Accessible, gracefully degrades and requires no JS! 4.5 min video explainer + demo → www.youtube.com/watch?v=MA9W...

È ora di un nuovo... 🍾 Aperitech - Holidays Party Festeggia con noi l’arrivo delle vacanze in perfetto stile GDG, tra community, networking e... BRINDISI! 🥂 🗓 Quando? Il 12 dicembre alle 19:00 📍 Dove? Caffè 137 - Viale Pindaro 83 - 65127 Pescara bit.ly/4fTpFFp

Did you know that jQuery outperforms React, what? 😳 Sounds like clickbait, but is reality. The HTTP Archive shows 82% of sites that use jQuery have good INP on mobile📱, while only 67% do when they use React⚛️. Not just sites, also libraries. Let's fix that👇#webperf kurtextrem.de/posts/improv...

First long article for a publication other than my own for a while here for HTMLHell on view transitions htmhell.dev/adventcalend...