I've noticed that at every page load script send ajax request to favorites_array action and gets all user favorites. More favorites, more data every page, more waste of server resources.
If it is important to load this data each time, probably it would be great to use localStorage and update it when new favorites will be added or removed?
Hello,
I've noticed that at every page load script send ajax request to favorites_array action and gets all user favorites. More favorites, more data every page, more waste of server resources.
If it is important to load this data each time, probably it would be great to use localStorage and update it when new favorites will be added or removed?
Thank you in advance!