英文:
images coming from api loading really slowly
问题
我正在开发一个迪士尼加克隆网页应用程序,并遇到了从API加载图像速度缓慢的问题。该应用程序使用JavaScript和ReactJS构建。我正在从一个API端点获取图像并在各种页面上显示它们。
问题在于图像需要相当长的时间来加载,导致应用程序的整体性能较慢。这会影响用户体验和响应性。
这是网站链接,您可以测试它:https://disneyplus-f1110.web.app/
英文:
I'm working on a Disney Plus clone web application and I'm encountering a problem with slow loading of images coming from an API. The application is built using JavaScript and ReactJS. I'm fetching the images from an API endpoint and displaying them on various pages.
The issue is that the images take a significant amount of time to load, resulting in a slow overall performance of the application. This affects the user experience and responsiveness.
here is the link to the website so you can test it : https://disneyplus-f1110.web.app/
答案1
得分: 1
你可以使用Redis,这是一个内存中的键值数据存储,用于缓存所需的图像。这将显著减少性能问题。
这些是支持的数据类型。
英文:
You can use Redis, which is an in-memory, key-value data store, to cache the images you want. It will significantly reduce the performance issues.
These are the supported data types.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论