Skip to content

fix(assets): emit reusable preload metadata - #259

Merged
linkdata merged 1 commit into
mainfrom
fix/preload-destination-cors
Aug 7, 2026
Merged

fix(assets): emit reusable preload metadata#259
linkdata merged 1 commit into
mainfrom
fix/preload-destination-cors

Conversation

@linkdata

@linkdata linkdata commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • give generic and unknown resources an actionable as="fetch" destination with anonymous CORS
  • add anonymous CORS to font preloads so CSS font requests can reuse them
  • add platform-independent WASM and font MIME regressions while preserving script, stylesheet, image, favicon, and URL-escaping coverage
  • update PreloadHTML and GenerateHeadHTML documentation for the generated metadata

Verification

  • go generate ./...
  • go vet ./...
  • staticcheck ./...
  • golangci-lint run
  • gosec ./...
  • JAWS_REQUIRE_NODE=1 go test -race ./...
  • JAWS_REQUIRE_NODE=1 go test ./...
  • go build ./...

Fixes #251
Fixes #252

Give generic resources a fetch destination and anonymous CORS, and match font preloads to CSS font fetching with anonymous CORS. Cover both paths with process-local MIME registrations and preserve the existing image, favicon, script, stylesheet, and escaping behavior.
@linkdata
linkdata merged commit f8f13af into main Aug 7, 2026
7 checks passed
@linkdata
linkdata deleted the fix/preload-destination-cors branch August 7, 2026 17:21
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.

assets: PreloadHTML font preloads cannot be reused by CSS font fetches assets: PreloadHTML emits inert links for generic recognized resources

1 participant