DocsReferenceSpeed and good practice
Speed and good practice
One 8.4 KB stylesheet, inline SVG and no script to make anything move.
#Speed
- The stylesheet is 8.4 KB, 1.6 KB compressed, and the only file every page needs.
- An icon is inline SVG of a few hundred bytes: no icon font, no sprite request, no script.
- Motion uses transforms and opacity, which browsers animate without redoing layout.
- Sound is built in the browser when it is first switched on. No audio files are downloaded.
- Import icons one by one, so a bundle holds only what a page uses.
#Good practice
- Use the value for state, not decoration. A wifi icon at 0.3 should mean a weak signal.
- Use
fidg-moveon icons that show a real value. - Keep icons between 20 and 48 pixels in interfaces; the drawings sit on a 24 grid.
- Leave sound off by default and give visitors one obvious switch.
- Give every icon-only button a text label.
Something missing or unclear?Write to usRequest an icon