completefrontend
BLOGS BY TAG

Debugging

Every blog about Debugging on CompleteFrontend, newest first.

Title card for what is CSS specificity, with selectors ranked from weakest to strongest: p at 0-0-1, .note at 0-1-0, #intro at 1-0-0, an inline style, then !important

HTML and CSS

What is CSS specificity?

When your CSS doesn't apply, another rule is usually winning. Here's how the browser scores selectors, why one ID beats any number of classes, where inline…

5 min read

Title card: why is my website slow, and how do you fix it, with four steps in a row: real visits, the failing metric, its biggest part, and fix then measure

Web performance

Why is my website slow, and how do you fix it?

A slow site usually comes down to a few causes. Here's how to find yours from real visits, which Core Web Vital points where, and which fix to make first.

5 min read

Two mistakes in red, each with its fix in green: onClick={save()} becomes onClick={save}, and items.length && becomes items.length > 0 &&

React

Common React mistakes beginners make

Beginners trip over the same few React mistakes: changing state directly, a stray 0 from &&, index keys, and effects that never clean up. Here's what each one…

5 min read