开发者

jquery-plugin columnizer: is it really so slow?

I'm using jquery-plugin columnizer http://welcome.totheinter.net/columnizer-jquery-plugin/

It is sometimes very slow to create the columns (you can try changing the browser window size, or selecting a filter.

Sometimes Firefox gives the error message: "Unresponsive Javascript scri开发者_如何学Pythonpt" and I have to press on continue to continue the navigation.

thanks


You've got a HELL of a lot of stuff included in that page - especially for such a simple design. I count at least 14 JavaScript includes and tons of CSS files which comes to around 330 KB in total. I'm not surprised it performs poorly with all that scripting. I also note that the page doesn't render at all in IE8 (which, like it or not, is still the most widely used browser). And on browsers where it does render, the column manager makes the columns jump around when loading, which doesn't look too great.

Personally I would look at stripping out all the unnecessary JavaScript and just stick to what you actually need to execute for that page. I'd also look at just using CSS to layout the page - do you really need columnizer?


Addtional to what Dan Diplo said: Several current browsers support "newspaper columns" via CSS.

http://www.css3.info/preview/multi-column-layout/


I've solved by compressing and compacting the js files. Now the performance is good. Check Google page speed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜