Skip to content

site: saving mode on the page, not just in the inlined bundle - #16

Merged
lroolle merged 1 commit into
mainfrom
docs/site-saving-mode
Aug 25, 2026
Merged

site: saving mode on the page, not just in the inlined bundle#16
lroolle merged 1 commit into
mainfrom
docs/site-saving-mode

Conversation

@lroolle

@lroolle lroolle commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

0.4.0 shipped a feature the plugin's own page did not mention.

It was technically on the page — the default nudge is a string in
lib/core.js and build-site.mjs inlines that file, so
curl https://dsh.works/dsh-meter/ | grep -i "saving mode" returns hits. A
reader cannot see a feature because its text happens to sit inside a <script>
block.

So the page argues for it now: the readout is the default and stays the default,
a number nobody acts on saved nothing, and here is the one config line. The
three properties that make it honest are stated where a sceptical reader is —
same clock as the bill, weekends get no nudge at all, byte-identical inside a
window so it does not roll the prompt-prefix cache.

Nav gets a saving mode entry.

Rendered in a real browser at 1280 in both themes: section lands, no horizontal
overflow. npm test 130 green, all three generated artifacts in sync.

0.4.0 shipped a feature the plugin's own page did not mention. It was
technically "on" the page — the default nudge is a string in lib/core.js
and build-site.mjs inlines that file — but a reader cannot see a feature
because its text happens to be inside a <script> block.

So the page argues for it: the readout is the default and stays the
default, a number nobody acts on saved nothing, and here is the config
line. The three properties that make it honest are stated where a
sceptical reader is — same clock as the bill, weekends get no nudge,
byte-identical inside a window so it does not roll the prompt cache.

Rendered in a real browser at 1280 in both themes, no overflow.
@lroolle
lroolle merged commit 6ddbcb6 into main Aug 25, 2026
1 check passed
@lroolle
lroolle deleted the docs/site-saving-mode branch August 25, 2026 07:59
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