Pull to refresh issue when removing it from DOM

Hi guys,

On my app, I implemented the pull to refresh, when the user is offline and wants to refresh the content (if back online in the meantime).

I’ve changed this codepen to show my issue. http://codepen.io/canihazcookienow/pen/qEeOpW

When you pull once, the pull to refresh is removed from DOM but if you try to pull again, you get that “gap” in the list.

Any ideas on how to solve this ?