Z
Z
zayko2012-11-13 10:20:46
Programming
zayko, 2012-11-13 10:20:46

Will Google and Yandex index JSON placed in the html tag?

The page has a hidden HTML tag inside which is a JSON string with data.
The JSON is in the HTML tag and not in the SCRIPT tag.

Will search engines be able to index the data inside the tag?
Will they be able to index if the tag is not hidden, but for example position: absolute; top: -10000; left: -10000

Your opinion?
Does anyone have any information about indexing JSON format by search engines?

PS:

for those who are curious why: It is advantageous to transfer a large comment tree to the client in JSON and draw it almost instantly there. Server rendering of trees is monstrously slow. I am looking for ways to somehow get search engines to index information from comments.

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolai Vasilchuk, 2012-11-13
@Anonym

It is advantageous to transfer a large comment tree to the client in JSON and draw it almost instantly there. Server rendering of trees is monstrously slow.

What? Why do you think so?
I understand that there will be more traffic from the server (although this can be neglected), but why server rendering will be slower?

A
akral, 2012-11-13
@akral

Paste in the attribute data-. jQuery will even automatically parse the JSON:

<article class="boat" data-schedule="['Moscow', 'Paris']">...</article>
$('.boat').data('schedule') === ['Moscow', 'Paris'];

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question