I’m trying to make a page where a certain div (with lots of php, html and javascript content) loads after the rest of the page. Is this possible if so how?
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.
You could apply this div a hidden style and then use javascript to show it:
But if you want to avoid loading it initially you could use AJAX:
Also note that if you want this loading to happen once all other content is loaded including graphics you could use the
$(window).loadinstead of$(document).ready: