I’m trying to time the load time of another domain from the client side using JavaScript. I know that you can do this by using the “src” attribute of “script” and “img” tags, but I’m not sure how to get a callback once the load is finished (or once it failed).
Most solutions I’ve seen for loading external content are server-side, but I’m trying to do this on the client side.
If you just want a callback when the call is done and not really need to read the server response, you can use the
OnloadOnAbortOnErrorevents of thescriptor theimgtag.