Performance API
The NotRestoredReasonDetails interface of the Performance API represents a single reason why a navigated page was blocked from using the back/forward cache (bfcache).
An array of NotRestoredReasonDetails objects can be accessed via the NotRestoredReasons.reasons property.
Instance properties
- NotRestoredReasonDetails.reason
- : A string describing a reason that the page was blocked from using the back/forward cache.
Instance methods
- NotRestoredReasonDetails.toJSON
- : Returns a JSON-serializable plain object representing the
NotRestoredReasonDetailsobject. Automatically called by JSON.stringify().
- : Returns a JSON-serializable plain object representing the
Examples
See Monitoring bfcache blocking reasons for examples.
Specifications
Browser compatibility
See also
- Monitoring bfcache blocking reasons
- PerformanceNavigationTiming.notRestoredReasons
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
