(26)Don’t underestimate the value of the UI when tackling performance problems
招数26:
解决性能问题时不要低估UI的价值
Simple UI tricks, such as progress bars, redirecting users’ attention using animation, or placing slower loading sections at the bottom of a page or offscreen, can often ‘fix’ a performance problem without the need to tune the underlying code.
简单的UI技巧,比如进度条,使用动画转移用户的注意力,或将缓慢加载的区域放在页面底部或者屏幕外,经常能解决性能问题而不需要调整底层代码。
These UI tricks are an important tool to have in your performance tuning toolbox and can be much quicker and easier than addressing the underlying issue. They can act as a holdover until you have the time to devote to the core problem.
这些UI技巧是你的性能调优工具箱里的重要工具并且可以更快的更轻松的解决根本问题。他们能当做一种延缓方案直到你有时间投入核心问题。