Preserve zoom/scroll state when switching between optimized and unoptimized views