How we think about browsers
The GitHub engineering article How we think about browsers shows their progressive enhancement attitude. My takes:
- Make fast sites:
At GitHub, we believe it’s not fully shipped until it’s fast.
- I was not aware of the optional chaining (
?.
) and nullish coalescing (??
) operators. - Particularly the idea of creating a popover menu by leveraging a details element is an interesting twist:
With JavaScript disabled, you’re still able to log in, comment on issues and pull requests (although our rich markdown toolbar won’t work), browse source code (with syntax highlighting), search for repositories, and even star, watch, or fork them. Popover menus even work, thanks to the clever use of the HTML <details> element.
Comments