Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 840
NealR Avatar asked Oct 29 '14 19:10

NealR


1 Answers

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!

like image 128
Patrick Avatar answered Oct 04 '22 00:10

Patrick