Hi everyone,
I wanted to share an issue I encountered with sticky bars in the Pro theme , in case it helps others — and I’d be happy to hear any feedback or recommendations from the community or Themeco team.
Context:
I’m currently working on optimizing Core Web Vitals , especially the Cumulative Layout Shift (CLS) score.
My site uses two top bars (a header and a secondary bar), both configured as sticky using Pro’s native tools.
What I observed:
- With “Starts Fixed” enabled , I was getting very high CLS values (above 0.4).
- After disabling this option on both bars , the CLS dropped to 0.001
- So the issue was not caused by having two sticky bars, but rather by the “Starts Fixed” behavior itself .
Current result:
With both bars set to sticky but without “Starts Fixed” , metrics are now stable.
The only remaining side effect is a small visual jump when scrolling starts , likely due to the bars switching from static
to sticky
without reserved height.
My questions:
- Has anyone else experienced similar behavior?
- Is there a recommended way to keep “Starts Fixed” without causing layout shifts ?
- Does Themeco have any best practices for preventing CLS in sticky headers (reserved height, preload strategies, etc.)?
Thanks in advance for any insights or suggestions!
Best,
Jean loup