Removing jQuery from GitHub.com frontend | GitHub Engineering

Saved on .

The GitHub Engineering team recently completed a gradual transition away from jQuery and wrote in-depth about the experience. There’s a lot of good detail in the post, but I’m particularly fond of this bit:

As part of our refined approach to building frontend features on GitHub.com, we focused on getting away with regular HTML foundation as much as we could, and only adding JavaScript behaviors as progressive enhancement. As a result, even those web forms and other UI elements that were enhanced using JS would usually also work with JavaScript disabled in the browser. In some cases, we were able to delete certain legacy behaviors altogether instead of having to rewrite them in vanilla JS.

Stick around through the end of the article for more on how the team is using Custom Elements to enhance the user interface.

Visit “Removing jQuery from GitHub.com frontend | GitHub Engineering”