The PageTransitionEvent is fired when a document is being loaded unloaded.
The PageTransitionEvent is fired when a document is being loaded unloaded.
(persisted this)Property.
[Read Only]
The persisted read-only property indicates if a webpage is loading a cache.
window.addEventListener('pageshow', function(event) { if (event.persisted) { console.log('Page was loaded from cache.'); } });
See also: https://developer.mozilla.org/en-US/docs/Web/API/PageTransitionEvent/persisted
Property.
[Read Only]
The persisted read-only property indicates if a webpage is loading
a cache.
`window.addEventListener('pageshow', function(event) {
if (event.persisted) {
console.log('Page was loaded from cache.');
}
});`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PageTransitionEvent/persisted`cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |