tholman / github-corners

A fresher "Fork me on GitHub" callout.
http://tholman.com/github-corners
MIT License
4.93k stars 193 forks source link

Minified and rounded SVGs #8

Closed tigt closed 8 years ago

tigt commented 8 years ago

Small perf polish. Also now viewable as standalone files.

desandro commented 8 years ago

Curious - what did you use to minify the code?

tholman commented 8 years ago

These are nuts... I have no idea how they work.

tigt commented 8 years ago

@desandro @tholman I used SVGOMG to turn the path commands into relative/absolute (whichever was shorter), rounded the decimal places by hand (important because SVGs using floating point coordinates draw slower... I wish I was making that up), and baked in the horizontally-flipped transform using Inkscape.

The rest was just a few tweaks I've picked up assembling SVGs.

NNTin commented 6 years ago

@tholman this change was undone. What was the reason?