As someone new to frontend engineering, I may not have all the answers and apologize if my question sounds too simplistic.
My application makes use of AJAX to fetch 4k JSON objects. To avoid making repetitive HTTP requests, I store the returned JSON in a global window object for caching purposes. Are there any recommended practices when it comes to handling this type of situation?
I understand that determining an appropriate size limit for the cache will vary based on factors such as the browser, operating system, hardware, etc. My main concern is maintaining optimal UI responsiveness.
Do you have any general guidelines or best practices to share regarding this matter?