You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are opening the connection on $.indexedDB(INDEXEDDB_DATABASENAME) but we are not closing it after operation is successfully completed or we do not have method exposed to close connection. Connection is only get closed when "onversionchange" event occur.
This way connection is always opened and causing memory leak.
To reproduce this I have tried on "http://nparashuram.com/jquery-indexeddb/example/index.html" to move (3)product to cart and again back to catalog. It is leaking around 38KB for connection and 60KB for closure(onversionchange).
I am attaching the memory heap snapsort and the changed indexedDB library.
Existing Library :
New Implementation :
I am attaching the zip file of new source code if its look good to you please update the library. jquery.indexeddb.js.zip
The text was updated successfully, but these errors were encountered:
We are opening the connection on $.indexedDB(INDEXEDDB_DATABASENAME) but we are not closing it after operation is successfully completed or we do not have method exposed to close connection. Connection is only get closed when "onversionchange" event occur.
This way connection is always opened and causing memory leak.
To reproduce this I have tried on "http://nparashuram.com/jquery-indexeddb/example/index.html" to move (3)product to cart and again back to catalog. It is leaking around 38KB for connection and 60KB for closure(onversionchange).
I am attaching the memory heap snapsort and the changed indexedDB library.
Existing Library :
New Implementation :
I am attaching the zip file of new source code if its look good to you please update the library.
jquery.indexeddb.js.zip
The text was updated successfully, but these errors were encountered: