Chrome DevTools is reporting the same CSS on the same line twice. Is anyone else seeing this? How can I fix it?
The problem occurs in both stable (40) and Canary (42)
style.css
is being loaded exactly once. It is not minified.
There's a few options here:
If that is not the case (you're not using preprocessors or minification) I suspect have you included two references to the same file. Use view source for this - in the network tab they would appear as the same file.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test</title>
<link rel="stylesheet" href="test.css" />
<link rel="stylesheet" href="test.css" />
</head>
<body>
<h2 class="title">Title</h2>
</body>
</html>
h2.title {font-size: 30pt; color: #24a222; }
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test</title>
<style>
h2.title {font-size: 30pt; color: #24a222; }h2.title {font-size: 30pt; color: #24a222; }
</style>
</head>
<body>
<h2 class="title">Title</h2>
</body>
</html>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With