Cleanup

* Using replaceChild method for the resize link.
* Simplifying the detection of posts that are already displayed and getting ready to decrease loading time for posts with a large number of notes.