Questions tagged [resource-timing-api]

The Resource Timing API allows you to collect complete timing information related to resources in a document. It enables you to measure user latency, which is crucial to benchmark web pages.

The Resource Timing API allows you to collect complete timing information related to resources in a document. It enables you to measure user latency, which is crucial to benchmark web pages.

27 questions
0
votes
0 answers

Mdn docs performance.timing returns epoch time, but is depreciated. Mdn docs recommends PerformanceResourceTiming for use but returns relative time

I am trying to retrieve the epoch time for when a request is made to a server requestStart from the Mdn docs. I could've easily done this with window.performance.timing ; however, timing is now depreciated shown here. This is the target data shown…
0
votes
1 answer

add "baseUrl" for iframe in | React Native

I am challenging with my own React Native browser, in that i want to inject my javascript code to iframes in page to discover Resource Timing API. With Main Frame everything is good but with iframes i got "Blocked" by not Same-Origin. I resolved…
0
votes
1 answer

How can I programmatically retreive the request timing metrics for api calls going from my app in browser

I basically want all the highlighted information for api calls going from my app after the app has been loaded. I am aware that there are performance timing apis like https://developer.mozilla.org/en-US/docs/Web/API/Performance using which we get…
adil hussain
  • 800
  • 4
  • 10
0
votes
0 answers

Why are scripts cached more in the browser than iframe sources

My website has two independent resources - a JS file (say, myjavascript.js) and an iframe (src: myiframe.html). Each of them is loaded on each page load (ie, they are loaded with same frequency). Both have same cache expiration (6 months). The JS…
yaitzme
  • 193
  • 1
  • 1
  • 8
0
votes
2 answers

Can the NavigationTimingAPI be used on asynchronous calls?

I'm currently implementing performance measuring functionality in our project which uses custom elements v1. The NavigationTimingAPI offers very detailed measuring on different navigation types (navigate, reload, browser back/forward): Can the same…
connexo
  • 53,704
  • 14
  • 91
  • 128
0
votes
0 answers

DNS resolution under Chrome/Firefox taking a whole second longer than Safari

Short: I'm trying to figure out the underlying difference in how Chrome and Firefox do a DNS lookup on macOS vs how Safari does it. Detail: I have an HTML page that does an AJAX request to a randomly generated (GUID-based) hostname on my server.…
0
votes
2 answers

why resource timing api is giving the encoded , decoded and transfer size of some resources as 0?

I am using resource timing api to capture the encoded, decoded and transfer size of all the resources of a page,but for some of the resources it is giving the zero for all the 3 keys. Please help me to solve this.
Siddu
  • 156
  • 7
0
votes
1 answer

Does performance.now() start on navigationStart?

What is the origin time for performance.now()? Is it navigationStart, requestStart or something else?
Shane
  • 369
  • 1
  • 2
  • 13
0
votes
0 answers

Do we have equivalent of resource timing api which can be used from browser extension

I want to listen to all the requests going from a page(including from the iframes that it might have) and get metrics similar to resource timing api for all of the requests. I want to be able to do this from a background script. I tried injecting a…
0
votes
0 answers

Resource Timing API not showing correct resources in Selenium

I have geckodriver latest version installed and I am running latest Firefox version. I wrote a selenium script to just open a URL in firefox and keep the browser open (I am not calling driver.close() or driver.quit()) Here is what the script looks…
skjindal93
  • 706
  • 1
  • 16
  • 34
0
votes
1 answer

Missing onresourcetimingbufferfull event from Performance interface

The resource timing API have events like onresourcetimingbufferfull which gets fired when the limit of 150(by default) resources has been reached. https://www.w3.org/TR/resource-timing-1/#extensions-performance-interface The Performance interface in…
skjindal93
  • 706
  • 1
  • 16
  • 34
0
votes
1 answer

Resource-tracking libraries for Ubuntu Linux?

I want to build a simple task scheduler on a Ubuntu cluster, so I need a resource-tracking library that exposes an API for other user-level applications. I have been searching for a while, but all I found are command-line tools. So I'm wondering if…
hebothu
  • 269
  • 1
  • 9
1
2