fengyuanchen/cropperjs
Memory not released in Safari when editing multiple images
Aperta
#963 aperta il 20 lug 2022
help wantedquestionv1
Metriche repository
- Star
- (13.861 stelle)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
When multiple images are uploaded, page memory is adding up and never released. Especially when using mobile devices, this results in the WebView to eventually reload (this is especially problematic when Cropper.js is implemented in a page with other information, as that information would then be lost).
To Reproduce: While monitoring memory usage in Safari's Web Inspector 1 - Upload image 2 - Upload another image ..n - Upload another image
Screenshots

Tested on:
- macOS 12 Monterey / iOS 15
- Safari 15.5
- Cropper.js Version v1.5.12 ( issue can be reproduced on https://fengyuanchen.github.io/cropperjs/ )