By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,790 Members | 1,107 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,790 IT Pros & Developers. It's quick & easy.

Stylesheets don't load sometimes

P: n/a
I author applications in php which use external stylesheets. When
viewed through ie 6, netscape 6, et al. occassionally the stylesheets
will not load or be applied. Has anybody encountered this and found a
fix/workaround so that the stylesheets are verified as having been
loaded/applied? I'm running apache and the external stylesheets are
actually php files that serve dynamic stylesheets(ie,
site.css.php......I don't suspect that this is the issue). The
stylesheets do not load somewhere in the range of 1-5% of the time.

any insight into the issue would be much appreciated.
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
jason baumunk wrote:
I author applications in php which use external stylesheets. When
viewed through ie 6, netscape 6, et al. occassionally the stylesheets
will not load or be applied. Has anybody encountered this and found a
fix/workaround so that the stylesheets are verified as having been
loaded/applied? I'm running apache and the external stylesheets are
actually php files that serve dynamic stylesheets(ie,
site.css.php
What is the mime type for those files? For css files, it should be
set to text/css.
I don't suspect that this is the issue).
I suspect it is, but only you can tell for certain.
The stylesheets do not load somewhere in the range of 1-5% of the time.


Does it depend on the browser? Conforming browsers will not load a
stylesheet whose type is e.g. text/plain. IE/Win will think it knows
better than the server, and guess at its content type.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #2

P: n/a
Brian wrote:
jason baumunk wrote:
I author applications in php which use external stylesheets. When
viewed through ie 6, netscape 6, et al. occassionally the stylesheets
will not load or be applied. Has anybody encountered this and found a
fix/workaround so that the stylesheets are verified as having been
loaded/applied? I'm running apache and the external stylesheets are
actually php files that serve dynamic stylesheets(ie,
site.css.php

What is the mime type for those files? For css files, it should be set
to text/css.
I don't suspect that this is the issue).

I suspect it is, but only you can tell for certain.
The stylesheets do not load somewhere in the range of 1-5% of the time.

Does it depend on the browser? Conforming browsers will not load a
stylesheet whose type is e.g. text/plain. IE/Win will think it knows
better than the server, and guess at its content type.


Mozilla also loads stylesheets that come with text/plain (a warning in
javascript console:

Warning: The stylesheet http://yy.xx.cc/styles.css was loaded as CSS
even though its MIME type, "text/plain", is not "text/css".)

So is Mozilla a non-conforming browser?

Klaus

Jul 20 '05 #3

P: n/a
Klaus Krtschil wrote:
Brian wrote:
jason baumunk wrote:
I author applications in php which use external stylesheets.

occassionally the stylesheets will not load or be applied.
What is the mime type for those files? For css files, it should
be set to text/css.

Conforming browsers will not load a stylesheet whose type is e.g.
text/plain.


Mozilla also loads stylesheets that come with text/plain (a warning
in javascript console:

Warning: The stylesheet http://yy.xx.cc/styles.css


The content of that resource seems to be html 4.01 transitional.
was loaded as CSS even though its MIME type, "text/plain", is not
"text/css".)
styles.css on that server is declared as text/html. Moreover, the css
file linked to it is served as text/css.
So is Mozilla a non-conforming browser?


Appears to be conforming here. I'm using 1.3/Win2k

--
Brian
follow the directions in my address to email me

Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.