SyntaxFix
Write A Post
Hire A Developer
Questions
Since performance.navigation is now deprecated, you can try this:
performance.navigation
var perfEntries = performance.getEntriesByType("navigation"); if (perfEntries[0].type === "back_forward") { location.reload(true); }