'webkitIndexedDB' is deprecated. Please use 'indexedDB' instead

NealR picture NealR · Oct 29, 2014 · Viewed 14.5k times · Source

Does anyone know what this error means? This message started to appear in the Chrome console this week and is throwing an error in jquery modernizr. Doesn't seem to be much helpful info out on the web either.

enter image description here

Answer

Patrick picture Patrick · Oct 29, 2014

That is a result of a modernizr test. It is checking to see if indexedDB exists by attempting to access all known browser versions (mozIndexedDB, webkitIndexedDB, indexedDB, etc).

You can safely ignore it, it is just saying that if you are using webkitIndexedDB for actual code (ie storing data in it), that you should be using indexedDB instead.

If you are not using indexedDB at all, you should create a new custom build of modernizr that has only the detects that you actually need. More than likely this is a version with everything in it, which drags down the performance of the entire site.

Also, if you are using Modernizr 1.7 - thats super now. I would really recommend updating!