WPIntell

Source evidence

Custom CSS loading delay

SiteOrigin CSS · support · 2023-09-03T18:24:00+00:00

mixedsentiment
mediumseverity
0.8relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 21 rows with source links

23.8% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

16 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
frisco resolved
Hi there…we have a site with MonsterInsights Premium (latest version 8.19.0) installed. With SO CSS 1.5.3, custom CSS loads fine, no matter whether MonsterInsights Premium is activated or deactivated. With SO CSS 1.5.8 & MonsterInsights Premium activated , the site first loads without the custom CSS, so it’s not following those styling rules. Then, after a brief delay, the custom CSS loads and the site appears as it should. With SO CSS 1.5.8 & MonsterInsights Premium deactivated , everything works fine. Can we control the load priority or is this an issue we have to take up with them? Hi Frisco, Thanks for reaching out. In older updates, there was previously a small chance for CSS to be output directly on the page rather than using an external CSS file and I suspect SiteOrigin CSS was unintentionally doing that. That would explain why it’s not working like it previously did. That difference would be intentional by MonsterInsights Premium as they must be setting up scripts to defer until after the page loads. This is a popular performance technique but it can result in display differences like you’re getting. I can’t seem to find a method of adjusting this from their documentation so consider checking with them as it would be useful for you with other plugins. You can tell SiteOrigin CSS to always output its CSS directly to the page (how it used to work for you) by adding some PHP to your website. If you don’t have a method of adding PHP, please install Code Snippets . add_filter( 'siteorigin_css_enqueue_css', '__return_false' ); Click Save Changes & Activate . If you do have PHP, please add the above PHP using that method. Kind regards, Alex This reply was modified 2 years, 8 months ago by alexgso . Reason: Added snippet

Comments

1 shown
alexgso 2023-09-04T04:47:00+00:00

Hi Frisco, Thanks for reaching out. In older updates, there was previously a small chance for CSS to be output directly on the page rather than using an external CSS file and I suspect SiteOrigin CSS was unintentionally doing that. That would explain why it’s not working like it previously did. That difference would be intentional by MonsterInsights Premium as they must be setting up scripts to defer until after the page loads. This is a popular performance technique but it can result in display differences like you’re getting. I can’t seem to find a method of adjusting this from their documentation so consider checking with them as it would be useful for you with other plugins. You can tell SiteOrigin CSS to always output its CSS directly to the page (how it used to work for you) by adding some PHP to your website. If you don’t have a method of adding PHP, please install Code Snippets . add_filter( 'siteorigin_css_enqueue_css', '__return_false' ); Click Save Changes & Activate . If you do have PHP, please add the above PHP using that method. Kind regards, Alex This reply was modified 2 years, 8 months ago by alexgso . Reason: Added snippet