pace icon indicating copy to clipboard operation
pace copied to clipboard

iOS 8.1 Safari doesn't fire pace-done

Open alessiolovecchio opened this issue 8 years ago • 8 comments

On my Mac iOS Simulator with iPhone 6 and iOS 8.1:

Mozilla/5.0 (iPhone; CPU iPhone OS 10_11_6 like Mac OS X) AppleWebKit/600 1.4 (KHTML, like Gecko) Version/8.0 Mobile/12b411 Safari/600 1.4

The script stays on pace-running and never fires pace-done. I see this from the class attached to the body element. Anyone could know how to solve this issue? Thank you

alessiolovecchio avatar Sep 30 '17 14:09 alessiolovecchio

same here.

dennobaby avatar Oct 19 '17 00:10 dennobaby

Found the same issue when iPhone is in power saving mode.

ProxiBlue avatar Oct 26 '17 01:10 ProxiBlue

@alessiolovecchio @dennobaby

I came up with a (bit of a hackish) way to overcome this issue. Basically fire a pace.stop() upon the window.load event.

Pace.on('start', function() {
    if (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) {
           jQuery(window).load(function() {
                     Pace.stop();
          });
    }
 });

ProxiBlue avatar Oct 26 '17 07:10 ProxiBlue

where did you insert the script? I can confirm same behaviour in power safe mode but adding your script didn't solve my problem.

to8gal avatar Oct 30 '17 12:10 to8gal

I did put it in tail of the head and worked (was before inside another script and failed to trigger)

to8gal avatar Oct 30 '17 12:10 to8gal

This is still the same, it never finishes loading if the device is in power-saving mode.

anteksiler avatar Jul 09 '18 17:07 anteksiler

Did anyone ever find a solution to pace loader not finishing the load when iphone is in power save mode?

waynep16 avatar Aug 23 '18 22:08 waynep16

I try some solutions, but finally help set eventLag to false

paceOptions = { eventLag: false, };

daliborhonza avatar Sep 19 '20 17:09 daliborhonza