Javascript object with undefined key

Read more →

Bookmarklet to identify those annoying x-overflows in your responsive site

Is not unusual when you’re adapting a desktop design to smaller devices to have some hidden element overflowing your viewport in the x-axis and causing this annoying and undesirable horizontal scroll. Sometimes it’s not easy to find the element that is breaking the layout, especially if you’re working on some legacy codebase you don’t really know. In those cases, I use this Javascript snippet to help me identify which element(s) are to blame.
Read more →

Finding active interval timers

I’ve been recently in the situation of having a legacy spaghetti website with a buggy behavior that clearly was executed at constant intervals but I didn’t have a clue of what code/function was being executed or even where was this code defined. Apparently no browser’s developer tools provides an easy way to inspect and debug timers. How many active setInterval do I have? Which functions are currently being called by setTimeout or setInterval timers?
Read more →