Skip to content

Add native option to inline critical CSS / core stylesheet in Neve #4694

Description

@pirate-bot

Impact: 65 · Confidence: 90 · Complexity: 55

Description

Problem

Google PageSpeed Insights / Lighthouse flags Neve's primary stylesheet (style-main-new.min.css) in the 'Avoid chaining critical requests' audit, causing critical path latency delays on initial load.

Desired Behavior

Provide a performance option within Neve (or Performance module) to inline the core theme CSS directly into the HTML document <head> or automatically extract and inline critical above-the-fold CSS while deferring the remainder, eliminating network fetch latency for the primary theme stylesheet.

Acceptance Criteria

  • Provide a setting under Performance settings to inline core theme CSS (style-main-new.min.css).
  • When enabled, the core CSS is rendered inside <style> tags in <head> rather than enqueued as an external blocking link.
  • Verification that Lighthouse 'Avoid chaining critical requests' warning for style-main-new.min.css is resolved when enabled without breaking page rendering.

Customer Context

WordPress.org user running Lighthouse for their site (llbvarun.com) reported an 824ms maximum critical path latency warning triggered by Neve's main stylesheet (/wp-content/themes/neve/style-main-new.min.css). They are asking for a built-in or recommended way to inline critical CSS or reduce CSS request chain latency in Neve.

Root Cause Analysis

Neve enqueues style-main-new.min.css as a render-blocking stylesheet resource via standard <link rel="stylesheet">. On mobile or slow network connections, fetching this asset adds sequential network latency to the critical rendering path. While third-party optimization plugins can inline CSS, native theme support for critical CSS inlining or core stylesheet inlining prevents layout shifts and dependency friction. Note: Issue Codeinwp/neve-pro-addon#3070 requests deferring non-critical CSS in Neve Pro, which is closely related but focuses on asynchronous CSS preloading rather than core critical CSS inlining in the base theme.


Source: HelpScout #3511403169
Generated by feature-request-triage workflow (ID: feature-request-triage_6af3e864980e50.35438852)

Activity

  1. added
    customer report
    on Nov 11, 2026
  2. pirate-bot commented on Nov 12, 2026

    @pirate-bot
    CollaboratorAuthor

    Another customer requested this via support.

    Context: WordPress.org forum user reported that Google PageSpeed Insights flags /wp-content/themes/neve/style-main-new.min.css as a render-blocking request and critical request chain bottleneck (824 ms latency). The customer asked specifically how to eliminate render-blocking requests or inline critical CSS for Neve.

    Source: HelpScout #3512569960


    Generated by feature-request-triage workflow (ID: feature-request-triage_6af547f7e3fd13.05301367)

  3. pirate-bot commented on Nov 12, 2026

    @pirate-bot
    CollaboratorAuthor

    Another customer requested this via support.

    Context: WordPress.org user reported critical request chain latency (824ms) and render-blocking warnings for style-main-new.min.css. They asked for a theme setting or recommended method to inline critical CSS or eliminate render-blocking stylesheet latency.

    Source: HelpScout #3512653118


    Generated by feature-request-triage workflow (ID: feature-request-triage_6af57229619493.50011728)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    customer reportfeature-request-triage

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions