You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Howdy, I'm having trouble with getting onTTFB to work with automated iOS tests. Just a cursory look into getNavigationEntry() suggests it gets polyfilled, but I'm still running into trouble.
letwaitForTTFB;if(typeofPerformanceNavigationTiming!=='undefined'){waitForTTFB=newPromise(resolve=>{onTTFB(({ value, entries })=>{// do some calculations with nav entryresolve()// data is ready?})})// ^ this _should_ work for iOS >= 15.2 completely... but I find that my promise doesn't get resolved.// I test this same block against Chrome, Edge, FF, macOS Safari 16, Android (against multiple recent versions of each), and// they all work fine.}elseif(typeofPerformanceTiming!=='undefined'){// Had to do this since iOS < v15.2 doesn't support PerformanceNavigationTiming and wouldn't work with onTTFB in tests}
The text was updated successfully, but these errors were encountered:
Howdy, I'm having trouble with getting
onTTFB
to work with automated iOS tests. Just a cursory look intogetNavigationEntry()
suggests it gets polyfilled, but I'm still running into trouble.The text was updated successfully, but these errors were encountered: