That’s great, thank you – I can adapt that code block to unload other libraries too so it’s really useful.
That all seems to be moving in the right direction. One issue in particular that I would like to sort is the loading of the Google Maps api on all pages – we don’t use Google maps anywhere on the website so that would be a good start. Do you have some code that would allow me to dequeue that unconditionally on all pages?
Many thanks in advance,
Anthony