1.

Solve : Delay in CSS?

Answer»

Anyone who's really good at css out there?

I just updated my site with a template.  The main page works fine, but when it's the first time I go into the site, the next page will have a "no style" page for a second before the real style comes in and MAKES the site pretty.

Here's my "splash" page:
http://www.slaterhome.com/

And the page that has a bit of delay is the one that comes up when you press the "present" tab:
http://www.slaterhome.com/2007/year2007.html

It keeps happening, even when I had only that page, meaning, only one .css file in the folder.  Any thoughts on how to correct this? :-?I have a cable Internet connection and visited your site for the first time.

Both pages loaded fairly quickly...there was only a short delay on the first page...maybe a second.  The "Present" tab I clicked on loaded the page almost immediately.I also found the site fairly responsive.  Perhaps your host server occasionally seems a little sluggish because, if it's a SHARED server, it's hosting other sites at the same time as yours.

BTW, some nice pictures there. Quote

I have a cable Internet connection and visited your site for the first time.

Both pages loaded fairly quickly...there was only a short delay on the first page...maybe a second.  The "Present" tab I clicked on loaded the page almost immediately.

I have a DSL, I thought it was fast enough :-/  Thank you for checking it.

Quote
I also found the site fairly responsive.  Perhaps your host server occasionally seems a little sluggish because, if it's a shared server, it's hosting other sites at the same time as yours.

BTW, some nice pictures there.

Thanks.  
 I'm still not happy with the way it loads, will have to learn to love it!  Thank you for the feedback.I suspect you'll have a quicker stylesheet load if you place this in your header:

nk rel="stylesheet" href="/slaterhome.css" type="text/css">

rather than this:

YLE type="text/css">import url(slaterhome.css);yle>
Quote
<link rel="stylesheet" href="/slaterhome.css" type="text/css">

The style didn't load at all, just had the white page with the text.  Thanks for the suggestion, though, I'm willing to keep on trying!Looks like your stylesheet isn't in the root folder.  Try this instead:

Quote
Looks like your stylesheet isn't in the root folder.  Try this instead:

<link rel="stylesheet" href="slaterhome.css" type="text/css">

That did it!  Thank you so much!  How MANY more exclamation points can I use?  
The reason it isn't in the root folder is that I plan on changing styles as time goes by - just to keep the site from being too boring.  Again, thank you, Rob.So, do you believe that improved the speed?  I really can't tell. Quote
So, do you believe that improved the speed?  I really can't tell.
It wouldn't improve the OVERALL speed but it gives the browser a chance to cache the stylesheet before rendering the page.

And you're welcome, aslater!And I said..."nobody's perfect"!

Well, in this forum, Rob...you are!!!Oh that's such a relief!


Discussion

No Comment Found