I'm writing an extension that overrides the default Chrome history page.
The custom history page makes a few db calls when it's loaded.
I'm finding that the history.js file I have in the background.html override page is getting called with every page load (ie, not just when the user opens the history page)
This is problematic because it leads to unnecessary db calls and sometimes other errors that result from the history page being called but not being displayed.
Can anyone verify that this is Chrome's intended behavior (for some reason I don't understand), and I need to find a way to prevent history.js from making db calls when the history page isn't being displayed?
Alternately, does anyone know what I might be doing wrong that would cause history.js to be called with every page load?