Answer the question
In order to leave comments, you need to log in
Closing from indexing by means of ajax jQuery. How does it work?
I'm trying to close some blocks on the site from indexing by search engines. I do it like this:
<script src="https://yastatic.net/jquery/3.1.1/jquery.min.js"></script>
<div id="noindex"></div>
<script>
$(function() {
$('#noindex').load('/')
})
</script>
Answer the question
In order to leave comments, you need to log in
Figured it out myself. Maybe someone will be useful.
I will describe the connection step by step.
<script type="text/javascript">
$(document).ready(function() {
$("#noindex").load("/noindex.php");
});
</script>
<div id="noindex"></div>
, but the elements themselves are present and displayed on the site.Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question