开发者

jquery loading in a rails app

开发者 https://www.devze.com 2023-02-05 02:17 出处:网络
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 jque

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

精彩评论

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