// Select the node that will be observed for mutations
const targetNode = document.getElementById('add-comment-'+post_id);
// Options for the observer (which mutations to observe)
const config = { attributes: true, childList: true, subtree: true };
console.log(targetNode,config);
// Callback function to execute when mutations are observed
const callback = function (mutationsList, observer) {
// Use traditional 'for loops' for IE 11
for (const mutation of mutationsList) {