beforeCompactDatafile handler browser version