Skip to content

Conversation

apata
Copy link
Contributor

@apata apata commented Sep 11, 2025

Changes

No functional changes.

  1. Ran the following replacements to allow prettier to detect and format embedded HTML
"bodyContent: `" -> "bodyContent: /* HTML */ `"
"scriptConfig: `" -> "scriptConfig: /* HTML */ `"
"response: `" -> "response: /* HTML */ `"
  1. Ran prettier
  2. Set prettier to be enforced in CI

Tests

  • This PR does not require tests

Changelog

  • Entry has been added to changelog

Documentation

  • This change does not need a documentation update

Dark mode

  • This PR does not change the UI

@apata apata added the tracker-release: patch Releases a new version of the tracker NPM package label Sep 11, 2025
Copy link

Analyzed 1026 tracker script variants for size changes.
The following tables summarize the results, with comparison with the baseline version in parentheses.

Main variants:

Brotli Gzip Uncompressed
npm_package/plausible.js (new variant) 2384B 2726B 6598B
plausible-web.js 2215B (-1B / 0%) 2534B (-2B / -0.1%) 6090B (+0B / 0%)

Important legacy variants:

Brotli Gzip Uncompressed
plausible.js 1146B (+0B / 0%) 1336B (-4B / -0.3%) 3005B (+0B / 0%)
plausible.hash.js 1115B (+1B / +0.1%) 1302B (-3B / -0.2%) 2884B (+0B / 0%)
plausible.pageview-props.tagged-events.js 1687B (+1B / +0.1%) 1961B (-4B / -0.2%) 4536B (+0B / 0%)
plausible.file-downloads.hash.pageview-props.revenue.js 1542B (+0B / 0%) 1821B (-3B / -0.2%) 3932B (+0B / 0%)
plausible.compat.exclusions.file-downloads.outbound-links.pageview-props.revenue.tagged-events.js 2283B (+5B / +0.2%) 2697B (-3B / -0.1%) 6174B (+0B / 0%)

Summary:

Brotli Gzip Uncompressed
Largest variant (plausible.compat.exclusions.file-downloads.outbound-links.pageview-props.revenue.tagged-events.js) 2283B (+5B / +0.2%) 2697B (-3B / -0.1%) 6174B (+0B / 0%)
Max change (plausible.exclusions.file-downloads.hash.local.revenue.js) 1508B (+9B / +0.6%) 1768B (-4B / -0.2%) 3825B (+0B / 0%)
Min change (plausible.compat.exclusions.local.manual.pageview-props.js) 1154B (-7B / -0.6%) 1401B (-4B / -0.3%) 2843B (+0B / 0%)
Median change 1646B (+0B / 0%) 1949B (-4B / -0.2%) 4278B (+0B / 0%)

In total, 302 variants brotli size increased and 156 variants brotli size decreased.

@apata apata force-pushed the script-v2/tracker-enforce-prettier branch from 7a5b589 to 479c1a8 Compare September 11, 2025 07:16
@apata apata requested a review from a team September 11, 2025 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tracker-release: patch Releases a new version of the tracker NPM package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant