CodeByZach/pace
Automatically add a progress bar to your site.
📊 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.jsand 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/replaceStateflows. - Flexible configuration: Set
window.paceOptionsbefore loading Pace, or usedata-pace-optionsJSON on the script tag; options read once whenpace.jsloads. - 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.selectorsso 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
classNamefor 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.
A very simple, highly customisable youtube-like react loader component.
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.
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
Easy way to block the user from interacting with your UI.
550C 开机动画 for DeepSeek Harness — 首帧由宿主半边注入,DSH 的 Loading 卡片不露脸;桌面原生标题栏按钮收编成终端配色 | 550C boot splash plugin for DSH
A lightweight JavaScript plugin that transforms your logo into a custom progress bar.
Pace.js load progress bar for Ember apps, incl. Flash-like initial script lazy loading