But each time you click the button it has to load the entire amount of posts. It's not sustainable and removes the benefit of only loading a few posts. Wouldn't it be better to find a solution that only loads the next five posts and adds it to what's already loaded?
That's correct when you start loading a huge amount. You could chunk it up in parts, list like we do with pages. But for this example we only have a small dataset. But you're 100% correct that this is raw and optimisable. I might do that in another video.
But each time you click the button it has to load the entire amount of posts. It's not sustainable and removes the benefit of only loading a few posts. Wouldn't it be better to find a solution that only loads the next five posts and adds it to what's already loaded?
That's correct when you start loading a huge amount. You could chunk it up in parts, list like we do with pages. But for this example we only have a small dataset. But you're 100% correct that this is raw and optimisable. I might do that in another video.
Here is an update on that.
ruclips.net/video/5uWOMhGuV-A/видео.html
Thanks a lot! 2 absolutely worthy minutes!
Glad you enjoyed it!
King 👑
Thanks!