1//check for Navigation Timing API support
2if (window.performance) {
3 console.info("window.performance works fine on this browser");
4}
5console.info(performance.navigation.type);
6if (performance.navigation.type == performance.navigation.TYPE_RELOAD) {
7 console.info( "This page is reloaded" );
8} else {
9 console.info( "This page is not reloaded");
10}