When I have a code like this:
$('#intro-posts-container').load('/ajax/load.php', function() {
bindVoting();
});
Does the load send the request to load.php, if the #intro-posts-container element doesn’t exist?
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.
A quick test in firebug on this page shows that it does not send the request if the element doesn’t exist.
I’ve verified this from the source (v1.8.3), which contains the following: