Closed nicksay closed 9 years ago
Sorry to hijack this issue but not sure where else to ask. Really interesting project, just wanted to mention the docs for caching and prefetching have been lacking for some time. Any timeline for when they will get filled in? Really curious to use this in my next project. Thanks
@TheSisb Thanks for bumping the docs issue. Follow #208 for the caching docs and #210 for the prefetching docs. We'll have something up very soon!
This particularly affects WebKit browsers: in the background, cached/prefetched navigation can be slower than standard navigation.
When
document.visibilityState == 'hidden'
(e.g. a background tab or minimized window), cached or prefetched navigation can be slower than standard navigation. For example, if the averageresponseStart - navigationStart
time for background standard navigation is 200ms, then the average background cached/prefetchedresponseStart - navigationStart
time will be 1000ms. This 1000ms delay is very consistent because thespf.nav.request.handleResponseFromCache_
function is executed asynchronously and WebKit forces DOM timers to execute on 1s intervals forhidden
documents (seeDOMTimer::hiddenPageAlignmentInterval
)