make route checking on pageload configurable

@redonkulus