mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
- Add #model private field to cache loaded model instance - Properly await model.load() before using the model - Pass cached model to detection function instead of global reference - Add model cleanup in clear() method to release resources This prevents redundant model loading and ensures the model is fully initialized before use, improving performance and reliability of ML-based panel detection.