• Resolved frisco

    (@frisco)


    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?

Viewing 1 replies (of 1 total)
  • Plugin Contributor alexgso

    (@alexgso)

    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 1 year, 2 months ago by alexgso. Reason: Added snippet
Viewing 1 replies (of 1 total)
  • The topic ‘Custom CSS loading delay’ is closed to new replies.