How to find Image url size and loading time

I have a Postman test which parses the response and validates specific urls in the response. I am using pm.sendRequest() to validate the urls (there are more than 2000 urls in the response ).

The test collects all the invalid urls and print it on the console. This is working fine so far. The new requirement is if the url has an image*(.png, .jpg etc)* and if the image size is too large beyond certain limit, I need to print the size of the image and the time it takes to load the image.

Please share some pointers on this.

Sorry we didn’t get to this sooner. This isn’t the experience we want for our users.

We’re closing out older posts to help keep the community organized and relevant. If this issue is still affecting you, please start a new topic with any updated details and we’ll be happy to help.