Load Print Stylesheets Asynchronously to Improve Performance

Performance Analyzer

What is this warning?

Your page has a print stylesheet that's loading synchronously, which can block the rendering of your page even though it's only needed when users print. Print stylesheets should be loaded in a way that doesn't impact the initial page rendering performance.

How to Fix This Issue

How to Fix It

The Problem

<link rel="stylesheet" href="print.css">

The Solution

Add the `media="print"` attribute to ensure the stylesheet only loads when needed for printing.

<link rel="stylesheet" href="print.css" media="print">

Why This Works

By specifying `media="print"`, the browser won't block page rendering to load the print stylesheet, as it's only needed when the user actually prints the page. This improves initial page load performance.

SEO Impact

This issue can affect your site's search engine rankings and user experience. Addressing it promptly helps ensure optimal performance and visibility in search results.

Automatic Detection

Black SEO Analyzer automatically checks for this warning during site analysis, along with hundreds of other technical SEO issues.

Ready to Unlock Your Site's Full SEO Potential?

Choose the license that fits your needs and start getting the deep, actionable insights you deserve.