# Dotquilt and react-loading-skeleton

> How Dotquilt compares with react-loading-skeleton, as a React skeleton loader alternative. Size, adoption, accessibility, server rendering, CSP and how loading ends, with sources.

[react-loading-skeleton](https://github.com/dvtng/react-loading-skeleton) is the most used React skeleton library: a grey bar with a shimmer that you render in place of your content, sized from the text around it. Dotquilt is a newer set of skeleton loaders that wrap the part of the page that loads, keep it out of reach while it is pending, then hand over to it. Both are MIT-licensed.

**In short:** pick react-loading-skeleton for a tiny, proven shimmer that sizes itself from your typography and simply swaps to your content, including on React 16.8 to 18. Pick Dotquilt when a whole region (a card, a chart, a table) should hold its shape and hand over to the content, and pending content must be inert with focus kept. In return you take on about 10 KB or more of JavaScript and a 0.x API.

## At a glance

Checked on 30 November 2026. Sizes are minified and gzipped, measured the same way for both with Bun, with React left out.

| | react-loading-skeleton 3.5.0 | Dotquilt 0.2 (`@dotquilt/react`) |
| --- | --- | --- |
| Downloads a week | [1,483,541](https://api.npmjs.org/downloads/point/last-week/react-loading-skeleton) | [300](https://api.npmjs.org/downloads/point/last-week/@dotquilt/react) (new in November 2026) |
| GitHub stars | [4,214](https://github.com/dvtng/react-loading-skeleton) | [3](https://github.com/b4rb13/dotquilt) |
| Latest release | [3.5.0, 21 September 2024](https://registry.npmjs.org/react-loading-skeleton) | 0.2, November 2026 |
| React versions | 16.8 and later | 19 |
| Other frameworks | none | Vue, Svelte, Angular and plain HTML |
| Size | about 1.2 KB (JavaScript and CSS) | 10.1 KB for SkeletonText, 13.1 KB for LoadingRegion, plus 6 KB loaded later for the handoff |
| What it draws | lines, circles, your own wrapper | lines, blocks, circles, text, charts, tables, values and typing dots |
| Sizes itself | from the surrounding font size | you size the placeholder with CSS or `lines`; the handoff reads your real layout |
| How loading ends | your code swaps the skeleton for the content | the marks take the content's shape, then the content wipes in (about a second) |
| Pending content | not wrapped: you render the skeleton instead of it | inert, hidden from assistive technology and `aria-busy`; focus is kept |
| Reduced motion | the shimmer stops | loaders hold a still picture, and the handoff swaps at once |
| Forced colours | no rules | a dotted outline in the system text colour |
| Strict Content Security Policy | a static stylesheet you import | needs a nonce, hashes or external stylesheets ([guide](/docs/guides/csp/)) |
| Server rendering | renders the same on server and client | placeholder markup and styles in the first HTML |

## Where react-loading-skeleton is better

- **Adoption and track record.** About 1.5 million downloads a week and eight years on npm. Dotquilt is a few weeks old.
- **Size.** About 1.2 KB against about 10 KB for one Dotquilt loader in React.
- **No sizing work.** A skeleton takes the height of the text around it and fills its width, so a component can show its own skeleton with no CSS.
- **Strict CSP with no setup.** Its styles are a file you import. Dotquilt adds its styles at runtime unless you pass a nonce or point it at external stylesheets.
- **Older React.** It works with React 16.8 and later; `@dotquilt/react` needs React 19.
- **Simplicity.** One component and an optional theme context, with nothing to manage.

## Where Dotquilt differs

- **It manages the loading states.** A region is `pending`, `refreshing` or `ready`. While pending, its content is inert and hidden from assistive technology, and focus inside it moves to the region. `refreshing` keeps the content usable while newer data loads.
- **It hands over.** Instead of the skeleton disappearing, its marks take the shape of the content that arrived, then the content takes over. See [the handoff](/docs/components/loading-region/#the-handoff).
- **No flicker on fast loads.** `delay` skips the placeholder when data arrives quickly, and `minDisplay` keeps it long enough not to flash.
- **Loaders for data.** [ChartLoader](/docs/components/chart-loader/), [TableLoader](/docs/components/table-loader/), [TextLoader](/docs/components/text-loader/) and [TypingDots](/docs/components/typing-dots/).
- **Forced colours and a limit on motion.** Idle motion stops after four seconds. See [Motion and accessibility](/docs/guides/motion/).
- **Beyond React.** The same loaders are native Web Components, with packages for Vue, Svelte and Angular.

## Moving from react-loading-skeleton

```tsx title="react-loading-skeleton"
import Skeleton from 'react-loading-skeleton';
import 'react-loading-skeleton/dist/skeleton.css';

{article ? <Article data={article} /> : <Skeleton count={5} />}
```

```tsx title="Dotquilt"
import { LoadingRegion, SkeletonText } from '@dotquilt/react';

<LoadingRegion
  state={article ? 'ready' : 'pending'}
  aria-label="Article"
  placeholder={<SkeletonText lines={5} />}
>
  {article && <Article data={article} />}
</LoadingRegion>
```

- `<Skeleton count={n} />` becomes `<SkeletonText lines={n} />`; a single bar is `<SkeletonLine />`, and `circle` is `<SkeletonCircle />`, sized with CSS.
- `<SkeletonTheme baseColor highlightColor>` becomes the `--dotquilt-color` and `--dotquilt-accent-color` custom properties. See [Theming](/docs/theming/).
- The condition that swapped the skeleton for your content becomes the region's `state`. See [React and Next.js](/docs/guides/react/).

## Sources

Checked on 30 November 2026: downloads from the npm API (the week of 23–29 November), stars and releases from GitHub and the npm registry, behaviour from react-loading-skeleton's published 3.5.0 package (`dist/index.js` and `dist/skeleton.css`) and its README. Dotquilt's sizes come from `bun run size` in [its repository](https://github.com/b4rb13/dotquilt). Something out of date? [Open an issue](https://github.com/b4rb13/dotquilt/issues).
