Jump to content
GreenSock

Desque

SplitText causes Layout Reflow

Moderator Tag

Recommended Posts

Hello. Could anybody explain to me why this simple code would cause layout reflow ? 

And You guys would need to actually go into the codepen link and Inspect with f12 to see the reflow in the console. This happen on my Local Server as well.

Thank you

See the Pen ZEqKeLv?editors=1111 by kevinfphan (@kevinfphan) on CodePen

Link to comment
Share on other sites

Hiya!

 

Split text adds elements to wrap the words/lines etc, maybe that's what you're seeing? The DOM gets adjusted on creation.

Link to comment
Share on other sites

11 hours ago, Cassie said:

Hiya!

 

Split text adds elements to wrap the words/lines etc, maybe that's what you're seeing? The DOM gets adjusted on creation.

Well because I'm wondering if these Layout Reflow (violation) would cause the performance or SEO ranking of the website to be lower?

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.
×