talira

Automatic page-load progress bar for websites

open sourceMITfree

PACE adds a progress bar to a web page automatically: include pace.js and one of its CSS themes early in the page, and it watches ajax requests, event loop lag, the document's ready state and chosen elements to decide how far loading has got, starting again on ajax navigation. It needs no configuration, takes options through window.paceOptions or the script tag, and works with AMD, Browserify and bundlers. It was first written at HubSpot and is now maintained by Zachary Miller.

Problems it solves

  • show a loading progress bar on my website without wiring it to every request
  • add a page-load indicator to a single-page app
  • give users feedback while ajax content loads

Features

  • automatic progress from ajax, event loop lag and ready state
  • restarts on ajax navigation
  • CSS themes
  • no configuration needed
  • AMD, Browserify and bundler support