Jump to content
Search Community

Splittext and SEO concerns

oligsap test
Moderator Tag

Go to solution Solved by Jonathan,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Legitimate concern ... I’m not too sure how Google handles divs and spans within heading tags.

 

But, you could choose to execute/not execute certain scripts based on the reported user agent. User a server side script to put a class on <html> And then use the presence (or not) of that class as a hook in your script.

  • Like 3
Link to comment
Share on other sites

  • Solution

Hello @oligsap and Welcome to the GreenSock forum!

 

When the Google bot scans your page for the first time, it reads the source code of the HTML document. So it will read the <h1> text before the JavaScript has generated the new HTML <h1> markup.

 

You can also test your web page using Google web tools like Google PageSpeed Insights and Google Webmaster Tools.

 

Hope that helps   :)

  • Like 5
Link to comment
Share on other sites

  • 4 years later...

Rest assured, Google bots are capable of reading the HTML generated, so you don't need to worry about that aspect.
However, it's important to remember that SEO involves more than just HTML structure. It encompasses various factors such as quality content, user experience, and optimization techniques. Keeping these aspects in mind will contribute to your overall SEO success.
If you're seeking further guidance on SEO and how to maximize its benefits, I recommend checking out https://nlosmm.com/. They offer valuable resources and information that can help you navigate the SEO landscape and optimize your website effectively.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...