Can the url called originate from an "http" or does it need to be community? your case in point: var url = "route/to/your/script.php"; Here is A fast fiddle jsfiddle.Internet/y2xezyoj this fires the load function ass quickly because the pdf file is loaded into the iframe. JQuery es una magnifica libreria https://kokainstein16058.blogspothub.com/38651183/kokainstein-options