rstacruz/nprogress là dự án mã nguồn mở trên GitHub, viết chủ yếu bằng JavaScript, với 26.4k sao. For slim progress bars like on YouTube, Medium, etc
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Add progress to your Ajax calls! Bind it to the jQuery ajaxStart and
ajaxStop events.
Make a fancy loading bar even without Turbolinks/Pjax! Bind it to
$(document).ready and $(window).load.
Advanced usage
Percentages: To set a progress percentage, call .set(n), where n is a
number between 0..1.
NProgress.set(0.0); // Sorta same as .start()
NProgress.set(0.4);
NProgress.set(1.0); // Sorta same as .done()
Incrementing: To increment the progress bar, just use .inc(). This
increments it with a random amount. This will never get to 100%: use it for
every image load (or similar).
NProgress.inc();
If you want to increment by a specific value, you can pass that as a parameter:
NProgress.inc(0.2); // This will get the current status value and adds 0.2 until status is 0.994
Force-done: By passing true to done(), it will show the progress bar
even if it's not being shown. (The default behavior is that .done() will not
do anything if .start() isn't called)
NProgress.done(true);
Get the status value: To get the status value, use .status
Configuration
minimum
Changes the minimum percentage used upon starting. (default: 0.08)
NProgress.configure({ minimum: 0.1 });
template
You can change the markup using template. To keep the progress
bar working, keep an element with role='bar' in there. See the default template
for reference.
rstacruz/nprogress có 26.4k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/rstacruz/nprogress. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
rstacruz/nprogress có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho rstacruz/nprogress. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
rstacruz/nprogress còn đang phát triển không?
Commit gần nhất trên rstacruz/nprogress là 4.2 năm trước (theo timestamp GitHub). Repo có 1.8k fork — một chỉ báo về mức độ quan tâm của cộng đồng.
rstacruz/nprogress là gì?
rstacruz/nprogress (rstacruz/nprogress) là dự án JavaScript trên GitHub. Theo mô tả gốc: For slim progress bars like on YouTube, Medium, etc
rstacruz/nprogress viết bằng ngôn ngữ gì?
rstacruz/nprogress chủ yếu viết bằng JavaScript. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc nprogress có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về nprogress.