Skip to content

[6.x] Only generate Bard's HTML when reading time is enabled - #15263

Merged
jasonvarga merged 3 commits into
6.xfrom
cp-bard-reading-time
Aug 25, 2026
Merged

[6.x] Only generate Bard's HTML when reading time is enabled#15263
jasonvarga merged 3 commits into
6.xfrom
cp-bard-reading-time

Conversation

@jasonvarga

Copy link
Copy Markdown
Member

Bard was serializing the whole document to HTML on every update. Reading time is the only thing that uses it, so now it only happens when reading time is enabled.

Extracted from #15158.

jasonvarga and others added 3 commits August 24, 2026 21:31
The onUpdate handler serialized the whole document to HTML on every
update, but the result is only consumed by the readingTime computed,
which only renders when the reading_time config is enabled.

The seed in mounted() is left alone so readingTime still has a value
on first render.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The seed in mounted() was doing a full document serialize per Bard
field at page load. It's only needed when reading time is enabled,
and it still runs in that case, so readingTime has a value on first
render as before.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@jasonvarga
jasonvarga merged commit 760017c into 6.x Aug 25, 2026
64 checks passed
@jasonvarga
jasonvarga deleted the cp-bard-reading-time branch August 25, 2026 04:11
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