isConnected, a node property that attached to a context (i.e.
Here's how to use
const el = document.createElement('div');
el.isConnected; // false
el.isConnected; // true
I used to run
parentNode checks on the element to see if it had been injected but that's not always accurate, so I'm glad
CSS animations are a lot of fun; the beauty of them is that through many simple properties, you can create anything from an elegant fade in to a WTF-Pixar-would-be-proud effect. One CSS effect somewhere in between is the CSS flip effect, whereby there's...
I work with an awesome cast of developers at Mozilla, and one of them in Daniel Buchner. Daniel's shared with me an awesome strategy for detecting when nodes have been injected into a parent node without using the deprecated DOM Events API.
The PHP - Content & Header
The following snippet goes at the...