pace
pace copied to clipboard
iOS 8.1 Safari doesn't fire pace-done
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
same here.
Found the same issue when iPhone is in power saving mode.
@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();
});
}
});
where did you insert the script? I can confirm same behaviour in power safe mode but adding your script didn't solve my problem.
I did put it in tail of the head and worked (was before inside another script and failed to trigger)
This is still the same, it never finishes loading if the device is in power-saving mode.
Did anyone ever find a solution to pace loader not finishing the load when iphone is in power save mode?
I try some solutions, but finally help set eventLag to false
paceOptions = { eventLag: false, };