Use native 'push' rather than 'addRange' to avoid errors during page unload.