Auto refresh plugins don't work anymore?

You don’t need to drop a plugin element in every page, especially not one that works with a time interval and adds tracking requests for its usage.

Just add

<script>
	const observer = new MutationObserver((mutationList, observer) => {
		for (const mutation of mutationList) {
			mutation.addedNodes.forEach((node) => {
				if (node.nodeType === 1 && node.classList.contains("bad-revision")) {
					window.location.reload();
				}
			});
		}
	});

	observer.observe(document.body, { childList: true });
</script>

in the “script in the body” section of the “SEO/metatag” settings and you have autorefresh on every page. You do need at least a starter plan to have this option to work in bubble.

As an alternative drop the same code in a html element in the page and you have the same behavior on a page by page basis (it works on a free plan as well)

1 Like