I have a FirstPage.html on my website.
While the website loads (FirstPage.html loads), i want to display a WelcomePage.html for at least 5 seconds (even if the FirstPage.html finished loading).
Can anybody please help!
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.
Why not make WelcomePage.html the actual homepage, and then add FirstPage.html to the jquery mobile DOM in the background. Then, redirect to FirstPage.html after X seconds, or after the page finishes loading into the DOM.
Here’s the docs: http://jquerymobile.com/test/docs/pages/page-cache.html
Update
Using the
Ink I gave you, you need to add the following code in a separate JS file.
You need to include this JS file in the head of WelcomePage.html, AFTER you include jQuery, but BEFORE you include jQuery mobile.
This will load FirstPage.html into the DOM. Then call your other code (I think)