Loading
Abi Travers

My Blog. Full Stack Software Engineer. Ex-Growth Hacker.

Bitesize

html element root element

Document.documentElement: BiteSize JS and web performance

I was recently advised to use Document.documentElement when querying the DOM to get the html element. This came about because I was refactoring an old code base to swop JQuery for vanilla JS. Doing this I saw: $(‘html’) This is…..