iOS Safari Protection

Purpose-built for Safari's jetsam process killer. Detects pressure signals and acts before the browser kills your tab.

Signals Monitored

SignalDetectionResponse
Page backgroundedvisibilitychange, pagehide, blurFreeze all iframes
Low priority + backgroundSame eventsDestroy (not just freeze)
FPS drop < 20rAF timing analysisDowngrade quality
FPS drop < 10Sustained low FPSFreeze all but highest priority
GC pause > 200msFrame delta spikeMemory warning
Tab previously killeddocument.wasDiscardedRestart at minimal quality
Memory nearing limitPreflight estimationBlock new iframe loads

Configuration

new IframeShield({
  ios: {
    crashPrevention: true,
    backgroundFreeze: true,
    backgroundDestroyLowPriority: true,
    memoryWarningThreshold: 0.7,
    aggressiveCleanup: true,
    maxMemoryMB: 1200,
  },
});
Important: iOS Safari has no performance.memory API. Memory detection relies on FPS analysis, GC pause detection, and allocation timing probes.