Content Loading Issue

General project discussion. NOT for help questions.
Post Reply
happyface_0

Content Loading Issue

Post by happyface_0 »

I'm developing the site http://dannyfrancis.net/ and the CSS (I think) appears to load only sometimes. Occurrence is different and random on different browsers/OS. Take a look at http://browsershots.org/http://dannyfrancis.net/ and you'll see what I mean.
Does anyone know why this is happening and how I can go about solving the issue?

Thanks.
scooper
Forum Members
Forum Members
Posts: 242
Joined: Fri Dec 09, 2005 12:36 pm

Re: Content Loading Issue

Post by scooper »

Hmm - interesting.

My first thought is that it's an issue with the way the stylesheet is being served.
Having a look at the headers for the stylesheet we have:

Code: Select all

Content-Type	text/plain
Content-Length	26851
Via	1.1 vhost.phx1.nearlyfreespeech.net:3128 (squid/2.7.STABLE7)
Which isn't right. The stylesheet should be Content-Type text/css.

I suspect that either the server or Squid is getting confused by the fact that the stylesheet is generated from a php file and serving it incorrectly. Some browsers might be more tolerant of that and show it. Either way I think it's something your server admin is going to have to sort out.

First thing to try is linking to a static stylesheet to see if that fixes the problem. It might be that if you use the static styleheet module or something similar (Supersizer possibly) then that might sort you out as well. Or possibly just fiddling with some cache settings.

Or... I've just noticed that you're using the old {stylesheet} tag. Try the newer {cms_stylesheet} tag which will cache the styles for you.

Usual caveats apply about me not really knowing anything about anything, but that's my best guess.

s.
Last edited by scooper on Thu Sep 16, 2010 11:25 am, edited 1 time in total.
happyface_0

Re: Content Loading Issue

Post by happyface_0 »

I tried {cms_stylesheet} which didn't load the page properly, then I tried {static_stylesheet} which seems to work.
Thanks for your help scooper as this was a frustrating issue.
Post Reply

Return to “General Discussion”