mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
62 lines
970 B
TypeScript
62 lines
970 B
TypeScript
/// <reference path="HubSpot-pace.d.ts" />
|
|
|
|
pace.start({
|
|
document: false
|
|
});
|
|
|
|
pace.start();
|
|
|
|
pace.restart();
|
|
|
|
pace.stop();
|
|
|
|
var paceOptions: HubSpotPaceInterfaces.PaceOptions;
|
|
|
|
paceOptions = {
|
|
// Disable the 'elements' source
|
|
elements: false,
|
|
|
|
// Only show the progress on regular and ajax-y page navigation,
|
|
// not every request
|
|
restartOnRequestAfter: false
|
|
}
|
|
|
|
paceOptions = {
|
|
ajax: false, // disabled
|
|
document: false, // disabled
|
|
eventLag: false, // disabled
|
|
elements: {
|
|
selectors: ['.my-page']
|
|
}
|
|
};
|
|
|
|
paceOptions = {
|
|
elements: {
|
|
selectors: ['.timeline,.timeline-error', '.user-profile,.profile-error']
|
|
}
|
|
}
|
|
|
|
paceOptions = {
|
|
restartOnPushState: false
|
|
}
|
|
|
|
paceOptions = {
|
|
restartOnRequestAfter: false
|
|
}
|
|
|
|
pace.options = {
|
|
restartOnRequestAfter: false
|
|
}
|
|
|
|
pace.ignore(function(){
|
|
});
|
|
|
|
pace.track(function(){
|
|
});
|
|
|
|
pace.options = {
|
|
ajax: {
|
|
ignoreURLs: ['some-substring', /some-regexp/]
|
|
}
|
|
};
|