Closed dotnetshadow closed 2 years ago
window.paceOptions
Thanks for the respsonse
window.paceOptions
You mean add this before my import statement?
eventLag: false // disabled
//eventLag: {
// lagThreshold: 30
//}
};
import Pace from pace-js
yes it should work as per documentation
Da: DotnetShadow @.> Inviato: mercoledì 14 settembre 2022 04:28 A: CodeByZach/pace @.> Cc: Marco Marsala @.>; Comment @.> Oggetto: Re: [CodeByZach/pace] Import Pace and use paceoptions before it (#522)
Y
window.paceOptions
You mean add this before my import statement?
`window.paceOptions = { eventLag: false // disabled //eventLag: { // lagThreshold: 30 //} };
import Pace from pace-js`
— Reply to this email directly, view it on GitHubhttps://github.com/CodeByZach/pace/issues/522#issuecomment-1246153400, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABI2CVUHFTPPOR4UZR6E6FDV6EZ5XANCNFSM44BX7PXA. You are receiving this because you commented.Message ID: @.***>
Thanks that worked, much appreciated
Hi there,
If I put
import Pace from 'pace-js' in my script, how can I setup
paceOptions` before it. It seems the import happens before paceOptions has a chance to be set.How are people using pace-js in their scripts?