MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - How to get resources status

WebPagetest Forums

Full Version: How to get resources status
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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 ?
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 -

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