Skip to content

perf(assets): serve minified web bundles#212

Merged
ThisIs-Developer merged 1 commit into
mainfrom
perf/minify-web-assets
Jul 9, 2026
Merged

perf(assets): serve minified web bundles#212
ThisIs-Developer merged 1 commit into
mainfrom
perf/minify-web-assets

Conversation

@ThisIs-Developer

Copy link
Copy Markdown
Owner

What changed

  • Added generated script.min.js and styles.min.css production bundles.
  • Updated the web app shell to preload and load the minified JS/CSS assets.
  • Updated the service worker cache list and rotated the cache namespace to v3.9.1 so deployed clients fetch the new asset names.
  • Updated preview-worker URL detection so it works when the app is loaded from script.min.js.
  • Updated the Neutralino desktop prepare step and regenerated desktop resources so desktop packaging still maps web minified references back to local desktop assets.

Why

SEO/performance tooling reported that production was loading unminified first-party script.js and styles.css. Serving minified bundles reduces transfer size and avoids that crawler warning while keeping the readable source files in the repo for development.

Testing

  • node --check script.js
  • node --check script.min.js
  • node --check sw.js
  • node --check preview-worker.js
  • Local HTTP fetch smoke test for /index.html, /script.min.js, /styles.min.css, and /sw.js
  • git diff --check
  • node desktop-app/prepare.js

Privacy and storage notes

  • No Share Snapshot, Live Share, import, export, renderer, or storage behavior was changed.
  • This only changes which bundled JS/CSS files are loaded by the web app and cached by the service worker.

Screenshots

Not applicable; this is a production asset/performance change with no intended UI changes.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying markdownviewer with  Cloudflare Pages  Cloudflare Pages

Latest commit: d19c0cc
Status: ✅  Deploy successful!
Preview URL: https://40056393.markdownviewer.pages.dev
Branch Preview URL: https://perf-minify-web-assets.markdownviewer.pages.dev

View logs

@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
markdown-viwer Ready Ready Preview, Comment Jul 9, 2026 8:51pm

@ThisIs-Developer ThisIs-Developer merged commit 34ec1db into main Jul 9, 2026
5 checks passed
@ThisIs-Developer ThisIs-Developer deleted the perf/minify-web-assets branch July 10, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant