nystudio107 / craft-seomatic

SEOmatic facilitates modern SEO best practices & implementation for Craft CMS 3. It is a turnkey SEO system that is comprehensive, powerful, and flexible.
https://nystudio107.com/plugins/seomatic
Other
162 stars 68 forks source link

The body tag is hidden when the scripts are loaded #1445

Closed dialedin-team closed 3 months ago

dialedin-team commented 3 months ago

Describe the bug

I loaded the GTM script using the SEOMATIC plugin. When the GTM scripts are loaded, the body tag is hidden. Actually, this CSS(opacity: 0 !important; background: none !important;) is applied to body, and there is no setting related to this on the plugin side. Why is it applied? This results in a white flash upon page load.

Versions

dialedin-team commented 3 months ago

Sorry for the inconvenience. It's not a plugin issue; The issue stems from the VWOCode third-party script. When the GTM scripts are loaded, the body tag is hidden. Actually, VWOCode applies this CSS (opacity: 0 !important; background: none !important;) to the body. When the page is fully loaded, it will remove the CSS from the body, resulting in a flashing effect.

Thanks!

khalwat commented 3 months ago

Glad you got it sorted.