Skip to content

Conversation

@jasperf
Copy link
Contributor

@jasperf jasperf commented Nov 24, 2025

This PR expands the async CSS loading implementation to include additional third-party and theme stylesheets beyond the initial WooCommerce focus. The changes modify the stylesheet loading filter in app/filters.php to apply media="print" and onload attributes to a broader set of CSS files, enabling non-blocking stylesheet loading for improved page performance. This builds upon the previous async CSS loading work introduced in the codebase, extending the optimization pattern to cover more render-blocking resources.

Performance Optimization:

  • Extended async loading pattern to additional stylesheets by expanding the filter logic that converts blocking CSS to non-render-blocking resources
  • Stylesheets now load with media="print" initially and switch to media="all" via JavaScript onload handler, preventing CSS from blocking initial page render

Documentation:

  • Updated CHANGELOG.md to document the expanded async CSS loading functionality
  • Incremented theme version in style.css to reflect the enhancement

Files Changed:

@jasperf jasperf merged commit 57a663f into main Nov 24, 2025
2 checks passed
@jasperf jasperf deleted the expanded-async-css-loading branch November 24, 2025 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants