Month: May 2018

The Future of AMP : JavaScript which doesn’t block 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 have faced many challenges on the way. I wanted to look at if the future would be a smoother process, and what new features are coming up. What is AMP The AMP Project, started by Google, stands for “Accelerated Mobile Pages”. It is targets mainly the mobile version on websites. It uses a number of best practice optimisation techniques. As soon as…

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

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 down through a conversation). Events/ Events/ Events The DOM Is an event based system. The Browser is an event based system. Keydown etc are events which happen that the browser can capture / listen to and note. When the browser is open and JS script is listening for a particular event it can then go off and execute a given…

Read More