After years of struggling with persistent client side storage, IndexedDB is finally available on all major browsers nowadays. All good, right? Well, almost. There are some implementations out there that are either buggy (Safari) or are lacking features (IE). It’s not a show-stopper if you’re just looking for a simple key-value store, but if you
Read more
Posts Categorized: How to
Fetch API Code Completion and Type Hinting
Are you using the Fetch API yet? If no, then head over to the MDN to find out why you definitely should – and don’t forget to come right back! Ok, now that we’re all using the Fetch API whenever we can (oh, great!), you’ll find that your editor/IDE of choice probably doesn’t know about fetch
Read more
Mouse-Picking Collada Models with three.js, Part II
Roughly a year ago, I wrote about detecting COLLADA models with a three.js ray caster. That code was written for three.js revision 49 – whereas the current revision is 62. A lot of things changed since then, and the code no longer works. So, here is an update of that post for revision 62. If you
Read more
Creating dynamic builds with Grunt and Closure Compiler
There’s a build scenario I happen to run into quite frequently: I have multiple AMD modules and I want to define during build time which modules should be included in the build. That means, I want a build to be dynamic during build time, not during runtime (one could also call this a configurable build).
Read more
IndexedDB Code Completion and Type Hinting
IndexedDB isn’t really a new API, but most (maybe even all) Editors don’t provide code completion for it. This is a little annoying, but there’s a quick fix available: You just need to port the relevant IDL definitions to JavaScript, and tell your IDE to include the resulting .js file as a library. I already
Read more