RepositoryJavaScript
CodeByZach

CodeByZach/pace

Automatically add a progress bar to your site.

15.6ksao
1.8kfork
42issue
4lượt xem

📊 Pace: Automatic Progress Bar for Any Site

Drop in one script and a theme CSS — get page loading progress with no wiring.

Pace by CodeByZach is a CSS/JS library that adds an automatic web page progress bar. It watches real loading signals on the page and shows progress without manual updates. Good fit for sites that want clear loading feedback during page loads, ajax navigation, or dynamic content rendering.

✨ Highlights

  • Automatic progress tracking: Monitors ajax requests (XMLHttpRequest and WebSocket), document readyState, event loop lag, and page elements to decide progress.
  • Quick setup: Include pace.js and a chosen theme CSS early in the page; Pace starts tracking automatically in plain script usage.
  • Ajax navigation aware: Progress can begin again on ajax navigation and tracked requests; restart behavior covers pushState/replaceState flows.
  • Flexible configuration: Set window.paceOptions before loading Pace, or use data-pace-options JSON on the script tag; options read once when pace.js loads.
  • Bundler/module support: With AMD/CommonJS/import setups, Pace does not auto-start; set options before load and call Pace.start().
  • Configurable collectors: Enable/disable or tune collectors (ajax, elements, document, eventLag) to match what counts as progress.
  • Element-based readiness: Use selector rules in elements.selectors so Pace treats page rendering as complete when required elements (or fallback error selectors) appear.
  • Themes and styling hooks: Choose from bundled themes or add a custom class via className for light styling changes.

💡 Why it matters

Many progress bars need manual start/stop calls tied to every request or route change. Pace shifts that work to built-in collectors, so common loading signals drive the bar with minimal integration code. You still keep control through options, restart rules, and collector settings when default behavior is too noisy or too quiet.

Pace fits best when you want fast visual feedback on traditional pages, ajax-heavy flows, or apps where users benefit from seeing that work is still happening.


#ProgressBar #JavaScript #CSS #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryC++
p-ranav/indicators

Activity Indicators for Modern C++

3.4k
May 9, 2025
RepositoryTypeScript
aitboudad/ngx-loading-bar

Automatic page loading / progress bar for Angular

788
Dec 7, 2025
RepositoryTypeScript
klendi/react-top-loading-bar

A very simple, highly customisable youtube-like react loader component.

749
Oct 2, 2026
RepositoryTypeScript
maitrungduc1410/react-native-loader-kit

Native loading and progress indicators for React Native. 50 built-ins and 50 progress designs, powered by LoaderKit, with the same motion on Android and iOS.

238
Oct 30, 2026
RepositoryTypeScript
tomcru/holy-loader

Holy Loader is a i18n-ready, lightweight, customizable top loading progress bar component for React / Next.js 13 & Next.js 14. #toploader #top-loader #nextjs-toploader #nprogress #nextjs-progressbar

146
Nov 13, 2025
RepositoryJavaScript
Availity/react-block-ui

Easy way to block the user from interacting with your UI.

299
Feb 21, 2023
RepositoryJavaScript
yannicksong0106/dsh-550c-boot

550C 开机动画 for DeepSeek Harness — 首帧由宿主半边注入,DSH 的 Loading 卡片不露脸;桌面原生标题栏按钮收编成终端配色 | 550C boot splash plugin for DSH

245
Oct 26, 2026
RepositoryJavaScript
franverona/loadgo

A lightweight JavaScript plugin that transforms your logo into a custom progress bar.

214
Nov 16, 2026
RepositoryJavaScript
vectart/ember-cli-pace

Pace.js load progress bar for Ember apps, incl. Flash-like initial script lazy loading

122
Jun 5, 2020