Skip to content

Skeleton Table Loader

Dark Bootstrap 5 table with shimmering skeleton rows that are replaced by member data, status pills and storage bars once loading finishes.

Also known as: table skeleton loading, loading placeholder table, shimmer table rows, skeleton screen table, table loading state

Skeleton Table Loader live demo

Open in new tab

Bootstrap 5 code (HTML, CSS, JS)

A dark Bootstrap 5 skeleton table loader that shows shimmering placeholder rows while data is loading and then swaps in the real rows with avatars, status pills and storage bars. Use it for admin panels, user lists, order tables and any dashboard table that fetches data after the page renders.

How it works

The root section.skt-wrap sets data-bs-theme="dark", so Bootstrap's table, progress and button styles use their dark variants. Inside .skt-card sits a header with the .skt-load button and a .table-responsive wrapper around table.skt-table. The table has two bodies: tbody.skt-skeleton with five rows of .skt-bone placeholders and tbody.skt-data with the loaded rows, which starts hidden.

Every bone is a block with a three-stop linear-gradient that is three times wider than the element. The skt-shimmer keyframes move its background-position, which creates the sweeping highlight, and each row starts 0.1s later than the one above it. Modifiers shape the bones like the content they replace: .skt-bone--circle for avatars, .skt-bone--pill for the status badge and .skt-bone--bar for the progress bar. Fixed column widths on the th cells and the skt-w-* width classes keep the skeleton and the real rows aligned, so the table does not jump when data arrives.

The script handles every .skt-wrap on the page. Clicking .skt-load calls setLoading(true): the skeleton is shown, the data body is hidden, aria-busy="true" is set on the table and the button gets aria-disabled with a spinning icon. After the number of milliseconds in data-skt-delay, setLoading(false) shows the data, the label changes to "Reload" and .skt-foot reports how many rows are shown.

Customization

  • --skt-bone and --skt-shine in .skt-wrap: change the placeholder color and the shimmer highlight.
  • --skt-speed in .skt-wrap: make the shimmer faster or slower, e.g. 2s for a calmer effect.
  • --skt-accent in .skt-wrap: recolor the load button and the storage progress bars.
  • data-skt-delay on .skt-wrap: sets the simulated loading time in milliseconds.
  • Add or remove tr rows in .skt-skeleton to match the page size of your real data.
  • The width rules for .skt-table th:nth-child(...): adjust the column widths to fit your own columns.
  • The window.setTimeout call in script.js: replace it with fetch() and build the rows of .skt-data from the response.

Use cases

  • Admin panels: shimmering rows show while the member list loads from the server
  • Order tables: placeholder shapes match avatars, status pills and bars so the layout never jumps
  • Dashboards: a Reload button switches back to the skeleton and then shows the loaded data
  • Screen reader friendly apps: the table is marked busy while loading and announces how many rows loaded

Accessibility

The skeleton body is aria-hidden="true", so screen readers skip the empty bones. The table has a visually hidden caption, scope="col" headers and aria-busy while loading. .skt-foot is a role="status" live region that announces the result, and each progress bar has role="progressbar", a value and a label naming the member. The load button keeps focus while busy because it uses aria-disabled instead of disabled, and it has a clear :focus-visible outline. With prefers-reduced-motion: reduce the shimmer, the spinner and the row fade-in are turned off and the bones become flat blocks.

Usage notes

Requires Bootstrap 5 and Bootstrap Icons. On small screens the table scrolls horizontally inside .table-responsive.

Skeleton Table Loader at a glance

Framework
Bootstrap 5
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 5, Bootstrap Icons
Layout
Responsive, works on mobile, dark design
Category
Skeleton Loaders
License
Free for personal and commercial use

Questions about this template

Can I use the Skeleton Table Loader code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 5 and Bootstrap Icons from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
  • <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
Skeleton Table Loader – free Bootstrap 5 skeleton loader template
Skeleton Table Loader · free Bootstrap 5 skeleton loader template

More Skeleton Loaders

Skeleton Card Loader – free Tailwind CSS skeleton loader template

Skeleton Card Loader

Tailwind CSS skeleton loaders for an article card grid and a list, with pulse or shimmer animation that swaps to real content once loaded.

Skeleton Product Grid – free Pure CSS skeleton loader template

Skeleton Product Grid

Pure CSS skeleton loader for a product grid with shimmering placeholder cards, a wave-like sweep and an accessible loading status.

Shimmer Skeleton – free Pure CSS skeleton loader template

Shimmer Skeleton

Dark pure CSS skeleton screen for a profile card, article and comment list, with one synchronized shimmer sweep across every placeholder.