Currently I'm working on Angular application that let's user measure loading time of specific page. I'm loading that page from my app as an iframe in the background and want to measure specific timestamps of loading that iframe using javascript performance API. PerformanceResourceTiming interface is ideal for me because I can get specific times like DNS or TCP connection time (described here: https://developer.mozilla.org/en-US/docs/Web/Performance/Navigation_and_resource_timings). My problem is, that when I get my PerformanceResourceTiming object, most of the properties return values of 0 (although in DevTools -> Network they're not equal to 0). What am I doing wrong? Thank you in advance for your help.
Javascript performance API PerformanceResourceTiming returns 0 for most of properties
482 Views Asked by Bartek Grabarczyk At
1
There are 1 best solutions below
Related Questions in JAVASCRIPT
- Angular Show All When No Filter Is Supplied
- Why does a function show up as not defined
- I count the time the user takes to solve my quiz using Javascript but I want the same time displayed on another page
- Set "More" "Less" font size
- Using pagination on a table in AngularJS
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- State with different subviews
- Ajax jQuery firing multiple time display event for the same result
- Getting and passing MVC Model data to AngularJS controller
- Disable variable in eval
- javascript nested loops waiting for user input
- .hover() seems to overwrite .click()
- How to sort a multi-dimensional array by the second array in descending order?
- How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
Related Questions in PERFORMANCE
- Slow performance on ipad erasing image
- Can Apache Ant be told to cache its XML files?
- What are the pros and cons of the picture element?
- DB candidate as CouchDB/Schema replacement
- python member str performance too slow
- Split a large query (2 days) into pieces to increase the speed in Postgres
- Use GUI displayed results of SQL query vs new queries?
- fastest way to map a large number of longs
- Bash regular expression execution hangs on long expressions
- Why is calling a function so slow in Javascript?
- Performance of element-compare in java collections
- "Capture GPU Frame" in XCode -- iOS only?
- Efficiency penalty of initializing a struct/class within a loop
- Change the rotating speed of the circle when the mouse moves using javascript
- Replace foreach to make loop into queryable
Related Questions in IFRAME
- ios responsive design not working (too wide in portrait orientation)
- Detect IFRAME blocking?
- iframe just before unload event
- Check URL is available Using PHP. if URL is available load the iframe
- Sending url to iframe in different page
- Iframe not passing url parameters
- how to insert and iframe from php
- Serving external webpages through a single website
- jQuery mobile - generating html dynamically not working with iframe
- AngularJs iframe source update not invoking javascript methods
- Webmail confirmation without new page
- Title attribute tooltips and iframes
- Asp.Net Mvc 4 - Login does not work in Safari Mobile
- Display IFrame from same domain under SSL
- responsive iframe center for ipad
Related Questions in RESOURCE-TIMING-API
- How to measure requests (XHR) duration in AngularJS?
- Missing onresourcetimingbufferfull event from Performance interface
- PerformanceResourceTiming.responseStart and PerformanceResourceTiming.requestStart both are 0 for a status ok http request
- why resource timing api is giving the encoded , decoded and transfer size of some resources as 0?
- Getting Resource performance data of a specific fetch/xhr call in JavaScript Resource Timing API from a Service Worker
- How can I programmatically retreive the request timing metrics for api calls going from my app in browser
- Javascript: How to get accurate Resource Timing API entry from browser
- Get transferred size of a resource using JavaScript
- Why can not I access network timing data without Timing-Allow-Origin in resource timing API
- Resource Timing API not showing correct resources in Selenium
- Why are scripts cached more in the browser than iframe sources
- Does performance.now() start on navigationStart?
- add "baseUrl" for iframe in <WebView> | React Native
- DNS resolution under Chrome/Firefox taking a whole second longer than Safari
- Why do PerformanceResourceTiming interface values differ from browser values?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

You may be using a CORS request. This requires the server providing the
Timing-Allow-OriginHTTP header.From MDM:
When CORS is in effect, many of the timing properties' values are returned as zero unless the server's access policy permits these values to be shared. This requires the server providing the resource to send the
Timing-Allow-OriginHTTP response header with a value specifying the origin or origins which are allowed to get the restricted timestamp values.e.g.:
Timing-Allow-Origin: *