A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/CSSLint/csslint/wiki/Disallow-@import below:

Disallow @import · CSSLint/csslint Wiki · GitHub

The @import command is used to include CSS files within other CSS files, for example:

@import url(more.css);
@import url(andmore.css);

a {
    color: black;
}

This code includes two more style sheets at the beginning of a style sheet. When the browser parses this code, it stops at each @import and starts to download the specified file. The browser doesn't continue downloading other style sheets until this one has finished, eliminating any possible parallel downloads of CSS.

There are two alternatives to using @import:

  1. Use a build system to concatenate CSS files together before deploying.
  2. Use multiple <link> tags to include the style sheets you want. These will still be downloaded in parallel.

Rule ID: import

This rule warns when @import is being used in CSS.

The following pattern is considered a warning:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4