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 ? |
|||
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/ |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)