阅读背景:

即使通过一系列图像预先加载也表现不佳

来源:互联网 

I am making a tiny widget which shows a 3D cube that rotates with the position of the mouse. I have achieved the effect with an if/else that looks at the browser window as 24 separate horizontal sections and displays the appropriate stage of rotation based on which section your mouse is touching. Works great locally, but performance when viewed online completely tanks. I thought preloading the images would make a difference, but it doesn't seem to help performance. My guess is that the images are still being called from the server even though they have been preloaded. The images are about 2kb in size each. Any ideas?I am making a tiny widget which shows a 3D cube




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: