You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: document placeholder support in the remark42 div (#1990)
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.
Copy file name to clipboardExpand all lines: site/src/docs/configuration/frontend/index.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,12 @@ Add following snippet in the place where you want to see Remark42 widget. The co
66
66
**Note:** The initialization script should be placed after the code mentioned above.
67
67
:::
68
68
69
+
You can place any placeholder content inside the `remark42` div — it will be automatically removed once the comments widget has loaded. This is useful for showing a loading indicator or message while the widget initialises:
70
+
71
+
```html
72
+
<divid="remark42">Comments loading...</div>
73
+
```
74
+
69
75
If you want to set this up on a Single Page App, see the [appropriate doc page](https://remark42.com/docs/configuration/frontend/spa/).
Copy file name to clipboardExpand all lines: site/src/docs/getting-started/installation/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,10 +114,10 @@ After that place the code snippet right after config.
114
114
Put the next code snippet on a page of your site where you want to have comments:
115
115
116
116
```html
117
-
<divid="remark42"></div>
117
+
<divid="remark42">Comments loading...</div>
118
118
```
119
119
120
-
After that widget will be rendered inside this node.
120
+
After that widget will be rendered inside this node. Any content you place inside the div (such as "Comments loading..." above) is automatically removed once the widget initialises, so you can use it as a loading placeholder.
121
121
122
122
For more information about frontend configuration please [learn about other parameters here](https://remark42.com/docs/configuration/frontend/)
123
123
If you want to set this up on a Single Page App, see the [appropriate doc page](https://remark42.com/docs/configuration/frontend/spa/).
0 commit comments