What should I do when page loads CSS file slowly? |
What should I do when page loads CSS file slowly? |
nmduc073 |
Jul 22 2007, 09:04 PM
Post
#1
|
Member Group: Members Posts: 42 Joined: 20-June 07 Member No.: 3,137 |
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 |
Jul 22 2007, 09:23 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Does this happen only in IE or in all browsers? What's the URL to your site?
|
nmduc073 |
Jul 22 2007, 09:37 PM
Post
#3
|
Member Group: Members Posts: 42 Joined: 20-June 07 Member No.: 3,137 |
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 |
Jul 22 2007, 11:49 PM
Post
#4
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Could it be a Flash of Unstyled Content?
|
nmduc073 |
Jul 22 2007, 11:55 PM
Post
#5
|
Member Group: Members Posts: 42 Joined: 20-June 07 Member No.: 3,137 |
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 |
Jul 23 2007, 12:11 AM
Post
#6
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
My guess is that href="~/App_Themes/RH/RHeCSS.css" and friends don't refer to the URLs you think they do.
|
pandy |
Jul 23 2007, 12:48 AM
Post
#7
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Then how can refreshing the page help?
Please post the URL. Guessing is no fun. |
nmduc073 |
Jul 23 2007, 04:07 AM
Post
#8
|
Member Group: Members Posts: 42 Joined: 20-June 07 Member No.: 3,137 |
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 |
Jul 23 2007, 11:04 AM
Post
#9
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Can you provide the URL (address) of a document that demonstrates the problem?
|
nmduc073 |
Jul 23 2007, 11:24 AM
Post
#10
|
Member Group: Members Posts: 42 Joined: 20-June 07 Member No.: 3,137 |
Sorry, I wish I could. My PM doesn't allow me to do. BTW, thank for your helps. T_T
|
pandy |
Jul 23 2007, 11:58 AM
Post
#11
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Then how to you expect to get help?
|
Lo-Fi Version | Time is now: 19th April 2024 - 04:26 PM |