PageTransitionEvent.persisted

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!
この記事を English (US) で読むこともできます。

The persisted read-only property indicates if a webpage is loading from a cache.

Syntax

window.addEventListener('pageshow', function(event) {
  if (event.persisted) {
    console.log('Page was loaded from cache.');
  }
});

Value

A Boolean.

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'PageTransitionEvent: persisted' in that specification.
Living Standard Initial definition

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
persistedChrome Full support YesEdge Full support 12Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown

ドキュメントのタグと貢献者

このページの貢献者: mdnwebdocs-bot, mfluehr, sideshowbarker, fscholz, Claas
最終更新者: mdnwebdocs-bot,