stdlib-js / www

Website for stdlib, a standard library for JavaScript and Node.js.
https://stdlib.io
Apache License 2.0
6 stars 8 forks source link

[RFC]: refactor side menu to not inject SVG icons #29

Closed kgryte closed 2 years ago

kgryte commented 2 years ago

Description

This RFC proposes refactoring the side menu to not add unnecessary SVG icons into the DOM.

Currently, we use Material UI buttons which wrap SVG icons. Given the large number of packages (which we can expect to only increase), we're potentially adding thousands of unnecessary DOM nodes which harms performance.

Better would be to instead rely on CSS background images and load a single SVG which can be cached for a performance boost.

Related Issues

No.

Questions

No.

Other

No.

Checklist

kgryte commented 2 years ago

This has been resolved. We now just use plain text for the icons.