Display:flex combined with inline CSS causing CLS issues on Google PageSpeed for mobile devices

  • Thread starter Thread starter bzcomputers
  • Start date Start date

bzcomputers

Guest
Member
I am not sure if this is XenForo code or an add-on code causing this...

When doing some Google PageSpeed testing I've noticed it complaining about CLS in mobile view and referencing multiple locations where inline styling is being applied to multiple main classes that represent the page structure like: p-pageWrapper, p-body, p-body-inner, p-body-main, etc.

Actual code view (mobile):
inline-styles.jpg

As you can see all these lines also indicate "flex" at the end, indicating the classes...

Read more
 
Top