Reputation: 1382
I would guess no, it is a window property and has no dependecies on the DOM.
Why then in this net plus tutorial is its detection tied to the DOM content loaded event?
Is this just thoughtless boiler plate?
http://net.tutsplus.com/tutorials/javascript-ajax/working-with-indexeddb/
Upvotes: 0
Views: 73
Reputation: 13131
IndexedDB has nothing to do with DOM. You don't need to wait anything. You can use in head as well.
The only thing is it need window
instance or origin for security and quota management. IndexedDB API, however, still use DOM convention such as event handling and error.
Upvotes: 1