473,390 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,390 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 4039
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
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
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
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
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
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
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
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
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
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...

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.