pace icon indicating copy to clipboard operation
pace copied to clipboard

Pace.js keeps loading while on low battery mode

Open john-khawaja opened this issue 4 years ago • 2 comments

Hi, the pace.js loader will keep loading while IOS devices are on low battery mode. Any fix?

john-khawaja avatar Jun 11 '20 17:06 john-khawaja

I've seen this too. What we've used in the past is a timeout function to detect that it's just taking WAY too long.

Example: Pace.on('hide', function() { setTimeout(function () { $('.pace').remove(); }, 2000); });

So, that'll remove Pace if it's taking more than 2 seconds--which we're assuming isn't the case. Instead, someone's iOS device is in power save mode.

It's a workaround, not a fix.

jdmdigital avatar Sep 17 '20 14:09 jdmdigital

Another dirty workaround : you can detect low power mode using this.

kaleidoscopique avatar Jan 11 '21 18:01 kaleidoscopique