Help - Search - Members - Calendar
Full Version: What should I do when page loads CSS file slowly?
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
nmduc073
Hi,
I have the problem that my site sometimes loads CSS slowly. Thus, the layout looks like the mess. User has to refresh the page to make it display correctly. I don't know what to do now. Please give me some advice.

Thank in advance,
Duc
pandy
Does this happen only in IE or in all browsers? What's the URL to your site?
nmduc073
I don't notice the browser that it often occurs. It might be FF.

I am sorry that I can not give you the url. It's still in progress and our client might not allow to reveal it.
Darin McGrew
Could it be a Flash of Unstyled Content?
nmduc073
I don't use import. Here is the declaration in header of our Master page:

CODE

<link rel="Stylesheet" href="~/App_Themes/RH/RHeCSS.css" type="text/css" media="screen" />
    <link rel="Stylesheet" href="~/App_Themes/RH/RHCSS_Print.css" type="text/css" media="print" />
    <link href="~/App_Themes/RH/StyleSheetForGrid.css" rel="stylesheet" type="text/css" />
    <script language =javascript type ="text/javascript" >
       function Bookmark(UrlBookmark)
       {                
....
       }  
    </script>
Darin McGrew
My guess is that href="~/App_Themes/RH/RHeCSS.css" and friends don't refer to the URLs you think they do.
pandy
Then how can refreshing the page help? blink.gif

Please post the URL. Guessing is no fun.
nmduc073
QUOTE(Darin McGrew @ Jul 23 2007, 12:11 PM) *

My guess is that href="~/App_Themes/RH/RHeCSS.css" and friends don't refer to the URLs you think they do.

I don't think it's a cause. That scene rarely happens when the network is slow. It often works fine. Refresh page loads the whole CSS again and display layout properly.
Darin McGrew
Can you provide the URL (address) of a document that demonstrates the problem?
nmduc073
Sorry, I wish I could. My PM doesn't allow me to do. BTW, thank for your helps. T_T
pandy
Then how to you expect to get help?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.