This plugin is not required but highly recommended. If you decide to remove PaceJS from core, Internet Explorer may have some CSS issues during page load. Some animations will execute before a page is fully loaded, resulting 'jumpy / jerky' animations.
Find in-depth, guidelines, tutorials and more on Pace's Official Documentation
.mod-pace-custom
Methods | Description |
---|---|
Pace.start
|
Show the progress bar and start updating. Called automatically if you don't use AMD or CommonJS. |
Pace.restart
|
Show the progress bar if it's hidden and start reporting the progress from scratch. |
Pace.stop
|
Hide the progress bar and stop updating it |
Pace.track
|
Explicitly track one or more requests, see Tracking below |
Pace.ignore
|
Expliticly ignore one or more requests, see Tracking below |
window.paceOptions
before bringing in the file:
paceOptions = { // Disable the 'elements' source elements: false, // Only show the progress on regular and ajax-y page navigation, // not every request restartOnRequestAfter: false }
<script data-pace-options='{ "ajax": false }' src='pace.js'></script>