How can i display a “Page is loading” message(using jquery) in an iframe so that the end-user is not looking at a blank page while the actual page is trying to load?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would suggest to you that instead of using iframe, you make absolute or fixed positioned div (maybe even overlay over whole screen) and message in it, on the top of your body. Then, in $(document).ready function add
Example:
You can also use $(body).ready instead of $(document), if your message is removed to early, or postpone removing using setTimeout.