We have a situation where a customer's website is displaying extremely slowly within an iFrame, taking about 7 seconds to load. All we can do is provide the customer with a JavaScript file for inclusion on their site, as they are not willing to make any further changes.
My question is: Is it feasible for me to intercept all events (such as form submissions and link clicks) in order to show a pleasant loading animation until the page has completely loaded?
Alternatively, could I potentially ajax-ify the entire site universally?