471,075 Members | 916 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,075 software developers and data experts.

Stylesheets don't load sometimes

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
3 3940
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
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
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.

Similar topics

9 posts views Thread by David Walker | last post: by
14 posts views Thread by Jacqui or (maybe) Pete | last post: by
5 posts views Thread by googlegroups | last post: by
9 posts views Thread by johkar | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.