How to update "data-page-id" dynamically on SPA (single page application) site?
I get, that I can set custom "data-page-id", as the attribute of the <script>
, which loads Commento.
However, I load some of the pages dynamically via AJAX calls, without reloading of the page.
How do I reload comments in such a case?
Do I need to update attribute of the <script>
HTML node and call window.commento.main()
?