开发者

jquery loading in a rails app

I have a rails app that uses jquery and jqueryUI.

I use some jqueryUI styling elements. The problem is that when I get a few entries in my database the page takes some time to load. Because the jqueryUI elements are implemented after the document ready function, I see the unstyled page for a fraction of a second.

开发者_JS百科

What can I do to display the right styling while the page is loading? Is it possible or do I have to display a spinner? If so how can I display the spinner with unobtrusive javascript?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜