CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

UI blinking

General discussion

by George » 31 Jan 2014 08:59

Hi!

Sometimes, when css is not cached in browser (or in other cases, i don't know) in short time, UI controls displayed incorrectly.
It's not problem, but i want discuss that subject)

What can you say? Is it browser problems or basic web problems..
Or may be there is a way to preload css.
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Jorge Sousa » 31 Jan 2014 10:54

Hello

We just render the css link or the theme switcher, what method are you using to load the css? ContentFiles? StyleSheet? ot ThemeSwitcher
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by George » 31 Jan 2014 12:28

IWServerControllerBaseConfig:
ThemeName := 'flick-custom';
StyleSheet.Filename := ExtractFilePath(WebApplicationFileName()) + 'wwwroot\ui-themes\' + ThemeName + '\jquery-ui.css';
ContentFiles.Add('ui-themes\jquery-ui.1_8_23_adapter.css');
ContentFiles.Add('ui-themes\' + ThemeName + '\ssc.v' + Settings.StyleSheetVersion + '.css');
ContentFiles.Add('ui-themes\' + ThemeName + '\jquery-ui.theme-extension.css');
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Jorge Sousa » 31 Jan 2014 12:48

Hi George

Where does these links stay in the HTML page, can you check that for me please? tia
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by George » 31 Jan 2014 15:05

Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Jorge Sousa » 31 Jan 2014 15:26

Hello

I think css links should be loaded before script links not after...

You can try it using ExtraHeaders, would you do that for me please? Maybe you're making history here :D
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Jorge Sousa » 31 Jan 2014 15:33

i meant rendered not loaded
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Jorge Sousa » 31 Jan 2014 15:40

You can try it using ExtraHeaders


I meant

PageContext.ExtraHeader
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Jorge Sousa » 31 Jan 2014 16:02

Hello

After our discussion by Skype, we found out that the only way to renderize the css links before script links is using

ServerController.HTMLHeaders
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by George » 31 Jan 2014 17:22

cgdevtools_support wrote:Hello
After our discussion by Skype, we found out that the only way to renderize the css links before script links is using
ServerController.HTMLHeaders

Looks like blinking comes not from my css)
I not sure what's going on, may be error, which i specially added for test, leads to load pause or browser stops visualization? And everything is fine?
I will investigate this blinking issue on next week.
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

Next

Return to General - Archive

cron

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.