re: “We can use similar code to delay loading any images that don’t need to be present immediately.”
That said, it would seem to me it makes sense to delay displaying /loading anything that can wait. For example, the comments themselves are usually below the fold. Why not wait for them to be within scrolling distance? Or, as I think you’ve done with your comments, let the user click to see the comments. Then load / display them.
In any case, good stuff. Thanks for sharing.
p.s. I realize this article isn’t new but I wanted to comment none the less. Also, someone might have already suggested this, I did not read all the previous comments, sorry.
re: “We can use similar code to delay loading any images that don’t need to be present immediately.”
That said, it would seem to me it makes sense to delay displaying /loading anything that can wait. For example, the comments themselves are usually below the fold. Why not wait for them to be within scrolling distance? Or, as I think you’ve done with your comments, let the user click to see the comments. Then load / display them.
In any case, good stuff. Thanks for sharing.
p.s. I realize this article isn’t new but I wanted to comment none the less. Also, someone might have already suggested this, I did not read all the previous comments, sorry.