No more javascript alerts

I’ve been a web developer long enough to remember when window.console wasn’t a thing.  Then it appeared in Safari and Firebug, the awesome developer tool plugin for Firefox (that made Firefox my default development browser it was so good), but we had to object detect for it.  And Opera decided to go their own way and…

Fun with console logging

Ok, so “fun” is probably a relative term here, but it’s certainly possible to do a lot more with console logging than a lot of developers realise, including myself up until a couple of weeks ago, and I’ve just had the opportunity to use it in my latest project, Compare the Project™. So if you got…

My code is not unsafe(-eval)

I was working on a project this week when I came across something which confused me, and that was the following error in my browser console… Refused to evaluate a string as JavaScript because ‘unsafe-eval’ is not an allowed source of script in the following Content Security Policy directive: ‘self’ In itself, not massively odd.  I…

Minifying (or uglifying) javascript

Totally in keeping with my New Year’s Resolution, here is a lovely new blog post!  And it’s a continuation of my new development process.  The last post in the series detailed my switch to using pump instead of pipe in my Gulp task. Today’s post is about minifying javascript, which is sometimes called “uglifying”.  The reason being that this…