I am trying to embed a PDF in an html page. The problem is it takes a few moments to load and we need a loading image to display until it is complete. I can't find a cross browser solution. Chrome handles the iframe with an onload event which hides the loading image and displays the iframe, but FF doesn't fire the onload event. IE doesn't show the PDF inline if it's in an iframe but opens it in the default application. The object tag doesn't have an onload event in Chrome or IE and if I try downloading the pdf asynchronously there is no way to pass the data to the object since it's source has to be a url. The same problem exists for the embed tag. This seems like it should be a lot easier, but any advice would be welcomed.