I see that there is some injected code in the footer for the maps. Now, I don't have any maps on this page. I actually only use the maps on 1 page.
Is there a filter that we can use to get rid of this extra code in my footer? I looked through the source and didn't see anything. So i'm hoping that you can help clarify for me. If there is an option here to do so, that would be amazing. I understand that by removing this could break some features, but i'm looking to improve my site code some more, and would like to clean this up.
This has come up a few times in the past, so I'm familiar with it.
The way the styles are added there is currently no way to dequeue them by adding a snippet of code, for example, and there are no such options available.
This will get some attention as part of a wider effort to look at giving more control to users about what styles and scripts are added to which pages.
As a general rule, many such scripts, such as the Views pagination script, are added to all pages because they need adding at a time in the page-building process before we know whether they are needed or not (e.g. there could be such a View in a footer widget). After several requests the developers agreed to take another look at this.
As you probably know they have had their hands full for some time working on the new post relationships and repeating field groups features, but once the production versions of these are shipped they will turn to the requested features and begin work on them.
I am adding your voice to this request, and, as an aside, you may like to know that we are also working on a system to publish feature requests so that clients can vote on them, which will hopefully be out before too long.
A fancy solution down the line is great, but a major +1 for a quick fix in the upcoming release.
So that it can be manually dequeued/deregistered until then.