This is a migrated thread and some comments may be shown as answers.

Problem with display when loading application.

1 Answer 132 Views
Application
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 03 Aug 2012, 08:53 PM
I am putting together a mobile app and it seems the display has about a 1 to 1.5 second delay in the styling. Everything seems to have to snap in to place.

When you first load a page containing a few views the browser/mobile browser will display some HTML controls before they are styled.  It looks very strange.  Is there a way to prevent displaying anything on the page until everything has been styled? Or maybe display a loading animation until everything is styled in the background and then show the page?

I have experienced this same type of behavior using the Telerik ASP.Net controls for Ajax with the RadFormDecorator.


1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 08 Aug 2012, 09:10 AM
Hello Robert,

The behavior you have observed is known as Flash of unstyled content. In order to avoid it you could hide the content initially via visibility: hidden and remove it after the application is initialized. For more detailed information on this topic and sample code please check this forum thread.

Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Application
Asked by
Robert
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or