Current time: 12-09-2019, 06:43 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get resources status
01-19-2017, 09:12 PM
Post: #1
How to get resources status
hi

using resource timing api (performance.getEntriesByType('resource') )
i am getting resources list, but i am not getting resources which are failed to load .

any way i can get all resources with its status using javascript ?
Find all posts by this user
Quote this message in a reply
01-20-2017, 11:28 PM
Post: #2
RE: How to get resources status
The behaviour of resources that failed to load was undefined in the initial spec so different browsers behaved in different ways.

The v2 of the spec clears this up and all resources should be included regardless of whether they succeed - https://www.w3.org/TR/resource-timing-2/...s-included

You'll probably need to use a a combination of absent timing points, and sizes to infer any failures (see the spec for details)

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)