The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Share:
Notifications
Clear all

[Solved] WPDiscuz and SEO

8 Posts
2 Users
2 Reactions
2,313 Views
Posts: 4
Topic starter
(@dfreerider)
Active Member
Joined: 5 years ago

Hi,

 

I'm wondering if you could please elaborate a little on how Wp Discuz is SEO friendly?

I noticed that you advertise "SEO-friendly comment system. Easy content indexing for SE crawlers", but I can't find any documentation anywhere on how WpDiscuz handles search engine crawlers and ensures indexing of comments ?

I am for instance wondering how you handle Ajax lazy loading and search engine crawlers?

Will all comments be indexed when settings such as "Initiate AJAX loading after page",  "Display only parent comments and view replies ∨ button" and "lazy load on scroll" are active? 

I run a large site with a lot of user generated comments and index-ability of comments is of key importance to us.

 

Thanks you!

-Espen

7 Replies
Tom
Posts: 506
 Tom
Support
(@tomson)
Honorable Member
Joined: 9 years ago

Hi @dfreerider,

Google says they are "generally able" to crawl all pages like modern browsers do. that said, they still may have trouble with ajax sometimes, though they're getting better at it. source: http://searchengineland.com/can-now-trust-google-crawl-ajax-sites-235267

If the phrase "generally able" is not enough for you, you can disable wpDiscuz AJAX and enable the native pagination with page refresh. Please read the documentation: https://wpdiscuz.com/docs/wpdiscuz-7/plugin-settings/comment-thread-displaying/#disable-ajax-pagination

Posts: 4
Topic starter
(@dfreerider)
Active Member
Joined: 5 years ago

Hi Tom,

Thanks for the quick reply 🙂

I did a bit of dive into your code and it looks as if you are still using scroll events for lazy loading.

I’m not sure if you are aware but Google recommends the use of the newer IntersectionObserver API and a polyfill for lazy loading instead of scroll events when indexing is important. See the following developer guide:

https://developers.google.com/search/docs/guides/lazy-loading

At the bottom of the page is the Puppeteer script, created by google to test how google sees a lazy loaded page. Running that on WpDisquz shows that google does not see lazy loaded comments.

In regards to the IntersectionObserver API and SEO, I found this article that I thought summed it up rather nicely https://love2dev.com/blog/google-lazy-load-seo/

I’m really loving the new WpDisquz 7, and I hope you will consider switching out the scroll event lazy loading for a IntersectionObserver API solution, so that comments may have a better chance of being properly indexed.

Thanks again,

-Espen

Tom
Posts: 506
 Tom
Support
(@tomson)
Honorable Member
Joined: 9 years ago

Hi @dfreerider,

Thank you for the suggestion. Sure, we'll look at that. But I's suggest you other feature. Please disable the Lazy Load and use the better solution called "". So this option will load the comment section after the page is fully loaded and you don't need the Lazy Load anymore, this is better and brings more speed to your page than the Lazy Load. Also, this feature doesn't use the scroll events.

You can disable the Lazy Load and enable the "Initiate AJAX loading after page" for Comment List Loading Type option in Dashboard > wpDiscuz > Settings > Comment Thread Displaying Tab:

wpDiscuz load comments after loading the page
3 Replies
(@dfreerider)
Joined: 5 years ago

Active Member
Posts: 4

Hi @tomson,

 

Yes, I might end up going with what you suggest. I'll have to run som benchmarks. We'll see 🙂

Just as an experiment , I rewrote your scroll detection function to use the IntersectionObserver API, and with it WpDiscuz now passes Google's lazy loading test.

It took me less than ten minutes, and I'm not really an experienced javascript developer.

Thanks for the chat!

-Espen

Tom
 Tom
Support
(@tomson)
Joined: 9 years ago

Honorable Member
Posts: 506

@dfreerider,

That's great! We're going to do this as well. Are you referring this API?

https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API

(@dfreerider)
Joined: 5 years ago

Active Member
Posts: 4

@tomson

Yes, that is the API 🙂

 

-Espen

Tom
Posts: 506
 Tom
Support
(@tomson)
Honorable Member
Joined: 9 years ago

Hi @dfreerider,

According to this article, it's not so easy as you mentioned. Could you please provide your example of using IntersectionObserver API that works fine for indexing?

 

Share: