To see the directive in action - just open these two links in separate tabs. Then arrange the tabs so both are visible and refresh them:
Long page with project enabled
Long page without project enabled