Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Delay in CSS  (Read 4017 times)

0 Members and 1 Guest are viewing this topic.

aslater

    Topic Starter


    Beginner

  • A little knowledge is a dangerous thing-that's me!
  • Thanked: 1
    Delay in CSS
    « on: March 15, 2007, 11:30:58 AM »
    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? :-?

    Saviour

    • Guest
    Re: Delay in CSS
    « Reply #1 on: March 15, 2007, 03:47:46 PM »
    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.

    soybean



      Genius
    • The first soybean ever to learn the computer.
    • Thanked: 469
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 10
    Re: Delay in CSS
    « Reply #2 on: March 16, 2007, 10:49:31 AM »
    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.

    aslater

      Topic Starter


      Beginner

    • A little knowledge is a dangerous thing-that's me!
    • Thanked: 1
      Re: Delay in CSS
      « Reply #3 on: March 16, 2007, 02:33:25 PM »
      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.

      Rob Pomeroy



        Prodigy

      • Systems Architect
      • Thanked: 124
        • Me
      • Experience: Expert
      • OS: Other
      Re: Delay in CSS
      « Reply #4 on: March 16, 2007, 04:24:17 PM »
      I suspect you'll have a quicker stylesheet load if you place this in your header:

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

      rather than this:

      <style type="text/css">@import url(slaterhome.css);</style>
      Only able to visit the forums sporadically, sorry.

      Geek & Dummy - honest news, reviews and howtos

      aslater

        Topic Starter


        Beginner

      • A little knowledge is a dangerous thing-that's me!
      • Thanked: 1
        Re: Delay in CSS
        « Reply #5 on: March 17, 2007, 09:36:32 AM »
        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!
        « Last Edit: March 17, 2007, 09:38:18 AM by aslater »

        Rob Pomeroy



          Prodigy

        • Systems Architect
        • Thanked: 124
          • Me
        • Experience: Expert
        • OS: Other
        Re: Delay in CSS
        « Reply #6 on: March 17, 2007, 11:24:00 AM »
        Looks like your stylesheet isn't in the root folder.  Try this instead:

        <link rel="stylesheet" href="slaterhome.css" type="text/css">
        Only able to visit the forums sporadically, sorry.

        Geek & Dummy - honest news, reviews and howtos

        aslater

          Topic Starter


          Beginner

        • A little knowledge is a dangerous thing-that's me!
        • Thanked: 1
          Re: Delay in CSS
          « Reply #7 on: March 17, 2007, 11:47:29 AM »
          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?  :D
          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.

          soybean



            Genius
          • The first soybean ever to learn the computer.
          • Thanked: 469
          • Computer: Specs
          • Experience: Experienced
          • OS: Windows 10
          Re: Delay in CSS
          « Reply #8 on: March 17, 2007, 12:14:54 PM »
          So, do you believe that improved the speed?  I really can't tell.

          Rob Pomeroy



            Prodigy

          • Systems Architect
          • Thanked: 124
            • Me
          • Experience: Expert
          • OS: Other
          Re: Delay in CSS
          « Reply #9 on: March 17, 2007, 02:44:31 PM »
          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!
          « Last Edit: March 17, 2007, 02:51:49 PM by robpomeroy »
          Only able to visit the forums sporadically, sorry.

          Geek & Dummy - honest news, reviews and howtos

          Saviour

          • Guest
          Re: Delay in CSS
          « Reply #10 on: March 17, 2007, 03:12:31 PM »
          And I said..."nobody's perfect"!

          Well, in this forum, Rob...you are!!!

          Rob Pomeroy



            Prodigy

          • Systems Architect
          • Thanked: 124
            • Me
          • Experience: Expert
          • OS: Other
          Re: Delay in CSS
          « Reply #11 on: March 18, 2007, 11:02:45 AM »
          Oh that's such a relief!  ;D
          Only able to visit the forums sporadically, sorry.

          Geek & Dummy - honest news, reviews and howtos