Repository navigation
Conversation
The demo pages, specimen stylesheets and generator config were shipped to production from public/ but nothing references them. Font files and license texts stay.
Enable Astro's experimental svgOptimizer so SVGs imported as components are minified before being inlined into the HTML. Homepage HTML drops from 34.0KB to 27.9KB brotli; the two ServiceArt strokes on /dedicated-cloud shrink from ~50KB to ~27KB each. Six preset-default plugins are disabled because they would break the line-draw animation or inline rendering (reasons in the config). SVGO's XML parser rejects valueless attributes, so the blueprint SVGs now use data-line-draw="" — the [data-line-draw] selectors and hasAttribute() checks match it unchanged.
felixwidjaja
self-requested a review
October 6, 2026 09:36
felixwidjaja
approved these changes
Oct 6, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
experimental.svgOptimizer(SVGO 4, already installed) so SVGs imported as components are minified before being inlined into HTML.preset-defaultplugins that would break the line-draw animation or inline rendering:cleanupIds,convertShapeToPath,mergePaths,collapseGroups,removeEmptyAttrs,inlineStyles(reasons inastro.config.mjs).data-line-draw→data-line-draw=""in 8 blueprint SVGs. SVGO's XML parser rejects valueless attributes and fails the build.[data-line-draw]selectors andhasAttribute()still match.public/fonts(fonts and license files kept).Impact (brotli, what the browser downloads)
/HTMLServiceArtstrokes on/dedicated-cloud(2 SVGs)Other pages only save a few hundred bytes on icons.
Verification
astro buildpasses, with the same warning count as the baseline buildrect/path[data-line-draw],data-line-draw-panel,pathLength,id,url(#…)and<svg>match the baseline exactlyclose.svgis 1.75% because the circle is rewritten as true arcs.icons/grafana.svgcould not be pixel-compared: its source has a duplicatefillattribute and is invalid XML for the rasterizer. It isn't rendered on any page today./,/about,/dedicated-cloudat desktop, tablet and mobile widths, scroll, and confirm the line-draw grid animations still play and the hero/footer grids look unchanged.Notes
svgOptimizeris still experimental in Astro, so its API may change on upgrade.