Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .jules/bolt.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@
**Learning:** Using non-canonical URLs (e.g., those missing trailing slashes or using old repository names) triggers HTTP redirects (301, 302, 308). This adds at least one extra network round-trip (RTT), which can significantly delay page load or navigation on slower connections.

**Action:** Always use the final, canonical destination URLs for documentation and external links. Verify these URLs with `curl` to ensure they return a 200 OK status without further redirects.

## 2026-06-17 - Precision Quirk in SVGO 4.x
**Learning:** In SVGO version 4.0.1, the default precision or even `--precision 1` can result in 0% file size reduction for certain path-heavy logos. Specifically, organization assets in this repo required `--precision 0` to trigger any meaningful optimization.
**Action:** If `svgo` reports 0% reduction, retry with `--precision 0` and perform visual verification to ensure coordinate rounding hasn't introduced artifacts.
Comment on lines +19 to +21

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Using --precision 0 is highly discouraged for SVGs with round linecaps (stroke-linecap="round"). Coordinate rounding converts small relative movements/lines (like m.7-.7 and l.3.4) into zero-length commands (m0 0 and h0). In SVG, zero-length path segments with round linecaps can render as visible circular dots (artifacts) on some renderers, and they add redundant bytes to the file.

Instead, we should use at least --precision 1 or --precision 2 to preserve path integrity, and rely on other SVGO plugins to strip metadata and comments.

Suggested change
## 2026-06-17 - Precision Quirk in SVGO 4.x
**Learning:** In SVGO version 4.0.1, the default precision or even `--precision 1` can result in 0% file size reduction for certain path-heavy logos. Specifically, organization assets in this repo required `--precision 0` to trigger any meaningful optimization.
**Action:** If `svgo` reports 0% reduction, retry with `--precision 0` and perform visual verification to ensure coordinate rounding hasn't introduced artifacts.
## 2026-06-17 - Precision and Artifacts in SVGO 4.x
**Learning:** Using `--precision 0` in SVGO can round small coordinate values to zero, creating redundant zero-length path commands (like `m0 0` and `h0`). When paths use `stroke-linecap="round"`, these zero-length segments can render as unwanted circular artifacts (dots) depending on the SVG renderer.
**Action:** Avoid using `--precision 0` for paths with round linecaps. Use at least `--precision 1` or `--precision 2` to preserve path integrity, and ensure all comments and metadata are stripped for optimal minification.

2 changes: 1 addition & 1 deletion profile/assets/logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion profile/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.