The goal or aim is to put a dummy url untill the actual xhr call loads.The original call is S3.getsignedurl() which returns a url and that url is called in respective html tags; i.e. Image in , PDF files in . I need to find out when that url is loaded and then switch the images from the temporary to the actual one. Any ideas?
Asked
Active
Viewed 25 times
0
-
I hope you are looking something like this https://stackoverflow.com/a/2342181/9669724 – Shreyans Shrivastav Mar 29 '19 at 11:02
-
Please add some code you are currently using so we can assist effectively :) – Craig Wayne Mar 29 '19 at 11:06
-
so ... `someXhrInstance.addEventListener('load', function(e) { ... do your thing })` – Jaromanda X Mar 29 '19 at 11:20