0👍
You can send 100 posts at a time when fetching the next 100 posts you can send the last posts Id and use it as a cursor (Asuming you are using SQL based database but then with a little tweak it works for NoSql databases too) to fetch the post in a efficient way
You can overwrite the posts global variable to make the webpage more efficient in terms of memory unless you want the post to be stored in some Local storage and parse them if the posts are not like very frequently updated
In routing you can use a dynamic value to set the cursor so that you can group the posts as 100 and use it to traverse through them
- [Vuejs]-Babel-import-plugin doesn't seem to reduce ant-design-vue size after use nuxt build config
- [Vuejs]-How to hide website's Vue.js admin panel code from unauthorized clients
Source:stackexchange.com