Loading
Abi Travers

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

Javascript

Live Element Lists vs Static Ones, Why document.getElementsByClassName is different to document.querySelector(‘.className’) : Bitesize JS

Bitesize Javascript series I was working on a bug in our code base with a colleague, when he noticed something strange about the behaviour of document.getElementsByClassName. In our code base it had been implemented as if it acted like document.querySelector,…..

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…..

The future of google's AMP technology. Javascript off the main thread?

The Future of AMP : JavaScript which doesn’t block the main thread?

At ComparetheMarket.com we are constantly optimising the speed of our site. We were an early adaptor of Google’s AMP technology, sold on the mobile page speed win’s it promised. Due to how early we were in using this technology we…..

learning javascript eventloop

Events, EventListeners and their relation to JavaScript, the Browser and the DOM

  Notes on things I have learnt about events and their listeners and JS while working through Wes Bos’s JS30 and talking to colleague at Compare the market. (Beware this is not a coherent article just random scribbles which i took…..