Currently the fridge is rebuilt from scratch with an ajax request every 10 minutes.
If the user is watching a youtube video at this moment, he will lose it.
The automatic refresh feature needs to be rebuilt at the post level instead of the fridge level.
1) do not empty the fridge.
2) retrieve all post with ajax request.
3) check if post is already displayed on the fridge.
-> if yes, just update position. (use some sliding transition to move de post around)
-> if no build it.
-> if one of the post displayed on the fridge is not in the list, erase it.
Currently the fridge is rebuilt from scratch with an ajax request every 10 minutes. If the user is watching a youtube video at this moment, he will lose it.
The automatic refresh feature needs to be rebuilt at the post level instead of the fridge level. 1) do not empty the fridge. 2) retrieve all post with ajax request. 3) check if post is already displayed on the fridge. -> if yes, just update position. (use some sliding transition to move de post around) -> if no build it. -> if one of the post displayed on the fridge is not in the list, erase it.