News for hackers. Stuff that matters.
Re:Show HN: Fontofweb – Discover Fonts Used on a Website or ... by vinnymac on Saturday May 31, 2025 @01:30PM (#44145755)
Small piece of advice you should be debouncing your primary input at the very least, especially because you insert an entry into the browser history for every character typed (consider only doing that on submit). Plus if any calls are made to the network in response to a key press you’d add unnecessary pressure.

Presently trying to navigate back to the comments from your site after typing out a domain required far more effort than navigating backward a couple times.

Re:Show HN: Fontofweb – Discover Fonts Used on a Website or ... by sim04ful on Saturday May 31, 2025 @01:50PM (#44145853)
I'll fix that thanks
Re:Show HN: Fontofweb – Discover Fonts Used on a Website or ... by sim04ful on Sunday June 01, 2025 @12:29PM (#44152025)
Fixed: instead of debouncing, i'm using location.hash, no network requests since hash arguments are ignored in urls.

I can't believe I was making a network request per keystroke, textbook example.

Re:Show HN: Fontofweb – Discover Fonts Used on a Website or ... by kinduff on Sunday June 01, 2025 @03:41PM (#44153292)
Heads up that hashes cannot be read from the server.