• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 311
  • Last Modified:

Force CSS style before display on screen / HTTPS slowdown?

Hi experts.

I have been developing a booking service with a calendar showing six weeks at a time by 42 ASP:LinkButton, having a dynamic look depending on availability etc.

This has been working fairly quick on my computer, even when accessing it over the Internet from another location. When I moved everything to the prod serve, things started to slow down a bit, particularly with the calendar. I use CSS to set the font, alignment etc in the linkbuttons, but on the prod server the calendar shows a glimpse of another look for a split second before the CSS chages it to be correct. For example: I have the font set to arial, no underline and alignment set to center in the CSS. For a short time, when the page loads, the font is times new roman underlined and the alignment is left.

Is it any way that I can "force" the look to take the CSS style into account before the page is displayed?
0
LarsNess
Asked:
LarsNess
  • 3
  • 2
  • 2
  • +1
1 Solution
 
dukestaTAICommented:
Have you tried clearing out your browser history and temp internet files? Or you could try this from another computer. What browser and version are you using?
0
 
TheMegaLoserCommented:
This sounds a bit strange. Can you post a link so I can see it happen?

However, the following should work. Put everything in a <DIV> tag that's not visible at first. Then when the page is loaded you show the <DIV> tag

On this page you can find and example on how to show/hide a DIV tag: http://www.webmasterworld.com/forum91/441.htm

Use the onLoad event on the BODY tag show the DIV.

<BODY onLoad="showdiv()">



0
 
dukestaTAICommented:
The style sheet should only load on the first page and should be cached after that. Do you have all of your updates on IIS?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LarsNessAuthor Commented:
Thanx MegaLoser.

The URL is https://www.merovinger.com/2travelsmart

I know of to turn on/off panels/DIVs but didn't think of it as a solution here. I'll try it.

0
 
LarsNessAuthor Commented:
Never mind. BDS 2006 had moved my <link> tag to the CSS to the bottom of the .aspx file resulting in the browser reading it last. I didn't notice. Sadly, from time to time the BDS 2006 moves things around without notice.

Thanks anyway.
0
 
dukestaTAICommented:
Any points?
0
 
TheMegaLoserCommented:
LarsNess, glad you solved it. The problem/solution is quite obvious afterwards (as always).
0
 
GranModCommented:
PAQed with points refunded (500)

GranMod
Community Support Moderator
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now