CodeByZach / pace

Automatically add a progress bar to your site.
https://codebyzach.github.io/pace/
MIT License
15.68k stars 1.9k forks source link

Unable to prevent loading indicator from Intercom #264

Open ericgross opened 8 years ago

ericgross commented 8 years ago

Intercom keeps some websockets open and I have tried to ignore them both with a configuration regex as well as wrapping the call to Intercom in a Pace.ignore call.

Any tips?

mbeech commented 8 years ago

I've just struggled with this one for an hour or so! The mistake I made was setting the Pace options in jQuery so it wasn't loading before Pace started running.

Before pace.js try:

paceOptions = {
    ajax: {
        trackWebSockets: false,
        ignoreURLs: ['intercom']
    }
}