Adds support for custom callback on every page did finish loading event.