Year: 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
How to connect to the MOZ API with a C# Application

How to connect to the MOZ API with a C# Application

An API is basically just a website. A website which only contains data (usually in the form of JSON), no html, CSS or java-script. To call MOZ‘s API we have to make up a URL string which will be posted to the MOZ server. The server reads this Url (request) and decided which information you want. It send this information back either to the browser or to the programme which has been written to create the API call. The process looks like this:   To call the MOZ API first we will need to work out what the request Url should look like. To illustrate how to…

Read More
System Architecture – Designing A Data Security App Which Speaks To A Number of APIs

System Architecture – Designing A Data Security App Which Speaks To A Number of APIs

I recently took part in the London Business Schools Hackathon, HackLBS. A weekend event, ran by London Business School with the premise of creating products to solve future needs. We organised into teams and spent the time designing a product and action plan for starting a company. My team decided to create a tool which shows users a map of their online presence. A credit check for your online information. The idea behind this is to give people access to some of the information  companies (especially those advertising to them) have on them. My team won, which meant we took home the prize money of…

Read More
How to set up a virtual machine on your mac

How to set up a virtual machine on your mac

A virtual machine is essentially a new machine on your current one. A new environment (area(in memory)) which is separate to your current. Why would one do this you ask? Simplezz, to create a windows operating system on a mac computer. This would mean you no longer use an IOS environment but have what is basically a windows computer on your mac. To set this up your computer will allocate processing power and memory away from your current operating system (what currently looks like your whole machine) and gives it to a new one (what looks like a windows machine). Why did…

Read More