Skip to content

docs: document loading placeholder support in remark42 div#2009

Merged
umputun merged 1 commit intomasterfrom
docs/placeholder-1990
Feb 22, 2026
Merged

docs: document loading placeholder support in remark42 div#2009
umputun merged 1 commit intomasterfrom
docs/placeholder-1990

Conversation

@paskal
Copy link
Copy Markdown
Collaborator

@paskal paskal commented Feb 22, 2026

Summary

Closes #1990.

PR #2002 fixed the behaviour but never documented it. Any content placed inside <div id="remark42"> is automatically removed once the iframe signals it has initialised — so users can add loading placeholders without any JS gymnastics.

Changes:

  • configuration/frontend/index.md — add note and example after the <div id="remark42"> snippet
  • getting-started/installation/index.md — update example div to include placeholder text and explain the behaviour
  • manuals/integration-with-astro/index.md — update both Svelte and React/Preact examples
  • manuals/integration-with-gatsby/index.md — update both JS and TS examples

@paskal paskal requested a review from umputun as a code owner February 22, 2026 20:56
Clarify that any content placed inside the `<div id="remark42">` is
automatically removed once the iframe signals it has initialised.
Update all code examples across getting-started, frontend config, and
Astro/Gatsby integration guides to use "Comments loading..." as the
placeholder so the feature is visible by default.
@paskal paskal force-pushed the docs/placeholder-1990 branch from e607279 to e1b19e9 Compare February 22, 2026 20:57
@umputun umputun merged commit f359256 into master Feb 22, 2026
4 checks passed
@umputun umputun deleted the docs/placeholder-1990 branch February 22, 2026 23:54
@paskal paskal added this to the v1.16.0 milestone Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Render placeholder in remark42 div until comments are loaded?

2 participants