Attribute: auto-init

The auto-init attribute of the <comentario-comments> tag controls Comentario load

The auto-init attribute of the comments tag controls whether the embedded Comentario comments will be rendered automatically upon page load.

Manual initialisation

If you disabled automatic initialisation by adding auto-init="false", you need to initialise Comentario manually by calling the main() method of the web component. Here’s a simple example:

<comentario-comments id="comments"></comentario-comments>
  window.onload = function() {

Calling main() initialises Comentario. Repeated calls will re-initialise the web component, erasing and filling the comments from scratch.

See also