Monitoring javascript events

I recently discovered and wrote about monitoring javascript functions in the console using monitor() – very handy and well worth a read if you’re interested in these kind of things.

Whilst I was at it, I also re-discovered monitorEvents(), which I’d completely forgotten about.  This works by letting you actually monitor the event itself, rather than the event handler function, like this…

The first line is me setting up the monitoring…

monitorEvents(window,"click");

I’ve then clicked on the page 3 times and each click event was logged to the console for me, as an object with all of the properties available to expand and inspect.

This can be super handy, so well worth remembering (mental note made).

 

Monitoring javascript functions

Debugging javascript can be hard… really hard. There are times when you find yourself adding in a million console.log() calls (not alerts, no more javascript alerts!) just to try and figure out where on earth the interpreter is going.  There have been times where I’ve added one at the top of every function to try…

It’s raining domains

Today I was looking to purchase a domain name for my son, who is currently 3.  I figure that getting a domain of our own name is only going to get harder and harder.  And even now, the best one I could get was a .me, certainly not .com or .co.uk. He has one now…

Cloudflare limits

Just a short one today, but I discovered just today something that I didn’t know about Cloudflare, and one that could certainly turn out to be costly! The maximum file size Cloudflare’s CDN caches is 512MB for Free, Pro, and Business customers and 5GB for Enterprise customers (although Enterprise customers can request caching of larger files).…

Arctic Code Vault Contributor

A few months ago I wrote about the GitHub Arctic Code Vault and how you could get your code stored away and backed up. We will protect this priceless knowledge by storing multiple copies, on an ongoing basis, across various data formats and locations, including a very-long-term archive designed to last at least 1,000 years.…

Udemy milestone

I got a nice little email through from Udemy the other day… Yes, it’s been pretty slow progress, but I’ve made it to 100 total (unique) students, across the 6 courses that I’ve made so far… Optimising your website: A development workflow with Git and Gulp (17 students) Optimising your website: A development workflow continued…