473,503 Members | 1,657 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4046
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
1995
by: David Walker | last post by:
Hi Has anyone had any problems with large (this one is 9k) stylesheets not loading from the webserver? Everything works fine on my development computer, but when I upload it to the server it will...
14
2570
by: Jacqui or (maybe) Pete | last post by:
Having just answered a question about multiple linked stylesheets, I thought I'd have a look at browser support. There's a quick test page here: http://www.porjes.com/ms/ I wrote it...
13
2075
by: Toby A Inkster | last post by:
www.authoring.stylesheets] For ages I have provided links to alternate stylesheets from my pages as per W3C recommendations: <link rel="stylesheet" href="baz" type="text/css" title="Baz"...
2
2706
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/newsgroup-faq Posting-Frequency: once a week Last-modified: 2004-07-26 Version: 2.00 URL: <http://css.nu/faq/ciwas-mFAQ.html> Maintainer: Jan Roland Eriksson...
0
1626
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/newsgroup-faq Posting-Frequency: once a week Last-modified: 2004-07-26 Version: 2.00 URL: <http://css.nu/faq/ciwas-mFAQ.html> Maintainer: Jan Roland Eriksson...
0
2059
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/newsgroup-faq Posting-Frequency: once a week Last-modified: 2004-07-26 Version: 2.00 URL: <http://css.nu/faq/ciwas-mFAQ.html> Maintainer: Jan Roland Eriksson...
5
2520
by: googlegroups | last post by:
I have a large table in html created dynamically. This table can grow to several hundred rows or more. I have the ability to hide or display individual rows (using row.style.display = "none") and...
14
2052
by: g | last post by:
http://mysite.verizon.net/gdguarino/montauk.htm You can also click on the other pages of the site if the problem doesn't show itself on this page. I'm using two stylesheets for each page, one...
9
2487
by: johkar | last post by:
I need some browser implementation clarification. In the below example, the alternate stylesheet could be invoked by user agents that support alternate stylesheets or by script. Are there any...
0
7198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6979
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.