News for hackers. Stuff that matters.
Re:How MDN's Autocomplete Search Works by peterbe on Tuesday August 03, 2021 @04:22PM (#28053677)
> They hi-jacked the browser's `/` key to focus the field, which is something I hate.

You're not the first one to point it out. Please join github.com/mdn/yari to raise your voice. It's an Open Source project after all.

> They should have just had the search field focused automatically

Why? There's a lot of JS to load to make that work. If you never need to do a search (e.g. from a Google search) it would be a potential waste.

> Also, I'm confused, I thought https://mdn.dev/ was the new thing because Mozilla was stepping back from MDN. Is it a fork?

That domain is just an alias we don't currently use. It's still the old MDN from Mozilla. No fork.

Re:How MDN's Autocomplete Search Works by daleharvey on Tuesday August 03, 2021 @04:59PM (#28054129)
> Why? There's a lot of JS to load to make that work. If you never need to do a search (e.g. from a Google search) it would be a potential waste.

Confused by what this comment is meant to say exactly, but just in case its not known already, seems this situation is what the autofocus attribute is for @ https://developer.mozilla.org/en-US/docs/Web/HTML/Global_att..., no JS needed

Re:How MDN's Autocomplete Search Works by deecewan on Wednesday August 04, 2021 @01:58AM (#28057684)
the op is saying "if we autofocussed, we'd need to load all the JS involved in performing the search"