feat(grid-view): 优化图片加载策略以减轻后端压力 #346
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description / 描述
优化 Grid View 组件的图片加载逻辑,实现以下改进:
这些优化显著减少了云盘服务器的请求压力,有效降低因频繁请求可能触发的风控机制风险。
Motivation and Context / 背景
当前 Grid View 组件在渲染大量图片时会一次性加载所有缩略图,存在以下问题:
通过实现懒加载和延迟加载策略,我们可以:
How Has This Been Tested? / 测试
测试环境
测试方法
测试结果
Checklist / 检查清单