来自API的图像加载速度非常慢。

huangapple go评论74阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年7月14日 04:55:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/76683180.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定