I have a website. On one of my pages, users can create articles. They fill out a form with their article and the article is placed in my database. There is another page where users' articles (along with their article titles) are dynamically loaded using jQuery and AJAX when a user visits the page.
I'm currently working on my SEO - specifically, keyword density. I went to a keyword density calculator (https://www.webfx.com/tools/keyword-density-checker/ - I also used http://tools.seobook.com/general/keyword-density/) and put in the URL of one of the articles a user had made on my site (https://www.writingboxco.com/readArticles.php?article_id=136&userid=2&user=). When I submit the link in the density checker, it only displays the words that were NOT dynamically added to the page - like the name of my website, among other things. So it only lists about 10 words. The contents of the article did not show up.
I'm wondering if the Google crawler does the same thing - it doesn't see the contents of the users' articles, because the content is loaded dynamically, which would create an SEO problem.
I'm unsure if I'm doing something wrong with the way I structure my page or load my articles that makes it hard for readers to access the dynamically loaded content.
My jQuery is at the bottom of the inside of my body tag, so I didn't use
$(document).ready() or anything of that sort, if that helps. I just went straight into the AJAX call.
These keyword density checkers do allow for text input instead of a link, but the problem is not that I just need to find the density of these keywords - I also need to ensure I'm formatting my pages so that crawlers can get all the content contained within my users' articles.
Do you need to include certain code when dynamically loading content using jQuery and AJAX so that Google/another page searcher gets all the content on a particular webpage instead of excluding the dynamically loaded content?
If there's any code you would like to see, let me know. I'm not sure what I would need to include. Let me know if there are any questions.