Relaod once AMP pages
-
Hi,
I would like to refresh the page once after loading even in AMP environment.
I have seen that it can normally be done via a simple Java script like the following I found in this article:
—
<script id = “reload” type = “text / plain” target = “amp-script”>
window.onload = function () {
if (! localStorage.justOnce) {
localStorage.setItem (“justOnce”, “true”);
window.location.reload ();
}
}
</script>
—
Then I read this article on using Java script within AMP, but I honestly don’t know how to exactly combine all the APM / HTML and Java pieces.
Is there any chance of getting help on this matter? Perhaps a solution to a similar problem has already been solved in other posts?Greetings
Enrico
The page I need help with: [log in to see the link]
- The topic ‘Relaod once AMP pages’ is closed to new replies.