Prevents throwing errors on mobile safari

On mobile safari with larger datasets this lines throws error:
QUOTA_EXCEEDED_ERR: DOM Exception 22: An attempt was made to add something to storage that exceeded the quota